> 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.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]