Event Profiler Patch for Nagios 3x

Hiren Patel hir3npatel at gmail.com
Fri Jun 19 21:32:26 CEST 2009


Steven D. Morrey wrote:
> Hello Everyone,
> 
> Attached you will find the fully redesigned event profiler patch for nagios-3x.
> It was generated against the cvs head as of today.
> 
> As is, it instruments each event type as well as the event loop itself.
> It has the ability to instrument any portion of code you wish to measure with very little difficulty.
> 
> It will display results through the standard nagiostats as well as via mrtg.
> 
> By default this will display elapsed time, event counter, time per event and events per second.
> 
> mrtg for profiler stats is PROFILE_(COUNTER/ELAPSED/EVENTPS)_STAT_NAME
> For instance to get the events per second stat for service checks.
> 
> nagiostats -m -d PROFILE_EVENTPS_EVENT_SERVICE_CHECK
> 
> I hope this will help everyone fine tune their nagios install for maximum performance. :)
> 
thanks! I'm giving it a run as we speak.
I don't have much of a good test setup here, but I'll try delay checks 
and other things to see how it works, I appreciate this feature.

for those wanting to take this for a spin, run this before running 
./configure:
export CFLAGS="-DEVENT_PROFILER"

I had to muck around a bit to find out how to pass this flag to all the 
makefiles, the export worked for me, and only then did make complete 
successfully with the patch.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org




More information about the Developers mailing list