Limiting repeated messages
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.