So I have a network device that I need to retrieve some values from, and unfortunately I can't do it with SNMP. Instead I have decided to do it via an external script which will SSH into the box, retrieve the values, format it nicely as JSON and return this to Zabbix. As part of my proof of concept for this I've created a bash script that just echo's some test JSON values to the shell:
{"data": [{"NAME": "port1","RX": 1,"TX": 2},{"NAME": "port2","RX": 3,"TX": 4}]}
What I want to do is create a LLD template that will discover my two ports, them have some prototypes start recording the TX and RX values relevant to each port. Now I think I may be missing something, but I don't understand how the prototype actually addresses that data that I want it to receive? I've managed to get as far as having it return ALL the values for 'RX' for each prototype, but this isn't very helpful to me. I want it to return the value specific to the particular port. I feel this should be something really easy to do, but I'm just not getting it.
I'm very new to Zabbix, so please feel free to call me mock my lack of knowledge, or call me names, but if someone can point me in the right direction I would be forever grateful...
{"data": [{"NAME": "port1","RX": 1,"TX": 2},{"NAME": "port2","RX": 3,"TX": 4}]}
What I want to do is create a LLD template that will discover my two ports, them have some prototypes start recording the TX and RX values relevant to each port. Now I think I may be missing something, but I don't understand how the prototype actually addresses that data that I want it to receive? I've managed to get as far as having it return ALL the values for 'RX' for each prototype, but this isn't very helpful to me. I want it to return the value specific to the particular port. I feel this should be something really easy to do, but I'm just not getting it.
I'm very new to Zabbix, so please feel free to call me mock my lack of knowledge, or call me names, but if someone can point me in the right direction I would be forever grateful...
Comment