monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] monitoring apache on different port


From: Linux Cook
Subject: [monit] monitoring apache on different port
Date: Thu, 8 Apr 2010 18:06:02 +0800

hi!

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]