We just setup Monit with the following in /etc/monit.conf:
check process apache with pidfile /usr/local/apache/logs/httpd.pid start "/etc/init.d/httpd start" stop "/etc/init.d/httpd stop" if failed port 80 protocol apache-status loglimit > 60% then restart
Unfortunately Monit fails with the following message in /var/log/monit:
[MST Mar 31 12:05:20] error : 'apache' failed protocol test [APACHESTATUS] at [localhost]:80 [TCP/IP] -- APACHE-STATUS: error -- no scoreboard found
What I understand from this message is its looking for the word 'scoreboard' in server-status page Interesting server-status page doesn't contain the word 'scoreboard' above the lines:
LL_LWLLLLL_LLLLLLLLL_LLLLLLLLL.LW_LL_LLLLLLL_L.LLLLLLLLLL_LLLLLL L_LLLLLLLLLLLW_LL.LLLLLL_LRLLLL_L_LLLLLL__WL__LLLLLLL_LL_LLLLLLL LLR_LLLLLLLLLL.LLLLL_RLLLLLLLLL_LLLLLL__LLLLLLL_LLLLL_LLLLLLLLLR LLLLLLLLL_LL_L_LLLCLLLLLLLLLLLLL.LLLLLLLLLLLLLWLLLLLLL_LLL_LLLLL
However the word 'scoreboard' is present in the link server-status?auto.
Appreciate any help. Here is the systems we have: CentOS 2.6.32-573.12.1.el6.x86_64 GNU/Linux Apache version: Apache/2.4.18 (Unix)