[Nagiosplug-devel] check_snmp bug report and feature request: negative numbers for warning and critical flags
Ton Voon
ton.voon at opsera.com
Tue Jun 9 22:07:18 CEST 2009
Hi Michael,
Can you try the latest snapshot at http://nagiosplug.sourceforge.net/snapshot/
Thomas has recently converted the thresholds to use the standard
library which supports negative numbers.
Ton
On 9 Jun 2009, at 20:25, Michael J. Bauer wrote:
> 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.
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
Ton Voon
Product Architect
Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK
Phone: +44 (0) 845 057 7887
Mobile: +44 (0) 7931 365796
Skype: tonvoon Email: ton.voon at opsera.com
www.opsera.com
This e-mail is confidential, intended only for the named recipient(s)
above and may contain information that is privileged and confidential.
If you receive this message in error, or are not the named
recipient(s), please notify the sender at the phone number above, do
not copy this message, do not disclose its contents to anyone, and
delete this e-mail message from your computer. Although Opsera
routinely screens for viruses, addressees should scan this e-mail and
any attachments for viruses. Opsera makes no representation or
warranty as to the absence of viruses in this e-mail or any
attachments. Opsera Limited is registered in the UK under Company
Number 5396532. Our registered office is Gorse View, Horsell Rise,
Woking, Surrey, GU21 4RB.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20090609/f3a1a755/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 749 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20090609/f3a1a755/attachment.gif>
More information about the Devel
mailing list