Hi,

this is not supported currently, but you can simply use cron to enable/ disable monitoring if the service when needed.

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

the first entry will enable monitoring of service foobat at 8:00 every day
the second entry disables monitoring at 19:00


Martin

On Sep 8, 2009, at 10:18 PM, Thorsten Kampe wrote:

Hi,

I monitor a computer that is usually turned off at night. Is it possible to instruct monit to check this host only during the day? Or to check it
but not send emails?

Thorsten




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



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

Reply via email to