Martin Pozdílek wrote:
> Hello
>
> It's still problem with max plugin output length in 3.0b6. The increase
> of max plugin output length cap from 4kb to 8kb was announce in Changelog.
> The maximum of output is defined by these constants in common.h nagios.h
>
> /*
> NOTE: Plugin length is artificially capped at 8k to prevent runaway
> plugins from returning MBs/GBs of data
> back to Nagios. If you increase the 8k cap by modifying this value,
> make sure you also increase the value
> of MAX_EXTERNAL_COMMAND_LENGTH in common.h to allow for passive
> checks results received through the external
> command file. EG 10/19/07
> */
>
> #define MAX_PLUGIN_OUTPUT_LENGTH 8192 /* max length of
> plugin output (including perf data) */
> #define MAX_EXTERNAL_COMMAND_LENGTH 8192 /* max length of
> an external command */
>
> But the maximum length of message pushed to nagios through external
> command file is limited to 4kb.
This limitation is put in place in the kernel, which has a hardcoded value
for FIFO's set to 4096 bytes. You need to alter the value (locate it with
git-grep) and then re-compile your kernel.
--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]