[Nagiosplug-devel] Testing the upcoming release

Jochen Bern Jochen.Bern at LINworks.de
Wed Jun 27 19:05:12 CEST 2012


On 06/27/2012 04:04 PM, Holger Weiß wrote:
> Then again, according to
> 	http://nagios.sourceforge.net/docs/3_0/pluginapi.html
> the old output might be interpreted as a valid way to spit out
> performance data (even though the first line contains no perfdata part).
> I wouldn't have been sure whether Nagios actually passes this on as
> performance data, but it seems you were able to use it?

I can't say that I've tested it systematically, but I'm not aware of any
problems in parsing multiline syntax in Nagios 3.x. Guess I'll slap a
test plugin together, just in case ...

The perfdata got indeed passed on to both n2rrd and PNP until I replaced
the plugins with the pre-1.4.16 ones last evening:

> $ nagios-plugins-1.4.15/plugins/check_tcp [...]
> OK - Certificate will expire on 12/02/2012 16:29.                                                                                                  
> TCP OK - 0,022 second response time on port 995 [+OK Zarafa POP3 gateway ready]|time=0,022227s;;;0,000000;15,000000


> # rrdtool info /usr/local/n2rrd/var/Zarafa-intern/Zarafa-intern_POPS.rrd | grep last_ds
> ds[time].last_ds = "0.025582"
> # rrdtool dump /usr/local/n2rrd/var/Zarafa-intern/Zarafa-intern_POPS.rrd | grep '2012-06-26 19:2'
>         <lastupdate>1340731788</lastupdate> <!-- 2012-06-26 19:29:48 CEST -->
>                         <!-- 2012-06-26 19:20:00 CEST / 1340731200 --> <row><v>2.2338473333e-02</v></row>
>                         <!-- 2012-06-26 19:25:00 CEST / 1340731500 --> <row><v>2.6515140000e-02</v></row>
>                         <!-- 2012-06-26 19:20:00 CEST / 1340731200 --> <row><v>2.2338473333e-02</v></row>
>                         <!-- 2012-06-26 19:25:00 CEST / 1340731500 --> <row><v>2.6515140000e-02</v></row>
>                         <!-- 2012-06-26 19:20:00 CEST / 1340731200 --> <row><v>2.2338473333e-02</v></row>
>                         <!-- 2012-06-26 19:25:00 CEST / 1340731500 --> <row><v>2.6515140000e-02</v></row>


> # ls -l /usr/local/pnp4nagios/var/perfdata/Zarafa-intern/POP3S_Port.xml
> -rw-rw-r-- 1 nagios nagios 2097 26. Jun 19:30 /usr/local/pnp4nagios/var/perfdata/Zarafa-intern/POP3S_Port.xml
> # grep -A 3 '<NAME>' /usr/local/pnp4nagios/var/perfdata/Zarafa-intern/POP3S_Port.xml
>     <NAME>time</NAME>
>     <LABEL>time</LABEL>
>     <UNIT>s</UNIT>
>     <ACT>0.025582</ACT>

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




More information about the Devel mailing list