<div dir="ltr"><div><div><div><div><div><div>I'll assume you've looked at the "dialup" keyword, which will make client (eg cpu and disk) statuses clear instead of purple.<br></div><div><br>The default lifetime (30 minutes) is defined by the STATUSLIFETIME variable defined in xymonserver.cfg on the server.  To override this value for network checks, you can specify "--validity=N" on the command-line used to run xymonnet.<br><br></div>Neither of these are likely to help you.  The client messages are turned into status messages by xymond_client.  All instances of code in xymond_client that sends a status message do so without a validity specified.<br><br>One thing you could do is to write a script that reads and refreshes the status for all relevant entries for the server in question, run every 25 minutes.  For example:<br><br></div>$XYMON $XYMSRV 'xymondboard host=<a href="http://host.example.com">host.example.com</a> test=^(disk|memory|cpu)$ fields=hostname,testname,color,clntstamp'<br><br></div>This gives you the client timestamp (in epoch seconds) - when the client message was received.  You can subtract this from the current time (eg from "date +%s") to get the age of the client message.  If it's less than 25 minutes, you have a status message that needs to be "refreshed".  What you then would do is to query (with: $XYMON $XYMSRV "xymondlog host.example.com.cpu") and replay the status message (including whatever colour it had) with "+LIFETIME" added.<br><br></div>Also, you could label all such hosts with a special keyword like how xymonnet uses "dialup", perhaps "daily".  Then use "xymongrep daily" to get the hostnames you want to refresh.<br><br></div>Cheers<br></div>Jeremy<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2015 at 01:09, Werner Maier <span dir="ltr"><<a href="mailto:werner@maiers.de" target="_blank">werner@maiers.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have the following problem:<br>
<br>
I want to monitor the client data of a machine that is only up<br>
once a day.<br>
<br>
the machine gets waked up w/ wakeonlan, takes an rsnapshost of other<br>
servers, and shuts down again. (no need to be up 24/7 with 8 2 TB HDDs,<br>
raidcontroller)...<br>
<br>
I know about the normal xymon status+LIFETIME protocol.<br>
but I don't see where or how to configure that client to send<br>
a LIFETIME with the "xymonclient.sh" - it uses the<br>
"client" protocol.<br>
<br>
how do I set the validity for these tests to 24h+ ?<br>
(1600 minutes should be ok).<br>
<br>
thanks in advance.<br>
<br>
Werner<br>
--<br>
Dipl.-Ing. Univ. Werner Maier<br>
<a href="http://www.maiers.de/" target="_blank">http://www.maiers.de/</a><br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/xymon</a><br>
</blockquote></div><br></div>