Xymon Mailing List Archive search

Limiting repeated messages

list Erik
Fri, 10 Feb 2017 07:26:21 -0600
Message-Id: <user-1e97f5138d0d@xymon.invalid>

Using what you'd provided, here's what I'd put in your alerts.cfg

HOST=NMSRep SERVICE=LogMasterErr,NMSRepScheduler,NMSRepTask,RepDisc_Issues
COLOR=red,yellow,purple RECOVERED
    SCRIPT /usr/local/scripts/html_mail.pl $NG-NMSRep-DEV DURATION>7d
DURATION<14d REPEAT=1d

I moved the duration rules down to the "SCRIPT" line.  I also added a
2nd duration rule to demonstrate you could time box this.  The script
will fire once per day for 7 days, after 7 days.