Nagios-Grapher: write_fifo does not process '\n' (diff included)

Heiko Schlittermann hs at schlittermann.de
Thu Nov 22 01:37:11 CET 2007


Heiko Schlittermann <hs at schlittermann.de> (Mi 21 Nov 2007 23:25:00 CET):
> Hello,
> 
> the example for the nagios grapher command is about this way:
> 
>     define command{
> 	...
> 	command_line .../contrib/fifo_write .../rw/ngraph.pipe '$HOSTNAME$\t...$SERVICEPERFDATA$\n' 3
>     }
> 
> 
> But the fifo_write doesn't process the '\n'. This brings trailing 'n'
> into the fifo output, but no newline. 
> 
> Currently I'm not even sure, why the pipe reader (collect2.pl) thinks
> there's a line to read..., if the writer doesn't send a newline. But
> this is another issue.

This issue is solved now: the check_ssh doesn't send a '\n' at the end of
its performance data, other check_* do. Thus the fifo_write-bug didn't
break a lot, just created an additional single 'n' on a line itself. 
Except for check_ssh.

This way each performance output directly after the output from
check_ssh wasn't processed, because collect2.pl read a single line,
containing first the ssh *and* then the other performance data.


    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071122/8d293417/attachment.sig>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list