Ad Widget

Collapse

An item that summarizes the items created by discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • icem1x
    Junior Member
    • Nov 2024
    • 3

    #1

    An item that summarizes the items created by discovery

    Hello everyone. I need to create an item that will count the sum of the capacity of all LUNs of the data storage system in zabbix 7
    , these values are taken from the discovery of template, as far as I understood in the host or template, I need
    to create an item with the type of calculator and write down the formula, in general:

    Introductory notes:
    Discovery key: huawei.5300.lun.discovery
    Itemkey inside discovery key: huawei.5300.v5[hwStorageLunCapacity, "{#NAME}"]

    Creating:
    Name: "Total LUN Capacity".
    Type: "Calculated".
    Key: I came up with it myself: huawei.5300.total.lun.capacity.
    Type of information: "Numeric (unsigned)".
    Units: B
    Formula:
    1. sum(last_foreach(huawei.5300.lun.discovery,"huawei .5300.v5[hwStorageLunCapacity, "{#NAME}"]"))
    2. sum(last_foreach(huawei.5300.lun.discovery,"huawei .5300.v5[hwStorageLunCapacity, "{#NAME}"]"))

    Returns an error in both versions :
    Invalid parameter "/1/params": incorrect expression starting from "sum(last_foreach(huawei.5300.lun.discovery,"h uawe i.5300.v5[hwStorageLunCapacity, "{#NAME}"]"))".

    Can you suggest something?
    Last edited by icem1x; 21-11-2024, 11:07.
  • icem1x
    Junior Member
    • Nov 2024
    • 3

    #2
    I solved the problem: I set up the assignment of the total_lun_capacity tag in the iteme inside discovery. Next, I created an item with the sum formula sum(last_foreach(/Huawei Dorado 5000 v3/*?[(tag="total_lun_capacity:")]))

    Comment

    • icem1x
      Junior Member
      • Nov 2024
      • 3

      #3
      Huawei Dorado 5000 v3 - host name

      Comment

      Working...