[PATCH] for nagios 3.x to speed up send_nsca (in parallel)

Holger Weiß holger at cis.fu-berlin.de
Mon Mar 4 13:43:23 CET 2013


* Sielski, Wojciech <wsielski at team.mobile.de> [2013-02-27 13:58]:
> We have one main Nagios server that receive plenty passive checks
> from many satellites Nagios serveres - in each datacenter one.
> We had a lot of Nagios performance issues in our very big environment
> (more than 900 hosts, more than 13000 services).
> 
> Performance was connected with (forwarding) sending
> passive check from satellite to master Nagios.
> Script which is responsible for that is executed
>  for each send passive check
> ./contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
> and makes that other checks are queued till script finished.
> -> overall it causes Nagios scheduled queue
> was more than 30 minutes behind.
> 
> 
> Trick is to use '&' and STDOUT to /dev/null
> I know this is a workaround / proof of concept
> (ideal solution would be to have 'send_nsca ­-b'
> - run in background as an option)

Such an option wouldn't work if send_nsca still reads the data from the
standard input.  I guess the proper fix would be to have Nagios execute
the whole thing in the background (recent versions still don't do
that?); but failing that, your solution looks just fine to me.

Holger

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb




More information about the Developers mailing list