View Full Version : 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?
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.
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?
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.