Xymon Mailing List Archive search

purple after 30 minutes - clientlaunch.cfg INTERVAL set to 60m

3 messages in this thread

list Iain Miller · Tue, 13 Nov 2007 12:20:55 +0000 ·
Hello,

I am trying to run a local script which I launch from my
clientlaunch.cfg as shown below

[testHost]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/testHost.sh
        LOGFILE $HOBBITCLIENTHOME/logs/testHost.log
        INTERVAL 60m

The test runs, completes and sends GREEN status back to the monitroing
server.  After 30 minutes this expires and it is then displayed as
PURPLE.

Does anyone know how I can extend the time that my tests are valid
for?  Do I need to do something both on the client and server?

I found the following post

http://www.hswn.dk/hobbiton/2005/06/msg00257.html

but the link within it is no longer there.

Thanks in advance,

Iain.

-- 
Iain Miller
user-6f16c60bcd50@xymon.invalid
list S Aiello · Tue, 13 Nov 2007 07:30:20 -0500 ·
quoted from Iain Miller
On Tuesday 13 November 2007, Iain Miller wrote:
Does anyone know how I can extend the time that my tests are valid
for?  Do I need to do something both on the client and server?
per the bb man page:

status[+LIFETIME][/group:GROUP] HOSTNAME.TESTNAME COLOR <additional text>
This sends in a status message for a single test (column) on a single host.......The LIFETIME defines how long this status is valid after being received by the Hobbit server. The default is 30 minutes, but you can set any period you like. E.g. for a custom test that runs once an hour, you will want to set this to at least 60 minutes - otherwise the status will go purple after 30 minutes. It is a good idea to set the LIFETIME to sligtly more than the interval between your tests, to allow for variations in the time it takes your test to complete. The LIFETIME is in minutes, unless you add an "h" (hours), "d" (days) or "w" (weeks) immediately after the number, e.g. "status+5h" for a status that is valid for 5 hours. 
so change you bb status to status+75 or some such.
list Iain Miller · Tue, 13 Nov 2007 16:29:28 +0000 ·
Hi There,

Thanks very much for this - it did the job.

Best Regards,

Iain.
quoted from S Aiello

On 13/11/2007, user-ce96540ed38f@xymon.invalid <user-ce96540ed38f@xymon.invalid> wrote:
On Tuesday 13 November 2007, Iain Miller wrote:
Does anyone know how I can extend the time that my tests are valid
for?  Do I need to do something both on the client and server?
per the bb man page:

status[+LIFETIME][/group:GROUP] HOSTNAME.TESTNAME COLOR <additional text>
This sends in a status message for a single test (column) on a single
host.......The LIFETIME defines how long this status is valid after being
received by the Hobbit server. The default is 30 minutes, but you can set any
period you like. E.g. for a custom test that runs once an hour, you will want
to set this to at least 60 minutes - otherwise the status will go purple
after 30 minutes. It is a good idea to set the LIFETIME to sligtly more than
the interval between your tests, to allow for variations in the time it takes
your test to complete. The LIFETIME is in minutes, unless you add an "h"
(hours), "d" (days) or "w" (weeks) immediately after the number,
e.g. "status+5h" for a status that is valid for 5 hours.

so change you bb status to status+75 or some such.

-- 

Iain Miller
user-6f16c60bcd50@xymon.invalid