Monit lists Apache as Not Monitored
Make sure the contents of the pid file match up with the Apache master process's pid (i.e., the httpd
process that runs as root). It's possible the pid file is stale.
If it's stale, get the pid of the Apache master process, and do something like echo 1234 > /var/run/httpd.pid
, where 1234
is the pid in question.
After that, run monit monitor apache
to restart monitoring of that service.