Page 1 of 5
Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:11 pm
by A.Cormack
Hi All,
Recently after help from you guys I installed a series of plug-ins on to my Nagios system. One of these plug-ins was "check_apache_status". I used two features of this plug-in "apache requests and "traffic", they both worked great and were fully functional.
However, after booting my devices up today the "traffic" feature of this plug-in appears to have stopped working yet, the "Apache Requests" continues to work.
I'm wondering if anyone can tell me why this may be?
Thank You
Code: Select all
Nagios Version: 2912R1.6
Plug-in: check_apache_status
Command: $USER1$/check_apache_status -H $HOSTADDRESS$ -v traffic $ARG1$
$ARG1$: -w 5.0 -c 8.0
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:25 pm
by abrist
What happens when you run the check from the cli?
Code: Select all
./check_apache_status -H <host ip> -v traffic -w 5.0 -c 8.0
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:30 pm
by A.Cormack
abrist wrote:What happens when you run the check from the cli?
Code: Select all
./check_apache_status -H <host ip> -v traffic -w 5.0 -c 8.0
Code: Select all
[root@localhost libexec]# ./check_apache_status -H 192.168.19.136 -v traffic -w 5.0 -c 8.0
APACHE UNKNOWN: traffic is
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:44 pm
by abrist
How about running it without the "-v ...."
Code: Select all
./check_apache_status -H <host ip>
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:46 pm
by sreinhardt
If you go to the server status page on the apache server, does it provide traffic information? It could be that the server is not providing said information since the output from the script is fairly direct and is not erroring.
http://192.168.19.136/server-status
Current Time: Wednesday, 06-Mar-2013 13:44:10 CST
Restart Time: Sunday, 03-Mar-2013 03:31:04 CST
Parent Server Generation: 1
Server uptime: 3 days 10 hours 13 minutes 5 seconds
Total accesses: 65919 -
Total Traffic: 87.8 MB
CPU Usage: u1999.68 s146.16 cu1.59 cs0 - .726% CPU load
.223 requests/sec - 310 B/second - 1395 B/request
1 requests currently being processed, 11 idle workers
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:47 pm
by A.Cormack
abrist wrote:How about running it without the "-v ...."
Code: Select all
./check_apache_status -H <host ip>
I'm really confused as it was working fine the other day :/
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 2:56 pm
by abrist
Do a running tail on your remote host's apache log and then try to run the plugin once again. Post the tail here:
(depending the remote host's distro, the location of your apache logs may be different)
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 3:01 pm
by A.Cormack
abrist wrote:Do a running tail on your remote host's apache log and then try to run the plugin once again. Post the tail here:
(depending the remote host's distro, the location of your apache logs may be different)
Im running Apache on a windows server. So i think im right in saying I need to find the windows format of that command?
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 3:06 pm
by abrist
You should find the error logs for apache on the windows box in the base apache install directory. You will see a folder named "logs". Check there.
Re: Plug-In check_apache_status, traffic
Posted: Wed Mar 06, 2013 3:17 pm
by A.Cormack
abrist wrote:You should find the error logs for apache on the windows box in the base apache install directory. You will see a folder named "logs". Check there.
Sorry, yes I've already done that. For some reason I thought what you were asking was more complicated.
The error log's dont point out anything wrong. Just the server shutting down and starting up again.
I had a quick look at the access.logs and it does look like the Nagios server is attempting to get data
Code: Select all
192.168.19.134 - - [06/Mar/2013:20:15:09] "GET /server-status HTTP/1.1" 200 4251
192.168.19.134 is the nagios server