[Top][All Lists]

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

Re: [monit] Monitor host only at day

From: Martin Pala
Subject: Re: [monit] Monitor host only at day
Date: Wed, 9 Sep 2009 22:39:14 +0200

On Sep 9, 2009, at 11:07 AM, Thorsten Kampe wrote:

* Martin Pala (Tue, 8 Sep 2009 22:36:02 +0200)

You can set the monitoring mode to manual (se the service is not
automatically monitored) like this:

  check process foobar with pidfile /var/run/
    start program = "..."
    stop program = "..."
    mode manual

and cron entries:

0 8 * * * /usr/bin/monit monitor foobar
0 19 * * * /usr/bin/monit unmonitor foobar

That sounds nice but unfortunately it does not work:

# monit unmonitor remotehost
# monit status
Remote Host 'remotehost'
 status                            online with all services
 monitoring status                 monitored
 icmp response time                0.019s [Echo Request]
 data collected                    Wed Sep  9 11:03:06 2009

# monit summary
The Monit daemon 5.0.3 uptime: 2m

Remote Host 'remotehost'            online with all services

-- so it does have any effect. Then I tried unmonitoring "remotehost" via the web interface and it worked perfectly

This is strange ... are you sure you typed the service name correctly? The monitor/unmonitor commands doesn't return any status value (will be fixed in next Monit release), but you can check Monit daemon logs (run it with -v option) and/or check network trace (wireshark for example).

reply via email to

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