Hey guys,
I'm quite new to Zabbix and am busy setting up the environment for our company but I have a problem in one of my templates with the JSONPath.
I've never really worked intensively with JSON or JSONPath so I was hoping someone could help me out.
For one of the applications we're monitoring I have a SNMP agent that returns a JSON file.
Because it's via SNMP the JSON names are formatted as a macro, I can't change this (the SNMP OID discovery recuires a valid macro name).
This is an example of the JSON:
Following these sources:
Tutorial for LLD + dependent items from the same JSON : zabbix (reddit.com)
Reduce Polling with Dependent Items and JSONPath - Zabbix.tips
I defined two LLD macros in my discovery rule:

but,
I'm now getting an error on Zabbix that it's not valid JSONPath.
My idea is that it's having problems with the curled brackets in the object name but I've been googling for hours and can't find a way to get around this.

Any ideas?
I'm quite new to Zabbix and am busy setting up the environment for our company but I have a problem in one of my templates with the JSONPath.
I've never really worked intensively with JSON or JSONPath so I was hoping someone could help me out.
For one of the applications we're monitoring I have a SNMP agent that returns a JSON file.
Because it's via SNMP the JSON names are formatted as a macro, I can't change this (the SNMP OID discovery recuires a valid macro name).
This is an example of the JSON:
Code:
[ {
"{#SNMPINDEX}":"36.48",
"{#CHANNELNAME}":"Channel_name05",
"{#CHANNELRECEIVED}":"105",
"{#CHANNELFILTERED}":"306",
"{#CHANNELQUEUED}":"0",
"{#CHANNELSENT}":"114",
"{#CHANNELERROR}":"0",
"{#CHANNELCONNECTION}":"",
"{#CHANNELSTATE}":"STARTED",
"{#CHANNELLASTMES}":"0"
},
{
"{#SNMPINDEX}":"36.49",
"{#CHANNELNAME}":"Channel_name03",
"{#CHANNELRECEIVED}":"0",
"{#CHANNELFILTERED}":"0",
"{#CHANNELQUEUED}":"0",
"{#CHANNELSENT}":"0",
"{#CHANNELERROR}":"0",
"{#CHANNELCONNECTION}":"",
"{#CHANNELSTATE}":"STARTED",
"{#CHANNELLASTMES}":"0"
}
]
Tutorial for LLD + dependent items from the same JSON : zabbix (reddit.com)
Reduce Polling with Dependent Items and JSONPath - Zabbix.tips
I defined two LLD macros in my discovery rule:
but,
I'm now getting an error on Zabbix that it's not valid JSONPath.
My idea is that it's having problems with the curled brackets in the object name but I've been googling for hours and can't find a way to get around this.
Any ideas?
Comment