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
Current Version
1.0
Last Release Date
2015-05-09
Compatible With
- Nagios 3.x
- Nagios 4.x
Owner
Website
License
GPL
Hits
6670
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!