SERVICEPERFDATA output is only 255 char long on Nagios 3.0.1

Hendrik BŠäcker andurin at process-zero.de
Mon May 5 19:23:14 CEST 2008


Hi,

Max schrieb:
> Hi,
> 
> Look at p1.pl in the Nagios directory, if your script is running under
> ePN you will need to replace occurances of 256 in that script with
> 4096 as the script does a substr() and only takes the first 256 chars
> of output.  Ran into this myself, meant to submit a patch, would be
> really nice for configure to set this based on the settings in the
> nagios .h file that sets maximum output length at compile time,
> unfortunately I haven't had the time to do the patch yet.
> 

If that's the truth, I guess Nagios would ignore the "# nagios: -epn" in 
the second line of the PNP data collection script.
But I know that the process_perfdata.pl script from pnp wouldn't run 
fine with ePN, so it wouldn't work anyway.

@Jorge/Silva: Can you give this hint a try and let us know?

Regards,
Hendrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3261 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080505/a338476d/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list