[Xymon] tcp traceroute
Troy Adams
troy at athabascau.ca
Thu Jun 6 18:35:50 CEST 2013
Let's say an HTTP test fails but the conn test for the same host still works . What I
want to do at that point, is a tcptraceroute. I need to know where TCP/80 is getting
stuck.
/ Troy
----- Original Message -----
From: cleaver at terabithia.org
To: "Troy Adams" <troy at athabascau.ca>, me at tdiehl.org
Cc: "Xymon Email List" <xymon at xymon.com>
Sent: Thursday, May 30, 2013 4:06:11 PM GMT -07:00 US/Canada Mountain
Subject: Re: [Xymon] tcp traceroute
> On Thu, 30 May 2013, Troy Adams wrote:
>
>> In the same way that the conn test can be asked to "trace" by performing
>> a
>> traceroute upon failure, I would like to perform a TCP traceroute when a
>> TCP test fails with "no route to host". I expect this isn't built right
>> into Xymon now but has anybody got any pointers on what to hack to
>> implement this myself?
>
> Magic built in not tacked on later!!
>
> From the hosts.cfg man page:
>
> trace
> If the connectivity test fails, run a "traceroute" and include the
> output
> from this in the status message from the failed connectivity test.
> Note:
> For this to work, you may have to define the TRACEROUTE environment
> variable, see xymonserver.cfg(5)
>
> Is that what you are looking for?
>
> --
"trace" in hosts.cfg and a suitable entry in xymonserver.cfg should be all
you need. (You can also just add --trace to the xymonnet options in
tasks.cfg.) Since you're running as the 'xymon' user (presumably), don't
forget privilege escalation for traceroute in TCP mode.
tasks.cfg: CMD xymonnet --report --ping --trace --checkresponse
xymonserver.cfg:TRACEROUTE="sudo /bin/traceroute -I"
HTH,
-jc
--
This communication is intended for the use of the recipient to whom it
is addressed, and may contain confidential, personal, and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take
action relying on it. Any communications received in error, or
subsequent reply, should be deleted or destroyed.
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130606/2718b628/attachment.html>
More information about the Xymon
mailing list