check_apache not working and returning HTTP
Posted: Thu Apr 17, 2014 5:58 am
I am trying to use check_apache for monitoring the apache specifics. I am testing it on 2 different servers and both have mod_status loaded and Extended On para is added.
Reference I used - https://github.com/danndalf/check_apache
On the Nagios server where we use the script to poll the apache servers is having the Perl modules including SSleay. Port 443 is enabled as well.
Any help that can be provided would be highly appreciated, or please refer any other plugins which I can make use of.
On one server its returning error, HTTP code 400 and another one its returning but with blank values for all monitoring parameters (active_threads, cpu_usage_user etc). Could you please help or give any info regarding this. Any help on this would be highly appreciated.
I have few queries as well..Is there anything that needs to be done at the apache side. I am not a apache expert and hence this question.
The apache server runs on a prod IP which is NAT ed at firewall and we have access to only the NAT'd IP and if the Apache is configured to listen 80 and if we use
check_apache -H 10.10.10.150 -m cpu_usage_user -w 10 -c 15 -P 443 -v -t 10
APACHE UNKNOWN - Host returned HTTP code 400.
check_apache -H 10.10.10.120 -m cpu_usage_user -w 10 -c 15 -P 443 -v -t 10
APACHE OK - cpu_usage_user % | cpu_usage_user=%;10;15
Reference I used - https://github.com/danndalf/check_apache
On the Nagios server where we use the script to poll the apache servers is having the Perl modules including SSleay. Port 443 is enabled as well.
Any help that can be provided would be highly appreciated, or please refer any other plugins which I can make use of.
On one server its returning error, HTTP code 400 and another one its returning but with blank values for all monitoring parameters (active_threads, cpu_usage_user etc). Could you please help or give any info regarding this. Any help on this would be highly appreciated.
I have few queries as well..Is there anything that needs to be done at the apache side. I am not a apache expert and hence this question.
The apache server runs on a prod IP which is NAT ed at firewall and we have access to only the NAT'd IP and if the Apache is configured to listen 80 and if we use
check_apache -H 10.10.10.150 -m cpu_usage_user -w 10 -c 15 -P 443 -v -t 10
APACHE UNKNOWN - Host returned HTTP code 400.
check_apache -H 10.10.10.120 -m cpu_usage_user -w 10 -c 15 -P 443 -v -t 10
APACHE OK - cpu_usage_user % | cpu_usage_user=%;10;15