[Nagiosplug-help] Re: Another check_snmp oddity

Kyle Tucker kylet at panix.com
Thu Mar 30 17:44:04 CEST 2006


The help page for the check_snmp says to email the Nagios mailing
list for help, versus the plugins mailing list. Should this be
posted to that list instead for help?

> Hi,
> 	If I use check_snmp to get the load from Net-SNMP's load
> directives, all comes back fine until I set -w or -c option. When
> I use these options, everything after the decimal point gets cut
> off. If I leave off the options, I get the full numeric value.
> Thoughts?
> 
> # check_snmp -t 3 -P 3 -H 192.168.2.1 -L authPriv -U xxxxxx -a MD5 -A yyyyyy -X zzzzzz -o laLoad.1,laLoad.2,laLoad.3
> SNMP OK - 0.32 0.38 0.39 | UCD-SNMP-MIB::laLoad.1=0.32;;;; UCD-SNMP-MIB::laLoad.2=0.38;;;; UCD-SNMP-MIB::laLoad.3=0.39;;;;
> # check_snmp -t 3 -P 3 -H 192.168.2.1 -L authPriv -U xxxxxx -a MD5 -A yyyyyy -X zzzzzz -o laLoad.1,laLoad.2,laLoad.3 -w 1,1,1 -c 2,2,2
> SNMP OK - 0 0 0 | UCD-SNMP-MIB::laLoad.1=0;;;; UCD-SNMP-MIB::laLoad.2=0;;;; UCD-SNMP-MIB::laLoad.3=0;;;;
> # check_snmp -vvv -t 3 -P 3 -H 192.168.2.1 -L authPriv -U xxxxxx -a MD5 -A yyyyyy -X zzzzzz -o laLoad.1,>
> /usr/local/bin/snmpget -t 3 -r 5 -m ALL -v 3 -l authPriv -a MD5 -u xxxxxx -A yyyyyy -x DES -X zzzzzz  192.168.2.1:161  laLoad.1 laLoad.2 laLoad.3
> UCD-SNMP-MIB::laLoad.1 = STRING: 0.37
> UCD-SNMP-MIB::laLoad.2 = STRING: 0.39
> UCD-SNMP-MIB::laLoad.3 = STRING: 0.39
> SNMP OK - 0 0 0 | UCD-SNMP-MIB::laLoad.1=0;;;; UCD-SNMP-MIB::laLoad.2=0;;;; UCD-SNMP-MIB::laLoad.3=0;;;;
> 
> -- 
> - Kyle 
> ---------------------------------------------
> kylet at panix.com   http://www.panix.com/~kylet    
> ---------------------------------------------
> 
> 


-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------




More information about the Help mailing list