Ad Widget

Collapse

SNMP device with multiple IP's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Storms
    Junior Member
    • Oct 2009
    • 2

    #1

    SNMP device with multiple IP's

    I have some VPN routers in different offices (ghmm... and different countries). If VPN tunnel is UP I can get data from router using internal IP address, but if VPN tunnel is down (by any reason) i can connet to router using external IP. But, external IP is unreachable if VPN tunnel is up.

    In this case, i need to setup this "host" in Zabbix server with 2 IP addresses (something like "failover IP"). How can I do this?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    currently i'd suggest a bit hackish solution like creating two different hosts and using trigger expression with OR condition.

    proper multihomed host support might be logged on the feature request tracker, though.
    Zabbix 3.0 Network Monitoring book

    Comment

    • Storms
      Junior Member
      • Oct 2009
      • 2

      #3
      Hmm... But trigger just get me alarm about host critical state... Statistics will be splitted in 2 hosts. :-/

      But... maybe it's possible to change host IP with trigger+script? If "host IP 1" down then execute script to change IP and trigger with script to change back if "host IP 2" down?

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        Originally posted by Storms
        Hmm... But trigger just get me alarm about host critical state... Statistics will be splitted in 2 hosts. :-/

        But... maybe it's possible to change host IP with trigger+script? If "host IP 1" down then execute script to change IP and trigger with script to change back if "host IP 2" down?
        yes, stats would be gathered on two separate hosts then. trigger+script would be quite tricky right now, but easier with 1.8 + zabcon (http://trac.red-tux.net/wiki/zbx_api/interactive).

        if needed for 1.6, maybe importing premade xml templates to change the ip can be used.
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...