Xymon already tracks how long a test has been yellow, red, green, etc.  Just mouse over the colored dot...  You can also get that info from the xymon server.  Check the xymon(1) man page for the "xymondboard" command.<div>
<br></div><div>Ralph Mitchell</div><div><br><br><div class="gmail_quote">On Fri, Sep 21, 2012 at 4:32 PM, Betsy 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, that is very interesting, I did not know the features could be<br>
put together like that!<br>
don't think that will work though because it's not going to clear when<br>
the variable changes<br>
<br>
(I'm starting to imagine something sick and twisted that *would*....)<br>
<br>
anyway just for fun the requestor added a third requirement which is<br>
to track how long it's been yellow, so I am definitely doing a custom<br>
test (in anticipation of requirements #4...#n...)<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, Sep 20, 2012 at 7:45 PM, Jeremy Laidman<br>
<<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>> wrote:<br>
> On 21 September 2012 01:25, Betsy Schwartz <<a href="mailto:betsy.schwartz@gmail.com">betsy.schwartz@gmail.com</a>> wrote:<br>
>><br>
>> To clarify:<br>
>><br>
>> We are OK with having the configuration file changing, we are just<br>
><br>
><br>
> No problem.<br>
><br>
>><br>
>> New requirement:<br>
>>    var=ON may or may not exist, this is the default state.<br>
>>    we just need to go yellow if var=OFF<br>
><br>
><br>
> No problem.<br>
><br>
>><br>
>> Sounds like a custom test is what I need.<br>
><br>
><br>
> Nah, then you gotta deploy and manage the custom test on each of your client<br>
> hosts, and be sure to install it on any new hosts that come along.  I hate<br>
> that.<br>
><br>
> In client-local.cfg, add the following:<br>
> [name-of-client]<br>
>     file:`grep -i "^var=OFF$" /path/to/file >/tmp/varcheck; echo<br>
> /tmp/varcheck`<br>
><br>
> Then, in analysis.cfg, add the following:<br>
> HOST=name-of-client<br>
>     FILE /tmp/varcheck YELLOW SIZE>0<br>
><br>
> Won't that do what you need?<br>
><br>
> J<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>