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

Directory Tree

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
7773
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!
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