Xymon Mailing List Archive search

Different Timeouts for different tests?

3 messages in this thread

list Theodore A -fs Wilcox · Mon, 29 Sep 2014 20:45:19 +0000 ·
We have hosts that we want to have a short timeout for the tests.  However, this doesn't work well with http tests because many web sites take longer to reply.

We set the timeout to 1 second.  We have started to get red statuses for http tests where the web site is working just fine, but a little slow.  Is there any way to use separate timeouts for different tests?  Also, the status of these sites is Red on the Main page or the AllNonGreen page, but if we drill down and look at the test for that host, it shows as green.  I am interpreting this as the timeout causes the test to be given a status of red, but the site eventually responds, so the status for the host is green.  This is a little confusing.

Ted


This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
list Kris Springer · Mon, 29 Sep 2014 14:33:22 -0700 ·
I've requested this same thing.  I have a site that takes upwards of 25 seconds to respond.  It's a special development site with a lot of mapping and database data that it's accessing.  I'd like to make that one test longer but all the rest leave at the default.
Signature - Kris

Thank you.


Kris Springer
quoted from Theodore A -fs Wilcox


On 9/29/2014 1:45 PM, Wilcox, Theodore A -FS wrote:
We have hosts that we want to have a short timeout for the tests.  However, this doesn’t work well with http tests because many web sites take longer to reply.

We set the timeout to 1 second.  We have started to get red statuses for http tests where the web site is working just fine, but a little slow.  Is there any way to use separate timeouts for different tests?  Also, the status of these sites is Red on the Main page or the AllNonGreen page, but if we drill down and look at the test for that host, it shows as green.  I am interpreting this as the timeout causes the test to be given a status of red, but the site eventually responds, so the status for the host is green. This is a little confusing.

Ted


This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

list Jeremy Laidman · Fri, 3 Oct 2014 16:16:44 +1000 ·
On 30 September 2014 06:45, Wilcox, Theodore A -FS <user-956989af94d8@xymon.invalid>
wrote:
 Is there any way to use separate timeouts for different tests?
It's open source, there's always a way!

You can possibly achieve what you want by running two copies of xymonnet
with different environments.  You could update tasks.cfg to include an
extra xymonnet section (with a different name) like so:

[xymonnet-20s]
        ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
        NEEDS xymond
        CMD HOSTSCFG=$XYMONHOME/etc/hosts-20s.cfg xymonnet --report --ping
--checkresponse --timeout=20
        LOGFILE $XYMONSERVERLOGS/xymonnet.log
        INTERVAL 5m

This will get its configuration from a different hosts.cfg called
hosts-20s.cfg.  In this file you would include only the hosts and tests
where you want a timeout of 20 seconds.

The normal network tests would continue to run, so you'd want to remove
those tests from the main hosts.cfg, but leaving the hosts in.
quoted from Kris Springer

  Also, the status of these sites is Red on the Main page or the
AllNonGreen page, but if we drill down and look at the test for that host,
it shows as green.
This might be a delay between updating the host test page to green, and
updating the summaries from the previous red state.

J