Ad Widget

Collapse

Item to count number of UP interfaces - HPE switches

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hemh
    Member
    • Apr 2020
    • 42

    #1

    Item to count number of UP interfaces - HPE switches

    Hi forum,

    I need some help to figure out how to make an item to count all UP interfaces on a switch.
    I already got all interfaces operationnal status via LLD, what I need is an item that I will use to calculate the port utiization percentage.


    For example, I got all my interfaces status items keys:

    net.if.status[ifOperStatus.1]
    With latest latest value: up (1)

    I would like an item to calculate all the interface with that latest value. I guess it will be a calculated item?

    Thanks for your help.
    Last edited by hemh; 10-05-2022, 19:06.
  • mbuyukkarakas
    Member
    • Aug 2014
    • 49

    #2
    Hello, I saw your post. I need the same one.

    I made some researches. There is a trigger function count which gives us the chance of using operators like less than, greater than. https://www.zabbix.com/documentation...ctions/history
    But the problem is, there is no way to calculate "number of up interfaces" in a trigger and create the alert.
    We need something in item functions. But the related item functions dont provides operators. https://www.zabbix.com/documentation...ated/aggregate

    According the documentation, it is not possible to write something like this ;

    count(last_foreach(//net.if.status,1h,"lt",2))
    or
    count_foreach(/*/net.if.status,1h,"lt",2).

    All I can do is ; sum(last_foreach(//net.if.status[*])) but this one is only calculating number of interfaces. Not distinguishing the down or up ones.

    regards.

    Comment

    • hemh
      Member
      • Apr 2020
      • 42

      #3
      My question has been resolved, it helped me to make up this template for capacity monitoring. Thanks

      Comment

      Working...