Hello,
I'm still learning how to use Zabbix and quickly finding out how powerful it is. I've managed to created my own SNMP template to monitor a few hundred hosts/devices. These devices also have a json file attached to them on something like:
Not all hosts have this URL but eventually they all will and I need to alert on information in that json file should we hit a threshold.
Now I'm a bit lost on this next bit.
So I've already learnt on how scrape/discovery a json file if it's a large json file dump and pick out what date I need from that. I've done this for another json output I needed Zabbix to read, but this is 1 large json file containing devices/host names and metrics, I used a LLD and Macros and all works nicely.
This time I need to do the same or similar thing, but for each host/device instead and read their individual json file.
Do I create a new template and add this as a second template for each host/device to use so they will have an SNMP template and this JSON template I need to create one or is there a better way? I wanted if I can run the SNMP discovery and link this new discovery or template after?
Also on the discovery I'd need to point to the devices IP address on the url, what would the variable look like to insert the IP URL to scrape/discover?
https://{HOST.IP}/agent/metrics.json
Apologies if I've not explained that properly. If I've missed anything off please let me know.
Thanks
I'm still learning how to use Zabbix and quickly finding out how powerful it is. I've managed to created my own SNMP template to monitor a few hundred hosts/devices. These devices also have a json file attached to them on something like:
Not all hosts have this URL but eventually they all will and I need to alert on information in that json file should we hit a threshold.
Now I'm a bit lost on this next bit.
So I've already learnt on how scrape/discovery a json file if it's a large json file dump and pick out what date I need from that. I've done this for another json output I needed Zabbix to read, but this is 1 large json file containing devices/host names and metrics, I used a LLD and Macros and all works nicely.
This time I need to do the same or similar thing, but for each host/device instead and read their individual json file.
Do I create a new template and add this as a second template for each host/device to use so they will have an SNMP template and this JSON template I need to create one or is there a better way? I wanted if I can run the SNMP discovery and link this new discovery or template after?
Also on the discovery I'd need to point to the devices IP address on the url, what would the variable look like to insert the IP URL to scrape/discover?
https://{HOST.IP}/agent/metrics.json
Apologies if I've not explained that properly. If I've missed anything off please let me know.
Thanks
Comment