monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Monitor host only at day


From: Thorsten Kampe
Subject: Re: [monit] Monitor host only at day
Date: Tue, 8 Sep 2009 23:40:08 +0200
User-agent: MicroPlanet-Gravity/2.9.11

* Martin Pala (Tue, 8 Sep 2009 22:36:02 +0200)
> 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

Interesting. Will that also work with a "check host" statement (as I 
don't use "check process" at all)?

Thorsten





reply via email to

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