<div class="gmail_quote">And once again my reply didn't go to the list...</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Fri, Dec 9, 2011 at 6:22 AM, Neil Simmonds <span dir="ltr"><<a href="mailto:Neil.Simmonds@express-gifts.co.uk">Neil.Simmonds@express-gifts.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-GB" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi, I’d like to be able to have more control over
purple alerts. I know Henrik has added a new parm into xymonserver.cfg called STATUSLIFETIME
but that seems to be a global parm.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">What I’d really like to do is reduce the purple time
for devmon to 5 minutes less than the global. This would enable me to detect
devmon going purple and trigger the restart script without having all the snmp
monitored devices (we have about 10) going purple as well.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> </span></font></p></div></div></blockquote><div><br></div><div><div><br></div><div>Dunno about devmon specifically, but in general a test script "does stuff" to discover the state of the target device/service, then constructs a message that looks something like:</div>
<div><br></div><div>     "status $MACHINE.$TEST $COLOR `date`</div><div>       yadda yadda yadda</div><div>       other informational bits, etc, and so on"</div><div><br></div><div>then sends that message to the xymon server.  The default lifetime of a status message is 30 minutes, which you can change by appending a time to the word "status".</div>
<div><br></div><div>     "status+15 thing,domain,co,uk.test green `date`"</div><div><br></div><div>to get a 15 minute lifetime.  You ought to be able to locate that part in devmon and make an appropriate adjustment.  Or maybe there's already something in devmon for setting the message lifetime, but I don't use it so I don't know.</div>
<div><br></div><div>This is described in the "XYMON MESSAGE SYNTAX" section in the xymon.1 man page.</div></div><div><br></div><div> Ralph Mitchell</div></div>