<div dir="ltr">Yep, that would work too.  Don't forget to interpret time multipliers -  "h" (hours), "d" (days) or "w" (weeks).<div><br></div><div>Ralph Mitchell</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 6:08 PM, J.C. Cleaver <span dir="ltr"><<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using this, it might actually be easier to just look at the message<br>
directly than calculate the diff. Inelegant, but something along the lines<br>
of this:<br>
<br>
[rpmbuild@rhel6-x86-64 /]$<br>
xymon localhost "xymondboard msg=status\+ fields=hostname,testname,msg" |<br>
grep -v -- status+30 | cut -b 1-132<br>
<br>
rhel6-x86-64.build|xymonproxy3|status+11 rhel6-x86-64,build.xymonproxy3<br>
green Wed Sep 17 17:33:07 2014 - xymon proxy up: 0 days, 00:<br>
rhel6-x86-64.build|xymonproxy2|status+11 rhel6-x86-64,build.xymonproxy2<br>
green Sun May 24 17:08:31 2015 - xymon proxy up: 0 days, 00:<br>
rhel6-x86-64.build|xymond|status+11 rhel6-x86-64,build.xymond green Wed<br>
Apr  6 15:03:46 2016 - xymon daemon up: 5 days, 22:00:03\nSt<br>
rhel6-x86-64.build|xymonproxy|status+11 rhel6-x86-64,build.xymonproxy<br>
green Wed Apr  6 15:03:48 2016 - xymon proxy up: 5 days, 22:00<br>
<br>
<br>
HTH,<br>
-jc<br>
<span class=""><br>
<br>
On Wed, April 6, 2016 8:16 am, Ralph Mitchell wrote:<br>
> You can pick up the raw data from xymondboard on the server:<br>
><br>
>    xymon localhost "xymondboard test=svcacct<br>
> fields=hostname,logtime,validtime"<br>
><br>
</span>> *logtime* Unix timestamp when the log message was received.<br>
><br>
> *validtime* Unix timestamp when the log message is no longer valid (it<br>
<div class="HOEnZb"><div class="h5">> goes<br>
> purple at this time).<br>
><br>
> Subtract logtime from validtime to get number of seconds.  If the result<br>
> is<br>
> not 1800, it's a non-standard validity time.<br>
><br>
> Ralph Mitchell<br>
><br>
><br>
><br>
> On Wed, Apr 6, 2016 at 11:00 AM, Neil Simmonds<br>
> <<a href="mailto:neilsimmonds1808@gmail.com">neilsimmonds1808@gmail.com</a>><br>
> wrote:<br>
><br>
>> Hi all,<br>
>><br>
>> Is there any way on the Xymon server to check if any custom tests have a<br>
>> validity timeout that is not default because they have a parameter on<br>
>> the<br>
>> status command setting a custom validity.<br>
>><br>
>> I'd prefer to do it from the server as it would be very time consuming<br>
>> to<br>
>> have to log onto every client to check it.<br>
>><br>
>> I know we have some that aren't using the default 30 minutes but I<br>
>> really<br>
>> need to identify them due to other people writing custom scripts and<br>
>> apparently not understanding what status+**** does.<br>
>><br>
>> Thanks, Neil.<br>
>><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" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
>><br>
>><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" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div>