Monitoring Windows network interface

Use the snmpwalk command to find out the interface OID of Windows:

snmpwalk -c public -v 2c ntserver.example.com IF-MIB::ifDescr

Output:

IF-MIB::ifDescr.1 = STRING: MS TCP Loopback interface
IF-MIB::ifDescr.65539 = STRING: Intel(R) PRO/100 VE Network Connection 

Then use check_snmp_int, use some words of interface name(eg. “Intel”) instead of eth0:

check_snmp_int.pl -v -H ntserver.example.com -C public -n "Intel" -k -w 1000,1000 -c 2000,2000 -B -d 7200

Now you know the number is 65539, you can read IN/OUT octets by:

#IN:
snmpget -c public -v 2c ntserver.example.com .1.3.6.1.2.1.2.2.1.10.65539

#OUT:
snmpget -c public -v 2c ntserver.example.com .1.3.6.1.2.1.2.2.1.16.65539

The numeric OID above can be found by snmptranslate:

snmptranslate -On IF-MIB::ifInOctets
snmptranslate -On IF-MIB::ifOutOctets
nagios/monitoring_windows_network_interface.txt · Last modified: 2010-02-23 15:45 by admin
Back to top
GNU Free Documentation License 1.2
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0