check_snmp output unit conversion

Cameron Camp cameron at campworkz.com
Thu Mar 31 03:24:45 CEST 2011


>>>./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 5
-l
>>'Runtime Remaining' -u 'Minutes'
>SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime
>>Remaining=132000
>>
>>which is 22 minutes. 

>>What version of check_snmp? Mine is current and yields expected data.
>>jlc

>packages listed below from Debian Squeeze standard repos

>Nagios3 3.2.1
>nagios_plugins 1.4.15
>check_snmp 1.4.15

what is strange is that it converts when I have no -w or -c
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0
: SNMP OK - Timeticks: (138000) 0:23:00.00 |

but when I include warn/critical it shows seconds again, no matter
whether I use seconds like 

./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 100000 -c
80000
: SNMP CRITICAL - *138000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=138000

or minutes like
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 10
: SNMP CRITICAL - *132000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=132000

Thx,
Cameron




------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list