Where and how do I adjust the http timeout? I have some content tests that take a while to respond and I need to extend the time to around 30 seconds. Signature - Kris
Thank you.
Kris Springer
On 8/8/2014 9:09 AM, Kris Springer wrote:
Where and how do I adjust the http timeout? I have some content tests that take a while to respond and I need to extend the time to around 30
I think it was discussed here recently that this is a server-wide setting. See the xymonnet help file and look for the --timeout option.
Determines the timeout (in seconds) for each service that is tested. For TCP tests (those from XYMONNETSVCS), if the connection to the service does not succeed within N seconds, the service is reported as being down. For HTTP tests, this is the absolute limit for the entire request to the webserver (the time needed to connect to the server, plus the time it takes the server to respond to the request). Default: 10 seconds
<unsolicited observation> In my environment, if someone asked to repeatedly test an HTTP resource which regularly required 30 seconds to respond, I'd ask them to reconsider. Xymon should be monitoring a simple, important resource. It is going to be requesting it frequently (5-minute interval in my case). If their server can't deliver a simple, important, frequently-requested resource in less than 30-seconds they have problem.
If you _do_ extend the timeout, you should also examine the re-try interval as part of XYMONNET-AGAIN.SH It would be unfortunate if you start thrashing your servers by setting your timeout longer than the retry interval. </unsolicited observation>
-- Do things because you should, not just because you can.
John Thurston 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Found it. I read about the --timeout option but I didn't know where to put it. I add it to the [xymonnet] section in tasks.cfg Signature - Kris
Thank you.
Kris Springer
On 8/8/2014 10:30 AM, John Thurston wrote:
On 8/8/2014 9:09 AM, Kris Springer wrote:
Where and how do I adjust the http timeout? I have some content tests that take a while to respond and I need to extend the time to around 30
I think it was discussed here recently that this is a server-wide setting. See the xymonnet help file and look for the --timeout option.
Determines the timeout (in seconds) for each service that is tested. For TCP tests (those from XYMONNETSVCS), if the connection to the service does not succeed within N seconds, the service is reported as being down. For HTTP tests, this is the absolute limit for the entire request to the webserver (the time needed to connect to the server, plus the time it takes the server to respond to the request). Default: 10 seconds
<unsolicited observation> In my environment, if someone asked to repeatedly test an HTTP resource which regularly required 30 seconds to respond, I'd ask them to reconsider. Xymon should be monitoring a simple, important resource. It is going to be requesting it frequently (5-minute interval in my case). If their server can't deliver a simple, important, frequently-requested resource in less than 30-seconds they have problem.
If you _do_ extend the timeout, you should also examine the re-try interval as part of XYMONNET-AGAIN.SH It would be unfortunate if you start thrashing your servers by setting your timeout longer than the retry interval. </unsolicited observation>
If it's only a small number of servers, you could use an external script to check content on them. That would take them out of the main network test loop.
curl, or even wget, would do the trick.
Ralph Mitchell On Aug 8, 2014 1:10 PM, "Kris Springer" <kspringer at innovateteam.com> wrote:
Where and how do I adjust the http timeout? I have some content tests that take a while to respond and I need to extend the time to around 30 seconds.
Thank you.
Kris Springer
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
john.thurston@alaska.gov
-
kspringer@innovateteam.com
-
ralphmitchell@gmail.com