Different Timeouts for different tests?
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.
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
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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On 30 September 2014 06:45, Wilcox, Theodore A -FS <tawilcox at fs.fed.us> 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.
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
participants (3)
-
jlaidman@rebel-it.com.au
-
kspringer@innovateteam.com
-
tawilcox@fs.fed.us