check_snmp output unit conversion

Joseph L. Casale jcasale at activenetwerx.com
Wed Mar 30 21:01:01 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'
>
>on an APC UPS monitoring card, which outputs in seconds like:
>
>SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime
>Remaining=132000
>
>which is 22 minutes. If I divide the output by 6000 I get 22, how would
>I adjust the output to give me this? I could do it with bash piping, but
>suspect there's a better way to do it (and it might break something with
>check_snmp command and the rest of nagios).

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

------------------------------------------------------------------------------
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