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