Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Email Thresholding

by bfdi533 (Friar)
on Apr 02, 2015 at 15:31 UTC ( [id://1122273]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Email Thresholding
in thread Email Thresholding

That is exactly right. There are times when there are no emails and the first event of the hour is the only email needed. But the times when it gets very noisy, the email "spam" is a problem. Last night as an example we received 23000+ emails, hence the need for thresholding.

Replies are listed 'Best First'.
Re^4: Email Thresholding
by bitingduck (Chaplain) on Apr 02, 2015 at 15:36 UTC

    For something like that I might even add a feature where the on-call person who does the fix runs a little script that sets a flag to indicate the last time a human responded with a fix, and if a new event comes in after that time, but in less than an hour, it sends the email because either the fix didn't fix it or a new event has showed up to set things off and you want someone to respond right away.

      That's a good technical solution but probably a poor choice for the psychology of the situation. You want your hungover, just awakened sysadmin to spend what focus she has available on fixing the actual problem that triggered the alert.

Re^4: Email Thresholding
by Lotus1 (Vicar) on Apr 03, 2015 at 23:51 UTC

    If the process runs every couple of minutes how can you receive over 23000 emails in a single night? It must be sending one email per event. If you sum up all the events each time the script runs and send one email every couple of minutes the most emails you'll get overnight is 15 hours/night * 30 emails/hour = 450 emails/night.

      Yes, currently the script is sending one email per event. Thus, this thread to get some ideas on thresholding.

        Your original post said:

        When new "events" are seen, an email is sent. ...

        "An email is sent" implies one email per run of the script. Sending one summary email per run would likely remove the need to threshold or at least give you breathing room while you work on the problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1122273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-19 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found