<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>On 2017-02-08 10:29 am, Root, Paul T wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored -->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;">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. <!-- o ignored --></span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;"><!-- o ignored --> </span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;">Can I put the REPEAT on its own line?<!-- o ignored --></span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;"><!-- o ignored --> </span></span></p>
<p class="MsoNormal"><span style="color: #4f81bd; font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt; color: #4f81bd;">HOST=NMSRep DURATION>7 SERVICE=LogMasterErr,NMSRepScheduler,NMSRepTask,RepDisc_Issues COLOR=red,yellow,purple RECOVERED <!-- o ignored --></span></span></p>
<p class="MsoNormal" style="text-indent: .5in;"><span style="color: #4f81bd; font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt; color: #4f81bd;">REPEAT=1d<!-- o ignored --></span></span></p>
<p class="MsoNormal" style="text-indent: .5in;"><span style="color: #4f81bd; font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt; color: #4f81bd;">     SCRIPT /usr/local/scripts/html_mail.pl $NG-NMSRep-DEV<!-- o ignored --></span></span></p>
<p class="MsoNormal" style="text-indent: .5in;"><span style="color: #4f81bd; font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt; color: #4f81bd;"><!-- o ignored --> </span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;"><!-- o ignored --> </span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;">Or perhaps, embed the repeat into the argument of the script?<!-- o ignored --></span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;"><!-- o ignored --> </span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;">Thanks,<!-- o ignored --></span></span></p>
<p class="MsoNormal"><span style="font-family: Calibri; font-size: small;"><span style="font-size: 11.0pt;">Paul.</span></span></p>
</div>
</blockquote>
<p>Hello, Paul.</p>
<p>I wonder if it's that you have the entire thing on one line that is the issue.</p>
<p>I mention this because I have the following set up for one of my test systems:</p>
<p><span style="font-size: 10pt;">HOST=in-nvaderax01</span></p>
<p><span style="font-size: 10pt;">  SCRIPT /usr/local/bin/red-alert-xymon-mail.sh <my email address> DURATION>1 REPEAT=1m COLOR=red SERVICE=procs,msgs RECOVERED</span></p>
<p>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.</p>
<div>-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Mike Burger<br /> <a href="http://www.bubbanfriends.org" target="_blank" rel="noreferrer">http://www.bubbanfriends.org</a><br /> <br /> "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</div>
</div>
</body></html>