Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Apache Slow Requests
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!
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
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
Reviews (0)
Be the first to review this listing!