Ad Widget

Collapse

Discovering all interface IPs and ping test

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PhYrE
    Junior Member
    • May 2014
    • 4

    #1

    Discovering all interface IPs and ping test

    My network setup
    External: 123.123.123.x/24 (and others)
    Internal: 10.10.x.x/16
    The Internal network handles database/monitoring/backup/etc. The external network handles customer-facing servers. I think this type of setup is fairly common.

    I have Zabbix server on an internal machine (10.10.2.5) which uses discovery rules to find an agent (10.10.2.10) with two network interfaces (Internal and external - eth0 and eth1) and sets up the item prototypes (byte counters) and traffic graph.

    The missing detail is that I want the primary IP address of each interface, so I can set up a trigger that pings that interface and notifies me if the system is inaccessible (network cable unplugged or broken, routing problem, etc). So I want the system to run a ping on the primary (it may have aliases) external and internal interface, which will confirm that the network card/cable/connection/ip is working properly.

    Now it's able to discover the IPs (and SNMP has the details too). How can I reference the IP address of that interface and create a 'ping' test for -each interface-, not just the zabbix agent host as defines the system. I want to keep this test under the umbrella of the host (so setting up a separate host doesn't work for me).

    Any ideas?
Working...