Hi,

I'm using the lastest stable version of mon (0.99.2), but I don't manage to get the
option "upalertafter" to work...
Searching the mailing list archives, I haven't found references for my problem...

So, if someone could help me, here is my (simple ?) problem :

A "down" alert is raised when two consequent failures happen (this works fine). But, I've also set an "upalert", that should only be raised after 2 minutes without incident. However, the problem is that, on the *first* successful test after a "down" alert, the "upalert" script is called... Very bad, because I need to be sure that the service is really back in a *reliable* way before calling my "upalert"
script !

Is it a bug, or a misunderstanding of the "upalertafter" option ?


Part of "mon.cf" :
------------------------------------

watch server
      service internet-access
              interval 10s
              monitor internet-access.monitor
              period wd {Sun-Sat}
                      alertafter 2
                      numalerts 1
                      alert test.alert
                      upalertafter 2m
                      upalert test.upalert


Part of "/var/log/messages" :
------------------------------------------------------

Feb 14 10:09:08 mail mon[22691]: failure for server internet-access 1139908148 localhost Feb 14 10:09:16 mail mon[22691]: failure for server internet-access 1139908156 localhost Feb 14 10:09:16 mail mon[22691]: calling alert test.alert for server/internet-access (/usr/lib/mon/alert.d/test.alert,) localhost Feb 14 10:09:27 mail mon[22691]: failure for server internet-access 1139908167 localhost Feb 14 10:09:34 mail mon[22691]: calling upalert test.upalert for server/internet-access (/usr/lib/mon/alert.d/test.upalert,) localhost


Thank you in advance,
Philippe Ferreira.

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

Reply via email to