Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Xen traffic usage (bandwidth) monitor, alerter and automatic null routing.

definedcodedefinedcode Member
edited April 2014 in General

Since I saw very few Xen monitoring and management tools available, I have quickly decided to roll my own. This will check on a regular interval your Xen guests and record their traffic usage (TX and RX but can be modified to do either/or) to a MongoDB database. If their traffic exceeds the set amount (set per VM/plan) then the IP(s) will automatically be null routed and you (and the client) will be emailed. This null route is in place for the rest of the month until the allowance is reset (you can obviously update the VMs allowance through the addvm.rb script if the client pays more or is allocated more).

This is coded in Ruby.

Use at your own risk, it currently only supports the xm toolstack but support for the xl toolstack can easily be implemented since only the xm list function is required.

Source code and documentation: https://github.com/will3942/xen-bandwidth-monitor

Full write-up and tutorial: blog.will3942.com/xen-bandwidth-monitoring

Hopefully this helps someone!

Comments

Sign In or Register to comment.