Create daily digest

Hello,

After 10 pm, we don’t send alerts. The next morning, I had no idea what was going on until I arrived at work, because we don’t have mobile access implemented (assuming this feature even exists yet).

So, I wrote a small script that sends out a daily notification at 6 am on workdays. The email contains a list of hosts and services with open alerts. I spent a long time trying to solve this using a built-in feature, but currently, we only have the RAW edition.

The scheduling is handled via the site user’s crontab.
I’m not a professional Python programmer, so the script may contain quite a few mistakes.

send-statusreport.py - Pastebin.com

3 Likes

Hi Markus,

this sounds very much like the option to “bulk” notifications during certain time periods "


"

Or am I missing some feature :)?

Gerd

1 Like

You’re right. This is a possible solution. :grinning:

There is a small disadvantage. When a host or service is flapping overnight, the bulk notification is filled with alerts. Then you have to figure out what was the last state of the host or service. (We also monitor Windows Logs that are very noisy and blow up bulk alerts.)

2 Likes