Ad Widget

Collapse

Create ipaddress item impossible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gideon
    Junior Member
    • Jul 2014
    • 9

    #1

    Create ipaddress item impossible?

    Our support department is going to use Zabbix in a guest-like mode, because of this we want to show a hosts ip address on the 'Latest Data' page. Our first thought was to create an item for this and show it in the 'Network' application.

    At the moment the application shows the default gateway and the in- + outgoing traffic. But finding an OID to fetch the ip address seems impossible.

    The correct MIB OID should be: IP-MIB::ipAdEntAddr.x.x.x.x (where the x's are ip octets).

    Because we need the ip address to find the ip address.. you get the point.

    I've found a lot of discussions about this topic, but nobody seems to be able to solve it, is there a way?
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Why not adding an External check or even better creating a Loadable module to do the magic?

    Comment

    • Gideon
      Junior Member
      • Jul 2014
      • 9

      #3
      I had the exact same problem, I fixed it with an external check:

      Create a simple script and put it into '/usr/lib/zabbix/externalscripts/':
      Code:
      #!/bin/bash
      echo $1
      Create an external check and use this as key:
      scriptnamehere["{HOST.CONN}"]

      This executes a script which echoes what you send it. Because you send HOST.CONN to it, it will show the ip and capture it.

      Good luck!

      Comment

      Working...