Check Bandwidth for a Virtual Machine

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Check Bandwidth for a Virtual Machine

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Check Bandwidth for a Virtual Machine

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Check Bandwidth for a Virtual Machine

Post 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 :D
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check Bandwidth for a Virtual Machine

Post by tgriep »

Thanks for responding back. If you are happy using the check_iftraffic3.pl plugin, shall we close this post?
Be sure to check out our Knowledgebase for helpful articles and solutions!
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Check Bandwidth for a Virtual Machine

Post 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 :D
Locked