Xymon Mailing List Archive search

Problem with a custom test

3 messages in this thread

list Colin Coe · Mon, 22 Nov 2010 08:51:44 +0800 ·
Hi all

I have this entry in clientlaunch.cfg on all my Xymon clients:
---
[rhncfg]
        ENVFILE /etc/xymon/client/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/rhncfg.sh
        INTERVAL 60m
---

The problem I'm having is the client status for this test turns purple
after approx 30 minutes.  I know the script is working correctly.  If
I reduce INTERVAL to 30 minutes or under, the test doesn't go purple,
but the remote server administrators are not happy with the amount of
connections this test generates so 60m is not minimum I'm allowed.

Any ideas?

CC

-- 
RHCE#805007969328369
list Vernon Everett · Mon, 22 Nov 2010 09:34:41 +0800 ·
Hi Colin

You need to explicitly set the "lifetime" of the test result, which defaults
to 30 minutes.
Search for LIFETIME in bb man page.

"The LIFETIME defines how long this status is valid after being received by
the Xymon 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 slightly 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. "

Regards
     Vernon
quoted from Colin Coe


On Mon, Nov 22, 2010 at 8:51 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

I have this entry in clientlaunch.cfg on all my Xymon clients:
---
[rhncfg]
       ENVFILE /etc/xymon/client/hobbitclient.cfg
       CMD $HOBBITCLIENTHOME/ext/rhncfg.sh
       INTERVAL 60m
---

The problem I'm having is the client status for this test turns purple
after approx 30 minutes.  I know the script is working correctly.  If
I reduce INTERVAL to 30 minutes or under, the test doesn't go purple,
but the remote server administrators are not happy with the amount of
connections this test generates so 60m is not minimum I'm allowed.

Any ideas?

CC

--
RHCE#805007969328369

list Colin Coe · Mon, 22 Nov 2010 09:39:29 +0800 ·
Many thanks Vernon

CC

On Mon, Nov 22, 2010 at 9:34 AM, Vernon Everett
quoted from Vernon Everett
<user-b3f8dacb72c8@xymon.invalid> wrote:
Hi Colin

You need to explicitly set the "lifetime" of the test result, which defaults
to 30 minutes.
Search for LIFETIME in bb man page.

"The LIFETIME defines how long this status is valid after being received by
the Xymon 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 slightly 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. "

Regards
     Vernon


On Mon, Nov 22, 2010 at 8:51 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

I have this entry in clientlaunch.cfg on all my Xymon clients:
---
[rhncfg]
       ENVFILE /etc/xymon/client/hobbitclient.cfg
       CMD $HOBBITCLIENTHOME/ext/rhncfg.sh
       INTERVAL 60m
---

The problem I'm having is the client status for this test turns purple
after approx 30 minutes.  I know the script is working correctly.  If
I reduce INTERVAL to 30 minutes or under, the test doesn't go purple,
but the remote server administrators are not happy with the amount of
connections this test generates so 60m is not minimum I'm allowed.

Any ideas?

CC

--
RHCE#805007969328369

-- 

RHCE#805007969328369