[Xymon] Limiting repeated messages
mburger at bubbanfriends.org
Thu Feb 9 15:09:38 CET 2017
On 2017-02-08 10:29 am, Root, Paul T wrote:
> So we have custom tests that developers/maintainers of the application want alerts for just once a day. But we use a script to mail to them pretty printed html, so I can't use REPEAT=1d on the SCRIPT line, and putting REPEAT on the host line doesn't work.
> Can I put the REPEAT on its own line?
> HOST=NMSRep DURATION>7 SERVICE=LogMasterErr,NMSRepScheduler,NMSRepTask,RepDisc_Issues COLOR=red,yellow,purple RECOVERED
> SCRIPT /usr/local/scripts/html_mail.pl $NG-NMSRep-DEV
> Or perhaps, embed the repeat into the argument of the script?
I wonder if it's that you have the entire thing on one line that is the
I mention this because I have the following set up for one of my test
SCRIPT /usr/local/bin/red-alert-xymon-mail.sh <my email address>
DURATION>1 REPEAT=1m COLOR=red SERVICE=procs,msgs RECOVERED
I tested it out, just now, by echoing the alarm string into a monitored
log and it works just fine. I got the first alert 1 minute after the
text was detected in my log and another, a minute later.
"It's always suicide-mission this, save-the-planet that. No one ever
just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xymon