Home Directory Plugins Web Servers Apache Check Apache Slow Requests

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

Check Apache Slow Requests

Current Version
1.0
Last Release Date
2015-05-09
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
4744
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check Apache Slow Requests
Plugin removed and no longer supported !
Plugin removed and no longer supported !

USAGE:
/check_slowrequests.sh normal_hit_is_below_sec access_log warn crit
Nagios script to get the value of slow Apache hits from acess log which are executed longer then normal_hit_is_below_sec

REQUIREMENTS:
Make sure that the last word of each request in your access_log is "The time taken to serve the request, in seconds."
Here is my LogFormat in httpd.conf
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %T" combined

IMPORTANT:
Probably, you may have to let nagios run this script as root or another user, which has read permission to apache access log
This is how the sudoers file looks in Debian or CentOS system:
nagios ALL=(root) NOPASSWD:/usr/lib or lib64/nagios/plugins/check_slowrequests.sh

do not forget to comment 'Defaults requiretty' in sudoers conf if necessary