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?
, 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?
Comment