check_snmp Changed Behavior

Jochen Bern Jochen.Bern at LINworks.de
Fri Jun 15 13:13:15 CEST 2012


Quick question: I'm comparing versions 1.4.14 and 1.4.15 of check_snmp
and found two differences that I suspect not to be intentional. Does
someone happen to know for sure?

1. Timeticks don't appear in the perfdata anymore:

# nagios-plugins-1.4.14/plugins/check_snmp $TARGET \
> -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -c 30000: -w 60000:
SNMP OK - 216000 | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=216000
# nagios-plugins-1.4.15/plugins/check_snmp $TARGET \
> -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -c 30000: -w 60000:
SNMP OK - Timeticks: (216000) 0:36:00.00 |

(This is the remaining battery runtime straight off an APC UPS, hence
I'd rather have it recorded in the RRDs for post-incident analysis.)

2. Explicit label ist placed differently in the output, and used as DS
name in the perfdata (which, in my example, results in syntactically
incorrect perfdata):

# nagios-plugins-1.4.14/plugins/check_snmp $TARGET \
> -o .1.3.6.1.4.1.318.1.1.1.3.2.5.0 -l 'My label'
My label OK - 9 | iso.3.6.1.4.1.318.1.1.1.3.2.5.0=9
# nagios-plugins-1.4.15/plugins/check_snmp $TARGET \
> -o .1.3.6.1.4.1.318.1.1.1.3.2.5.0 -l 'My label'
SNMP OK - My label 9 | My label=9

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/




More information about the Developers mailing list