|
From: | Mike Jackson |
Subject: | Re: Actions based on time of day? |
Date: | Tue, 23 May 2006 09:19:33 -0700 |
Is it possible to have monit decide it's actions based on the time of day? For example I have a nightly script that runs and kicks CPU load up high causing monit to alert, but since its expected between 02:00 and 02:10 it creates a false alert therefore I want to instruct monit not to alert about CPU load between these times. Can I do this in the current release? If not is this a feature that could be added?
I'd love to see this feature too. I use a homebrew Perl script to rotate Apache's logfiles, and one of the things I have to do in it is tell monit to unmonitor Apache until the rotation is done. It would be nice to be able to set something like this in monitrc for a process:
if timeofday 0400-0410 then unmonitor Alternately, be able to set something like this on the alert lines: alert address@hidden on { timeout connection } if timeofday !0400-0410While that wouldn't affect the actual monitoring and action on a process, it would at least mean that someone's pager wouldn't be going off while they're asleep for something that they don't need to take action on.
[Prev in Thread] | Current Thread | [Next in Thread] |