we had a problem with a SMB share which affects at least 30 services, directly and indirectly, so we received 30 notifications within 10 minutes, which obviously had one cause. In our old monitoring we used a bash script to send SMS notifications and create Jira tickets with nagios commands depending on how many notifications were send in the previous 30 minutes to avoid spam, and we set the count to 0 every 30 minutes.
Is it possible to have a limitation for notifications in a certain period of time? or should I use a counter file as well?
How I understand the
Restrict to nth to mth notification or
Throttle periodic notifications in the conditions of a notification are generally applied and not for a specific period of time, correct me if I am wrong please.
The only solution I came up with, is to use a counter file as we used to do, or using Redis, which is an overkill at this point.
Thanks for your suggestions.