check_snmp output unit conversion

Mark Nipper nipsy at bitgnome.net
Thu Jul 14 22:33:59 CEST 2011


On 31 Mar 2011, casale at activenetwerx.com wrote:
> Well, I'm using 1.4.15 from rpmforge on rhel and it works, what can I say:)

	I'm using the EPEL version of the same packages and it's
not working in any way that I can divine.  I ran across this
post:
---
http://permalink.gmane.org/gmane.network.nagios.plugins/4971

basically indicating that some of the 1.4.15 packages are
definitely broken.  I've installed the latest version listed in
that thread which is from 29 Apr 2011, which seems to partially
work, but maybe not in any useful way.

	Some examples:
---
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0
SNMP OK - Timeticks: (204000) 0:34:00.00 | 
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 203999 
SNMP WARNING - *204000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 204001
SNMP OK - 204000 | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 200000 -c 205000
SNMP WARNING - *204000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 
---

	So, am I to conclude that things haven't entirely been
fixed even in this latest release of 1.4.15?  And why does
specifying thresholds stop the unit conversion in the output?

	My primary concern is that the threshold values seem to
be inverted and that there is no logical way to specify your own
thresholds based on this.

-- 
Mark Nipper
nipsy at bitgnome.net (XMPP)
+1 979 575 3193
-
"Objective journalism is one of the main reasons American
politics has been allowed to be so corrupt for so long.  You
can't be objective about Nixon."
 -- Hunter S. Thompson in an interview for The Atlantic

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
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