Hi,
I'm learning Zabbix, I have a single sevrer setup for testing running and the main goal is to monitor network devices via SNMP. I'm trying to add Items for specific things I want to display on a dashboard later on. One such thing is the serial numbers in a switch stack, they seem to show up in keys named system.hw.serialnumber[entPhysicalSerialNum.1000] and similar (2000, 3000 and so on depending on the size of the stack). I would like to concat() these strings with spaces in between, but the problem is I can't know how many switches there are in a stack. How do you solve this? Do you check if a key exists before you use it (cant find a function for it) or is there a better way? It can be between one and eight switches in a stack.
This is the formula so far, only works with a pre-determined stack size:
Cheers!
ecce
I'm learning Zabbix, I have a single sevrer setup for testing running and the main goal is to monitor network devices via SNMP. I'm trying to add Items for specific things I want to display on a dashboard later on. One such thing is the serial numbers in a switch stack, they seem to show up in keys named system.hw.serialnumber[entPhysicalSerialNum.1000] and similar (2000, 3000 and so on depending on the size of the stack). I would like to concat() these strings with spaces in between, but the problem is I can't know how many switches there are in a stack. How do you solve this? Do you check if a key exists before you use it (cant find a function for it) or is there a better way? It can be between one and eight switches in a stack.
This is the formula so far, only works with a pre-determined stack size:
Code:
concat(last(//system.hw.serialnumber[entPhysicalSerialNum.1000])," ",last(//system.hw.serialnumber[entPhysicalSerialNum.2000]))
ecce
Comment