MAX_PLUGINOUTPUT_LENGTH

Alessandro Ren alessandro.ren at opservices.com.br
Fri May 26 16:39:10 CEST 2006


Andreas Ericsson wrote:
> Goetz Rieger wrote:
>> Hi all,
>>
>> I need a longer maximum plugin output length in Nagios 2.3.1 because I
>> have a custom plugin which could possibly return quite a lot of data.
>>
>> In include/objects.h MAX_PLUGINOUTPUT_LENGTH is set to 332.
>>
>> So I have two questions:
>>
>> -Is that the correct define to alter the length of a plugin output 
>> read by
>> Nagios?
>>
>
> Yes.
>
>> -Is there any drawback when setting the value rather high, say 1000?
>>
>
> Possibly, but not necessarily. The maximum posix-guaranteed atomic 
> write-size is 512 bytes. If you increase this number you *might* see 
> plugin output getting mixed with output from other plugins. Also, if 
> you do this on a large monitoring installation you will double the 
> risk of filling up the FIFO nagios uses for receiving check-commands, 
> which will cause a build-up of nagios processes that will eventually 
> starve the system of memory.
>

    By doing, I'd tell you, if you do change this, as I've done, your 
system will starve, ours has.

    []s.



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642




More information about the Developers mailing list