Page 1 of 1
Check Bandwidth for a Virtual Machine
Posted: Wed Jul 08, 2015 12:09 am
by braindope
Hi,
Good Day!
I need a nagios checks that can monitor Bandwidth consumption of a Virtual machine. The physical server has serveral VM inside and i just want to monitor, one VM instance. I already research via web searching for answer but no luck yet

. Hope you can help me guys. Thank you.
Re: Check Bandwidth for a Virtual Machine
Posted: Wed Jul 08, 2015 2:28 am
by Box293
There are a couple of different ways.
If the VM is on VMware ESX(i) servers, then the box293_check_vmware plugin has a check built in called "Guest_NIC_Usage".
box293_check_vmware can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details
I am unsure of other Hypervisors if there is a way to look at the VM's bandwidth.
The other way to monitor is via the guest Operating System itself. If this is Windows you could use NSClient++ to query the performance counters for the NIC in/out traffic. For example:
\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Received/Sec
\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Sent/Sec
Here is a page with a bunch of examples:
https://sites.google.com/a/box293.com/n ... interfaces
There are also linux checks that allow you to check interface bandwidth, some via nrpe and others via snmp. Search the Nagios Exchange for these.
Finally, you can enable SNMP on the Operating System of the VMs and use MRTG to do bandwidth checks.
Re: Check Bandwidth for a Virtual Machine
Posted: Wed Jul 08, 2015 4:13 am
by braindope
Hi,
check_snmp_int.pl -H <IP> -C <string> -n eth0 -f -k -w 0,0 -c 0,0 -Y -r
I've tried to use the snmp when run the checks it give an error below.
Cannot get interface speed using highperf mib : UNKNOWN
the vm is installed with ubuntu
Update:
i have stumble upon check_iftraffic3.pl it seems to work fine with my client. I will be using this for now.
Thanks
Box293 for taking time giving me answer

Re: Check Bandwidth for a Virtual Machine
Posted: Wed Jul 08, 2015 10:24 am
by tgriep
Thanks for responding back. If you are happy using the check_iftraffic3.pl plugin, shall we close this post?
Re: Check Bandwidth for a Virtual Machine
Posted: Thu Jul 09, 2015 12:02 am
by braindope
Yes you can now proceed on closing this thread. I will just open another post if i will encounter new issue's
Thanks guys
