Header RSS Feed
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

check_win_net_usage now with network interface detection
Tuesday - Dec 15th 2015 - by - (0 comments)

It's been a long time since I worked on the monitoring plugin check_win_net_usage.sh, a plugin to measure (and mainly graph) network I/O on Windows hosts. 

But since November I am (again) integrating Windows hosts into an Icinga2 monitoring solution. The recent modifications in November weren't big changes to the plugin itself, however the newest addition is worth a little post about it.

With today's version (20151215) the plugin supports an automatic discovery of network interfaces on the target Windows host. This was always the most difficult part to figure out the correct name of the interface to monitor, because Windows sometimes named the interfaces differently in the OS as presented to the logged in user.

Here's an example how to use the new detection with the -d parameter:

./check_win_net_usage.sh -H 10.10.10.50 -p 1248 -d
vmxnet3 Ethernet Adapter _5

This interface name can then be used with the -i parameter to start monitoring:

./check_win_net_usage.sh -H 10.10.10.50 -p 1248 -i "vmxnet3 Ethernet Adapter _5"
Network OK - 16542 Bytes received/sec, 11120 Bytes sent/sec|bytes_in=16542B;;;; bytes_out=11120B;;;;

This should help a lot of users who have struggled to find the correct interface name.

I also adapted the documentation of check_win_net_usage to not only cover example configurations for Nagios and Icinga 1.x but also for Icinga 2 - including an apply rule.

 

Add a comment

Show form to leave a comment

Comments (newest first):

No comments yet.

Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6938 Days
until Death of Computers
Why?