Ad Widget

Collapse

How to monitor percentage utilization of interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FresKubas
    Junior Member
    • Dec 2024
    • 2

    #1

    How to monitor percentage utilization of interfaces

    Hello, today I installed Zabbix 7.2 upgraded from 4.2. In the old Zabbix, I had items to monitor the percentage utilization of interfaces using net.if.speed. Is it possible to use the same item in 7.2? I can't find it
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    net.if.speed is not a built-in item... not even in 4.2... Was it a userparameter you had installed? It should work in newer version also..

    Comment

    • FresKubas
      Junior Member
      • Dec 2024
      • 2

      #3
      From what I can see, net.if.speed is provided with the Zabbix agent template for Linux, but I can't find a host that supports it. I see the item reaches into /sys/class/.. but there's no information there about interface speed. On older machines, plain net.if.speed returns this information. Perhaps I just need to write a separate script to check interface speed and then create a calculated item to calculate percentage utilization.

      Comment

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

        #4

        https://git.zabbix.com/projects/ZBX/...at=release/7.2
        Interface {#IFNAME}: Speed It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec.

        This attribute is only valid for the interfaces that implement the ethtool get_link_ksettings method (mostly Ethernet).

        Reference: https://www.kernel.org/doc/Documenta...ysfs-class-net
        Zabbix agent vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]

        Preprocessing
        • Custom multiplier: 1000000
        • Discard unchanged with heartbeat: 1h
        mentioned file in this item contains IF speed...

        There is no such item as net.if.speed. And never was...
        Last edited by cyber; 13-03-2025, 11:06.

        Comment

        Working...