Page 1 of 1

check_apachestatus.pl

Posted: Fri Jan 25, 2013 1:39 pm
by ecarrasq
Linux Distribution and version? CentOS, 2.6.18-308.8.2.el5PAE
32 or 64bit? 32bit
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? No
Are you using a proxy? No
Are you using SSL? Yes
Nagios Version? Nagios XI 2012R1.4

I'm running check_apachestatus.pl from the http://nagios.frank4dd.com/plugins/
Following the instructions: http://nagios.frank4dd.com/howto/apache ... nagios.htm

But I'm receiving the following in NagiosXi:
CRITICAL 0.056238 seconds response time. Idle , busy , open slots 1
There are more open slots available according to the server-status page of the web server I'm monitoring. Is there something else that needs to be "Enabled" in the web server aside from what the instructions state?

Thanks,
Eddie

Re: check_apachestatus.pl

Posted: Fri Jan 25, 2013 2:49 pm
by sreinhardt
Just to clarify, you are able to access the server-status page if you do a wget https://[servername]/server-status ? I was able to follow the guide, with some changes to configuration location, restart apache, and have no real issues. What I do notice though, is that you are not showing any values for idle or busy workers. Could you send a copy of your server status page, or at least the 1 requests currently being processed, 7 idle workers line? Also if you could send the check command arguments you are using please.

Re: check_apachestatus.pl

Posted: Fri Jan 25, 2013 4:56 pm
by ecarrasq
When I do the wget, I get the following:
<dl><dt>Server Version: Apache/2.2.3 (Red Hat)</dt>
<dt>Server Built: Nov 19 2012 05:16:13
</dt></dl><hr /><dl>
<dt>Current Time: Friday, 25-Jan-2013 13:51:14 PST</dt>
<dt>Restart Time: Friday, 25-Jan-2013 12:14:11 PST</dt>
<dt>Parent Server Generation: 3</dt>
<dt>Server uptime: 1 hour 37 minutes 3 seconds</dt>
<dt>Total accesses: 49388 - Total Traffic: 667.3 MB</dt>
<dt>CPU Usage: u7.94 s2.02 cu0 cs0 - .171% CPU load</dt>
<dt>8.48 requests/sec - 117.3 kB/second - 13.8 kB/request</dt>
<dt>3 requests currently being processed, 4 idle workers</dt>
</dl><pre>.C___.C.._W.....................................................
................................................................
................................................................
................................................................
Attached is the screenshot of the server-status page taken earlier from web browser.

Command ARG:
$USER1$/check_apachestatus.pl -H $HOSTADDRESS$ $ARG1$
$ARG1$ = -p 443 -t 30 -w 20 -c 10

Re: check_apachestatus.pl

Posted: Sun Jan 27, 2013 11:08 pm
by scottwilkerson
I notices you have -p 443 but do not have the -s to enable https

I would recommend change to

Code: Select all

$ARG1$ = -s -t 30 -w 20 -c 10

Re: check_apachestatus.pl

Posted: Mon Jan 28, 2013 1:17 pm
by ecarrasq
PERFECT! It works!

THANK YOU!!!!
Eddie

Re: check_apachestatus.pl

Posted: Mon Jan 28, 2013 2:13 pm
by slansing
Excellent, thanks for letting us know that did it for ya!