Re: Testing the upcoming release

Jochen Bern <Jochen.Bern-RMkW/[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Organization LINworks GmbH
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
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/
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5upmplPMkL2fr@public.gmane.orget
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.