Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Profiler to check plugin execution time
0.21
2012-01-15
- Nagios 2.x
- Nagios 3.x
- Nagios XI
GPL
101404
File | Description |
---|---|
profile_nagios_executiontime.pl | profile_nagios_executiontime.pl |
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 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.
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.
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)
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)
byMalik, October 13, 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.
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.