Ad Widget

Collapse

Network interfaces IP/MAC addresses

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • z0nk
    Member
    • Oct 2024
    • 45

    #1

    Network interfaces IP/MAC addresses

    Hi, how collect IP addresses and MAC addresses of network ifaces?

    https://www.zabbix.com/documentation...t.if.discovery - looks like everywhere is network interface full description or IPv4 address

    and I don't have it in default network component - I have a lot info about about ifaces but not IP/MAC
  • z0nk
    Member
    • Oct 2024
    • 45

    #2
    This is possible by read /sys/class/net/eth0/address but how connect it to "Network interface discovery" (trigger?) like "Operational status" trigger is connected? Because I need that for each iface which exists

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      "Operational state" item is the example you need for collecting MAC... add another item to prototype list .. vfs.file.contents["/sys/class/net/{#IFNAME}/address"

      Comment

      Working...