I've recently spent a lot of time overhauling my mon.cf.  I moved to m4 
macros which I had been meaning to try (I recommend them to anyone who 
has not tried them for mon.cf).

Anyway, I am trying to implement failure_interval and alertafter, but it 
does not seem to like it.

Basically, I was thinking for a few services that are touchy to have the 
system regularly test every 30 minutes.  But if it has a failure to test 
every minute.  Then issue an alert if it fails 5 times in one minute.

I thought it was working fine, until I did not get alerts and I realized 
that a blank line made mon ignore the period definitions all together.

Now it complains that my:

cf error:  interval & alertafter not sensible.  No alerts can be 
generated with those parameters, line 51.

Now, I am guessing that it is looking at my normal interval, not my 
failure_interval.


Would this make sense, to allow the check to consider a failure_interval 
if it is present?

I can see that under most circumstances it does not make sense to pound 
something harder if it is down, but you never know...

What I am doing now is just setting the alertafter to something that is 
crazy for the interval, but makes sense for the failure_interval




_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to