Ad Widget

Collapse

route check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • verus
    Member
    • Feb 2009
    • 67

    #1

    route check

    Hello,

    I have a connection to a host via 2 routers.
    One goes via local net, the other one via internet.
    Is it possible to check the route to those hosts via zabbix ?
    If so, how do i do it ?
    thanks,
    Verus
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Short answer no.

    Long answer, yes but useless.
    If you really really really really want to know what the route a packet is taking between two hosts you could setup a script that runs traceroute and then pushes the data into a log item using zabbix_sender. However this data is useless in that form. If you were to write your script instead to look at the total number of hops and send that back that may be more useful. Either way you must do it using a script and use zabbix_sender as all other means would time out.

    However the bigger question is what are you trying to accomplish? Let's say you have two hosts on the Internet. One day your route may have 6 hops, the next 8 and the day after 7, does this mean there is a problem? in almost all cases no. That's the nature of OSPF, BGP, RIP and other dynamic routing protocols. In your case how are you routing between the two hosts? Is everything between the host and the gateway static? In which case your route length will always be constant unless it's offline then by default it will be 30. By static I mean does each host between the two hosts have static routes setup in their routing tables?

    Now if you are doing this do check to see if a VPN link has gone down then this makes more sense, but there may be other ways to more quickly determine this. One such way to ping the internal side of the VPN as that IP is likely not publicly routable and thus pings will fail if the VPN is offline.

    Hopefully this helps and gives you some things to consider when looking at how you want to monitor something. :-)
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • verus
      Member
      • Feb 2009
      • 67

      #3
      Hello,

      Thanks for the clear answer!
      I will check it on another way (with the ping to the internal address).

      kind regards,
      Ph.

      Comment

      Working...