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
98236
Files:
FileDescription
profile_nagios_executiontime.plprofile_nagios_executiontime.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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 (2)
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.