Xymon Mailing List Archive search

Changing interval of tests

4 messages in this thread

list John Boris · Sat, 9 Apr 2016 11:02:13 -0400 ·
I have searched for changing the interval time between tests. I have a
system I need to monitor and they want to have it checked for connectivity
every minute. I only need it for that host. I can't find anywhere in the
documentation which states how oftent the tests are run or how you change
the interval.

-- 
John J. Boris, Sr.
list Japheth Cleaver · Sun, 10 Apr 2016 18:15:52 -0700 ·
quoted from John Boris

On Sat, April 9, 2016 8:02 am, john boris wrote:
I have searched for changing the interval time between tests. I have a
system I need to monitor and they want to have it checked for connectivity
every minute. I only need it for that host. I can't find anywhere in the
documentation which states how oftent the tests are run or how you change
the interval.

--
John J. Boris, Sr.

John,

In a simple cases, default install and no custom tests, adjust the
"INTERVAL" value for [xymonnet] in tasks.cfg on your xymond server, and
then the [xymonclient] sections in clientlaunch.cfg on your client
systems... It's actually not as simple a question as it might seem at
first, though :)


Xymon operates with a push-based model, so there's no "central scheduler"
with which to schedule test intervals. They're a function of how often the
various testing sub-systems run, and/or generate reports. The client
status pages (disk space, memory, cpu, etc.) are generated immediately
whenever client *data* is received, which is pushed up at that interval
from the clients themselves. Network polling occurs when the xymonnet
program is launched and reports back.


In simple systems, that's basically it. But Xymon can be easily customized
by admins at larger sites to handle all sorts of cases like inverse
message retrieval, multiple xymonnet servers, multiple copies of xymonnet
at different intervals, custom tests from any source running at different
intervals, etc.

Think of testing intervals as more an emergent property of the system as a
whole; what you're doing is setting up a message bus upon which test
results are received from arbitrary generators at desired intervals.


HTH,
-jc
Xymon, unlike many other monitoring systems, operates completely with a
push model, which means there's no central scheduler which defines test
intervals, so test frequency is an emergent property, depending on how the
admin has set things up. In simple cases it's simple, but

Client data is pushed up according to
list John Boris · Mon, 11 Apr 2016 08:18:17 -0400 ·
J.C.

I user-68388504c494@xymon.invalid and see the interval for xymonnet. That is 5 minutes.
But right below that setting there is one for xymonentagain. This is set to
1 minute for failed  systems.

We are trying to test if we can connect to the router so if the ping fails
I can only assume that xymon will run the ping test a second time one
minute later and then every minute until the unit recovers. If that is
correct than it is fine. I did not see if I could only set the ping test to
run every minute just for that one unit.

Would the critical systems view be more appropriate for this?

Thanks for any insight into this.

On Sun, Apr 10, 2016 at 9:15 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
quoted from Japheth Cleaver
wrote:
On Sat, April 9, 2016 8:02 am, john boris wrote:
I have searched for changing the interval time between tests. I have a
system I need to monitor and they want to have it checked for
connectivity
every minute. I only need it for that host. I can't find anywhere in the
documentation which states how oftent the tests are run or how you change
the interval.

--
John J. Boris, Sr.

John,

In a simple cases, default install and no custom tests, adjust the
"INTERVAL" value for [xymonnet] in tasks.cfg on your xymond server, and
then the [xymonclient] sections in clientlaunch.cfg on your client
systems... It's actually not as simple a question as it might seem at
first, though :)


Xymon operates with a push-based model, so there's no "central scheduler"
with which to schedule test intervals. They're a function of how often the
various testing sub-systems run, and/or generate reports. The client
status pages (disk space, memory, cpu, etc.) are generated immediately
whenever client *data* is received, which is pushed up at that interval
from the clients themselves. Network polling occurs when the xymonnet
program is launched and reports back.


In simple systems, that's basically it. But Xymon can be easily customized
by admins at larger sites to handle all sorts of cases like inverse
message retrieval, multiple xymonnet servers, multiple copies of xymonnet
at different intervals, custom tests from any source running at different
intervals, etc.

Think of testing intervals as more an emergent property of the system as a
whole; what you're doing is setting up a message bus upon which test
results are received from arbitrary generators at desired intervals.


HTH,
-jc
Xymon, unlike many other monitoring systems, operates completely with a
push model, which means there's no central scheduler which defines test
intervals, so test frequency is an emergent property, depending on how the
admin has set things up. In simple cases it's simple, but

Client data is pushed up according to

-- 

John J. Boris, Sr.
list John Thurston · Mon, 11 Apr 2016 08:20:59 -0800 ·
quoted from John Boris
On 4/11/2016 4:18 AM, john boris wrote:
J.C.

I user-68388504c494@xymon.invalid and see the interval for xymonnet. That is 5
minutes. But right below that setting there is one for xymonentagain.
This is set to 1 minute for failed  systems.

We are trying to test if we can connect to the router so if the ping
fails I can only assume that xymon will run the ping test a second time
one minute later and then every minute until the unit recovers.
Close, but not quite right. From the man page for xymonnet-again
Only tests whose first failure occurred within 30 minutes are included in the tests that are run by xymonnet-again.sh. The 30 minute limit is there to avoid hosts that are down for longer periods of time to bog down xymonnet-again.sh. You can change this limit with the "--frequenttestlimit=SECONDS" when you run xyxmonnet.
So, by default, the more frequent test will occur for 30 minutes. They 
will then revert to the normal rate of xymonnet.
quoted from John Boris
If that
is correct than it is fine. I did not see if I could only set the ping
test to run every minute just for that one unit.
I don't see any reason you can't add an explicit entry to tasks.cfg 
running xymonnet with one specific host name. From the man page of 
xymonnet (and from experience) it accepts one or more host names as 
arguments and acts only for those:
xymonnet [--ping|--noping] [--timeout=N] [options] [hostname] [hostname]
-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska