* 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/foobar.pid
>      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


Thorsten



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to