[smokeping-users] Re: Alert External Script -- Rate Limiting of Alerts

Tobias Oetiker oetiker at ee.ethz.ch
Fri Dec 6 23:07:39 MET 2002


Today Poetzel, Christopher J. wrote:

>
> I am starting to dig into alerts and am finding them very useful.
> Currently I am having Smokeping call an external Perl script, passing
> The script the SmokePing variables, and having the script parse them, decide
> Whom to mail an alert to, and then mail it off.
> The problem I am having is flooding people's email/pagers with alerts.
> It tends to annoy people very much when the get the same page over and over
> Every five minutes until it gets fixed.
> I would like be able to suppress an alert if it was triggered in the past
> X hours so not to flood people's email pagers.
> Has anyone tried to implement this in a script or have another approach on a
> problem.
>
> For example,
>
> An alert like
>
> +lossdetect
> type=loss
> pattern = >10%,>10%,>10%,>10%>10%

Well the trick is to detect the start of the line being down, that
is the beauty of the pattern approach ...

pattern = <10%,<10%,<10%,<10%,<10%,>10%>10%

this will only fire if the line has been  up for a while and then
stays down for two cycles ...

cheers
tob


> comment = There is a serious connectivity issue with this machine.
>
> Will fire every five minutes if a machine that is set up with the
> Alerts=lossdetect
> Line goes down.
>
> Thanks,
>
> Chris poetzel
> cpoetzel at anl.gov
> Argonne National Laboratory
>
>
> --
> Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/smokeping-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, ETZ J97, ETH, CH-8092 Zurich, Switzerland
 / // _ \/ _ \/ /  System Manager Coach Time Lord Developer Designer
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/~oetiker +41(0)1-632-5286

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list