Page 1 of 1

Windows Agentless Monitoring - Network Bandwidth

Posted: Wed Apr 01, 2015 2:34 pm
by OptimusB
We are taking an agentless approach to our hosts and services and want to use WMI and SNMP to get our statistics. I am looking for an efficient way to monitor network status and bandwidth on Windows clients. I tried using the network wizard against the host which works, but I am not sure how I would go about implementing this in a massive scale to say 1000+ hosts. Looking for some ideas. Thanks!

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Wed Apr 01, 2015 4:45 pm
by tgriep
If you use WMI for network bandwidth, you can use the check_wmi_plus plugin.
You would have to enable that on each server and here is the instructions for doing that.
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

I did a sample check command and here is how I ran it and the sample output.

Code: Select all

check_wmi_plus.pl -H 192.168.5.223 -u <Username> -p <Password> -m checknetwork -a 'Intel[R] Ethernet Connection I217-LM'

Here is what the output looks like.
OK (Sample Period 6 sec) - Interface: Intel[R] Ethernet Connection I217-LM (Speed:1.000Gbit/s) Byte Send Rate=2.019KB/sec, Byte Receive Rate=3.425KB/sec, Packet Send Rate=2.000packet/sec, Packet Receive Rate=41.000packet/sec, Output Queue Length=0, Packets Received Errors=0|'_BytesSentPersec'=2019; '_BytesReceivedPersec'=3425; '_PacketsSentPersec'=2; '_PacketsReceivedPersec'=41; 'OutputQueueLength'=0; 'PacketsReceivedErrors'=0;
To use SNMP, you would have to install the SNMP server software and configure it on each server and I don't think it is support in Windows 2012 or later.
If you use this, you could use the check_snmp command for your testing.

Does this help you?

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Wed Apr 01, 2015 7:04 pm
by OptimusB
Thanks. Checknetwork parameter works. However looks like I have to specify the adapter name. From a mass deployment perspective, any suggestion on how to configure say 1000 hosts? We are trying to come up with an idea on how to configure and get proper data from all our hosts.

SNMP option works as well, however, it takes a lot more effort to get it configured on a massive scale.

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Wed Apr 01, 2015 10:53 pm
by Box293
Are these virtual machines or physical hosts?

For virtual machines, if they are running on ESXi and vCenter, box293_check_vmware has the Guest_NIC_Usage check. It does not require you to specify the name of the (virtual) NIC.

Code: Select all

Example:
box293_check_vmware.pl --check Guest_NIC_Usage --server 192.168.1.211 --guest "vSphere Management Assistant (vMA)"

Outptut:
OK: {Rate (Rx:236 kBps / 96%)(Tx:11 kBps / 4%)} {Packets (Rx:3,669)(Tx:875)}|'Rate Rx'=236kBps 'Rate Tx'=11kBps 'Packets Rx'=3669 'Packets Tx'=875 [Guest_NIC_Usage]
box293_check_vmware can be downloaded here:
http://exchange.nagios.org/directory/Pl ... re/details

Because you are looking at a mass deployment perspective I suggest looking at the --modifier argument, there is a section dedicated to this in the Advanced Topics chapter that addresses the need to provide the name of the guest using the --guest argument. This will allow you to have 1 service assigned to multiple hosts/hostgroups.


I don't have a good solution for physical servers.

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Thu Apr 02, 2015 1:08 pm
by OptimusB
We have a mix of phyiscal and virtual, but we are mostly virtualized. A couple of concerns that I have as I am planning for mass deployment.

1. A method of adding all related Network adapters for each host.
2. A host could have multiple network adapters and we possibly would want to monitor the secondary connections as well.
3. A way to automate or add the network adapters service checks for all the hosts.

I do like the checknetwork method of check WMI plus. Just need to figure out how to enumerate and gather the information and then creating the cfgs. It looks like we will probably need to script a discovery of the NIC and create cfg based on that.....

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Thu Apr 02, 2015 1:41 pm
by jdalrymple
That sounds like a nice feature that could be added to the WMI wizard - it's not there today though.

For now you'll have to script something yourself. The Powershell 1-liner can get your connected interfaces to a CSV file that you might be able to concatenate and create a bulk import with:

Code: Select all

Get-WmiObject win32_networkadapter -filter "netconnectionstatus = 2" | select Name | Export-Csv \\sharedspot\networkcsvs\$env:COMPUTERNAME.csv

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Thu Apr 02, 2015 2:49 pm
by OptimusB
Thanks. We are currently using our own created script to do all the discovery and configuration of our hosts. I will add a module in there for network adapters.

This would be a nice feature for upcoming versions :)

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Thu Apr 02, 2015 3:28 pm
by jdalrymple
I'll add it as a feature request - that would be all contained within the wizard, we'd just have to write up an external script that is called to list the interfaces.

For now - OK to lock this thread up?

Re: Windows Agentless Monitoring - Network Bandwidth

Posted: Thu Apr 02, 2015 4:15 pm
by OptimusB
Yes and thanks.