Home Directory Plugins Network and Systems Management Nagios Profiler to check plugin execution time

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Profiler to check plugin execution time

Current Version
0.21
Last Release Date
2012-01-15
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Owner
License
GPL
Hits
101400
Files:
FileDescription
profile_nagios_executiontime.plprofile_nagios_executiontime.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.
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)
bynishith, December 28, 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. 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)
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.