[Nagiosplug-devel] Testing the upcoming release

Jochen Bern Jochen.Bern at LINworks.de
Tue Jun 26 19:18:26 CEST 2012


On 06/25/2012 08:39 AM, Holger Weiß wrote:
> We'd like to cut the 1.4.16 release this week.  If you could spare a bit
> of time to test the current snapshot and report any regressions from the
> 1.4.15 release, that would be awesome:
> http://nagiosplug.sourceforge.net/snapshot/nagios-plugins-master.tar.gz

Would you be willing to include a quick fix to improve spec- as well as
backwards compatibility of check_snmp?

1.4.14:

> $ nagios-plugins-1.4.14/plugins/check_snmp $TARGET $QUERY -l 'Battery Left,Uptime'
> Battery Left WARNING - *222000* 185115360 | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=222000 iso.3.6.1.2.1.1.3.0=185115360

1.4.15:

> $ nagios-plugins-1.4.15/plugins/check_snmp $TARGET $QUERY -l 'Battery Left,Uptime'
> SNMP OK - Uptime Timeticks: (222000) 0:37:00.00 Timeticks: (185116320) 21 days, 10:12:43.20 |

Your version (note syntax err in perfdata):

> $ nagios-plugins-1.4.15-74-gcf07/plugins/check_snmp $TARGET $QUERY -l 'Battery Left,Uptime'
> SNMP WARNING - Battery Left *222000* Uptime 185117890 | Battery Left=222000 Uptime=185117890

Patch:

> $ nagios-plugins-1.4.15-74oneQuarter/plugins/check_snmp $TARGET $QUERY -l 'Battery Left,Uptime'
> SNMP WARNING - Battery Left *222000* Uptime 185121060 | 'Battery Left'=222000 Uptime=185121060

> $ nagios-plugins-1.4.15-74oneQuarter/plugins/check_snmp $TARGET $QUERY -l 'Battery Left,Uptime' --perf-oids
> SNMP WARNING - Battery Left *222000* Uptime 185121850 | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=222000 iso.3.6.1.2.1.1.3.0=185121850

Kind regards,
								J. Bern
-- 
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-plugins-1.4.15-SnmpPerfdata-patch.txt
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20120626/42c6b7cc/attachment.txt>


More information about the Devel mailing list