<div><font class="Apple-style-span" face="'courier new', monospace">It would be really handy if this could be set by a variable within xymonserver.cfg (eg XYMONDVALIDITY=30) and/or appending "--validity=N" to the command line in tasks.cfg.  Using the environment variable might be preferable in some cases, because it can be used by other things link xymonnet or custom test scripts.<br>

</font></div><div><div class="gmail_quote"><br></div><div class="gmail_quote">On Tue, Oct 11, 2011 at 12:42 AM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I finally had time to look around for this - it looks like the 30 minute default is hard-wired into the code.<br><br>
xymon-4.3.5/xymond/xymond.c, line 1210:<div class="im">
<br><br>          int validity = 30;       /* validity is counted in minutes */<br>
<br></div>then at lines 1239-1241:<br><br>          if (strncmp(msg, "status+", 7) == 0) {<br>                validity = durationvalue(msg+7);<br>          }<br><br>So, an incoming message is given a validity of 30 minutes, unless set otherwise by "status+X".<br>


<br>I just tested that by changing line 1210 to "validity=5", compiled, installed, fired it up, sent a test status.  Five minutes later, I get a purple dot for that test.<br><font color="#888888"><br>Ralph Mitchell</font><div>

<div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Mon, Oct 3, 2011 at 9:35 AM, Elizabeth Schwartz <span dir="ltr"><<a href="mailto:betsy.schwartz@gmail.com" target="_blank">betsy.schwartz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


How can I change xymon to alert after a server has failed to report<br>
for 15 minutes? We're finding that 30 minutes is too long a delay in<br>
the production environment.<br>
<br>
I see where you set purple delay for network tests and I see where you<br>
can return it for individual tests, and I see where you can disable<br>
purple. Is this a code change?<br>
<br>
thanks Betsy<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>