Nagios

Profiler to check plugin execution time

Description:

This is a simple perl script that parses /var/log/nagios/status.dat and prints how long execution of each service type took. Useful for performance tuning. THIS IS NOT A PLUGIN – it is a console utility.

Current Version

0.21

Last Release Date

2012-01-15

Compatible With

  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI

License

GPL


Project Files
Project Notes
This is a simple perl script that parses /var/log/nagios/status.dat and prints how long execution of each service type took sorting data by time - it both prints each individual service took on top and on the button in reverse order consolidates services with same names but on different hosts so you get an idea of data for this service on average. This is useful for performance tuning to find which plugins and checks are executing too long. Just run it and see what it does.
Reviews (3) Add a Review
Nice Script... Very Simple
by nishith, December 31, 2022

Worked as described. Just replaced the below line with the actual one. #my $file="/var/log/nagios/status.dat"; - old line my $file="/usr/local/nagios/var/status.dat"; - new line Run the file & export all data into a text file using ">" sign.



A must-have to find out nagios controls perf issues.
by Perkolator, May 31, 2017

A must-have to find out nagios controls perf issues. Thanks a lot for your contribution William Leibzon!!!! For my NagiosXI, I only had to change the variable: my $file="/var/log/nagios/status.dat"; for: my $file="/usr/local/nagios/var/status.dat"; And worked like a charm. My NagiosXI version is: Nagios XI (5.4.4)



Unable to execute the script
by Malik, October 31, 2010

Hi Seems like a very useful script but getting the following exception. Do you have fix Illegal division by zero at ./profile_nagios_executiontime.pl line 49.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.8 (4)
Favorites
3
Views
101,315