Monitor SolusVM Bandwith usage with Nagios


I run a mumble server with Exigent (Affiliate link). Exigent use SolusVM for their VM Management interface which is a great easy to use product with a relatively nice interface.

It also has an API that clients can use to get information about their server, such as bandwidth, remote reboots and more. I wanted to make a script that monitors my VM’s bandwidth and alerts me when its nearing its max, so I did.

The Script

The script in question is below. Its just a quick PHP on I put together. I’ll hopefully port it over to bash one day, but today is not that day. Currently it takes very little configuration, you just need to set your key/hash and the URL of the SolusVM interface.

Check out the script, or download it below.

View on View on GitHub/Download

James Loh

I'm a Sysadmin for a web solutions company deploying clouds across the globe. I learn new things every day.

Australia @itsjloh jloh jloh