Native httpd monitoring by AppicationHA on RHEL 5.8
Hi,
I have configured Apache monitoring with Application on RHEL 5.8. This server runs /usr/sbin/httpd and the coniguration file is /etc/httpd/conf/httpd.conf. However AppHA alway report that
"Apache HTTP server with Config file [/etc/httpd/conf/httpd.conf] is NOT RUNNING (Starting)"
However if I login to the server, I can see that the process is running.
The error code is V16-20081-3.
Accoring to the logs under /var/VRTSvcs/log , ( apache log ) it is considring the http directory as /usr/sbin instead of /etc/httpd
Any suggestions or recommendations?
Thanks in advance
Hari
It is likely that the httpd processes that are running do not have the required "-f <config file>" option that is needed for monitoring the different Apache processes in ApplicationHA. You may have to update the startup script for the Apache instance to pass "-f /etc/httpd/conf/httpd.conf" option to httpd while starting it up. You confirm the same by "ps -ef | grep httpd" . Application HA detects the processes only if the httpd is started with the config file option provided.
e.g.
ps -ef |grep http
root 3588 1 17 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3589 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3590 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3591 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3592 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3593 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3594 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3595 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3596 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf
apache 3597 3588 0 17:02 ? 00:00:00 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf