I'm trying to monitor an apache on port 3000. My config below:
set daemon 30
set logfile syslog facility log_daemon
check process apache with pidfile /var/run/apache2.pid
group www-data
start program = "/etc/init.d/apache2 start"
stop program = "/etc/init.d/apache2 stop"
if failed host localhost port 3000 then restart
Monit responds when apache is offline but can't start it due to error:
Apr 8 05:29:38 dl014 monit[14649]: 'apache' process is not running
Apr 8 05:29:38 dl014 monit[14649]: 'apache' trying to restart
Apr 8 05:29:38 dl014 monit[14649]: 'apache' start: /etc/init.d/apache2
Apr 8 05:29:39 dl014 monit[14649]: 'apache' failed to start
Any thoughts? Anything I missed on config?
Oliver Cook