/usr/lib64/nagios/plugins/check_snmp -o tlpUpsOutputSource.1 -H UPShostname.com -m $USER1$/TRIPPLITE-PRODUCTS.MIB -R '3|9' -vvv
Code: Select all
/usr/bin/snmpget -Le -t 3 -r 5 -m /root/.snmp/TRIPPLITE-PRODUCTS.MIB -v 1 [context] [authpriv] UPShostname.com:161 tlpUpsOutputSource.1
TRIPPLITE-PRODUCTS::tlpUpsOutputSource.1 = INTEGER: economy(9)
Processing oid 1 (line 1)
oidname: TRIPPLITE-PRODUCTS::tlpUpsOutputSource.1
response: INTEGER: economy(9)
SNMP OK - economy(9) |
But when added as a check_command in Nagios Core 4.4, it fails. "critical - plugin timed out while executing system call"
If I remove the mib and use the oid instead of the name, it works. But this doesn't provide the labels. (Normal, bypass, etc)
Any idea why?