no cron
the script /usr/bin/smeadmin runs every 5 minutes
there are two kinds of emails
- email status which frequency can be changed
- email alert, sent on every run (every 5 minutes) if triggered.
# etape 4 : envoi des eventuels mails d'alertes
mail_alerte();
mail_status() if ($params{'StatusInterval'} && !($cont % $params{'StatusInterval'}));
probably something like that for the easy way
# etape 4 : envoi des eventuels mails d'alertes
mail_alerte() if ($params{'AlertInterval'} && !($cont % $params{'AlertInterval'}));
mail_status() if ($params{'StatusInterval'} && !($cont % $params{'StatusInterval'}));
then add the setting StatusInterval to the gui
the better way would be a take a counter of every alert and start the modulus on the time of last alert of this type ( you might want to have the alert at the beginning of the problem, not 1,5 hours latter because you asked to mute for 2 hours