NSCA 2.9? 4k plugin output limit, checkresult directory option

Mike Lindsey mike-nagios at 5dninja.net
Tue Aug 9 02:53:31 CEST 2011


I submitted an earlier version of this patch awhile ago, to no response, 
so here's an updated version that fixes a buffer overflow bug and a 
lockfile race condition.

Apply patches against a clean 2.7.2 source.  Allows 4096 character long 
plugin output, and allows direct submission to the checkresult 
directory, skipping the command pipe.

Add the following (or similar) to nsca.cfg, it'll failback to command 
pipe if there's a write error:
check_result_path=/usr/local/nagios/var/spool/checkresults

I've not done any extensive performance testing, though my cursory tests 
showed decent performance improvements (I also have my checkresults 
directory on ramdisk).

Hopefully other people find this useful.  I'm not sure what else you 
would want and need in NSCA to make it a "3.0" release, but making it 
compatible with some of the other improvements in Nagios 3+ seems like a 
nice start?  I've got an altered copy of send_nsca_cached I've updated 
to work with multiline nsca, if anyone wants it.

Enjoy!

-- 
Mike Lindsey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsca.patches.tgz
Type: application/x-gzip
Size: 3991 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110808/7617f7cd/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
-------------- 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