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?
cheers,
Troy
-- 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.
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?
-- Tom me at tdiehl.org Spamtrap address me123 at tdiehl.org
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
participants (3)
-
cleaver@terabithia.org
-
me@tdiehl.org
-
troy@athabascau.ca