[Nagiosplug-devel] check_snmp bug report and feature request: negative numbers for warning and critical flags
Michael J. Bauer
mjbauer at eecs.tufts.edu
Tue Jun 9 21:25:13 CEST 2009
The check_snmp documentation says that both the warning and critical
flags take integer ranges as arguments. However, both flags fail on
negative integer ranges:
# ./check_snmp -H localhost -o .1.3.6.1.4.1.42.2.70.101.1.1.8.1.4.88 -C
public --critical=-13007:-11036
check_snmp: Invalid critical threshold - -13007:-11036
Usage:check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]
[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]
[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]
[-A authpasswd] [-X privpasswd]
I get the same result if I change it to --warning, or if I use -c or -w
without the =. The OID in question is a sensor for the -12V power on a
SunFire X4100 M2 motherboard. It reports voltage * 1000, and I'd like
to be able to monitor it.
The OS and version I'm using. The hardware is a SunFire X4100 M2 in all
cases. As far as I can tell, I have the latest version of check_snmp,
but I know that Red Hat versioning can be slippery.
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
# ./check_snmp --version
check_snmp v2021 (nagios-plugins 1.4.13)
# rpm -qi nagios-plugins-snmp
Name : nagios-plugins-snmp Relocations: (not relocatable)
Version : 1.4.13 Vendor: Fedora Project
<http://bugzilla.redhat.com/bugzilla>
Release : 11.el5 Build Date: Tue Nov 18
10:00:35 2008
Install Date: Fri Jan 23 16:21:22 2009 Build Host:
xenbuilder2.fedora.redhat.com
Group : Applications/System Source RPM:
nagios-plugins-1.4.13-11.el5.src.rpm
Size : 147712 License: GPLv2+
Signature : DSA/SHA1, Tue Nov 18 12:15:45 2008, Key ID 119cc036217521f6
Packager : Fedora Project <http://bugzilla.redhat.com/bugzilla>
URL : http://nagiosplug.sourceforge.net/
Summary : Nagios Plugin - check_snmp
Description :
Provides check_snmp support for Nagios.
More information about the Devel
mailing list