ePN and multi line output

Ethan Galstad nagios at nagios.org
Wed Dec 26 18:52:32 CET 2007


Wolfgang Barth wrote:
> Hi,
> 
> a with plugin with multi line output shows only the first line if ePN is
> enabled (nagios-3.0rc1 and earlier versions). Try the following stupid plugin:
> 
> ===
> #!/usr/bin/perl  -w
> # nagios: +epn
> print "check_dummy_multi - OK - some text|\n";
> print "line 2\n";
> print "line 3|perfdata=10;80;90;0;100;\n";
> exit 0;
> ===
> 
> Disabling ePN gives the expected result. Same problem with check_multi.
> 
> Wolfgang

I just submitted a patch for p1.pl that I believe fixes this.  It worked 
on the sample script you provided at least.  Not sure if it'll break 
other Perl scripts, but I don't think it should...


Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
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/




More information about the Developers mailing list