[Xymon] how to add a specific http timeout
Japheth Cleaver
cleaver at terabithia.org
Wed May 8 01:41:16 CEST 2019
There's no native option for doing this within the test definition file,
but you can perform a DS override based on the response time to cause
the test to alert regardless.
In an analysis.cfg section targeting your host, place something like this:
HOST=www.example.com
DS http tcp.http.www.example.com:8280,.rrd:sec >1.0 COLOR=red
"TEXT=Response time &V exceeds &U seconds"
(See analysis.cfg(5) for the precise syntax. The RRD section needs to
match the name of the RRD file for this URL.)
It's a bit inefficient, since you're doubling the number of messages for
this test through the system, but should scale perfectly OK for many
installs. If you have a large number of these (say, 25,000 websites you
want to check with an alternate threshold), then using special NET: tags
(or alternate hosts files completely) and distinct xymonnet instances
will definitely be a better option.
HTH,
-jc
On 5/6/2019 2:14 AM, José Manuel Blasco Díaz wrote:
>
> Good Morning.
>
> I run Xymon 4.3.25 and I need to enable an alert for http 8280 when
> timeout is over 1 second.
>
> Can I do easily way in hosts or I have to create a new configuration
> as you explain in olders version?
>
> “No, this will be possible in the next release - but not in 4.3.x.
>
> What you can do is to use the "NET:foo" definition on this particular
>
> host in hosts.cfg to have it tested by a special instance of the
>
> xymonnet task:
>
> 1) Add the "--test-untagged" option to your current xymonnet command in
>
> tasks.cfg
>
> 2) Add "NET:slowtests" to this particular host in hosts.cfg
>
> 3) In a script, set XYMONNETWORK="slowtests" (remember to export it!)
>
> and then run the xymonnet command to do the test of this one host, with
>
> the different --timeout option
>
> 4) Add a new section to tasks.cfg to run the test script.”
>
> Thanks.
>
> Best Regards.
>
> JoseManuelBlasco
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190507/8697477a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 21257 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190507/8697477a/attachment.jpg>
More information about the Xymon
mailing list