[Xymon] tcp traceroute

cleaver at terabithia.org cleaver at terabithia.org
Fri May 31 00:06:11 CEST 2013



> 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




More information about the Xymon mailing list