[ZBXNEXT-3472] It should be possible to interpret JSON strings from items Created: 2016 Oct 03 Updated: 2016 Oct 04 Resolved: 2016 Oct 04 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Major |
Reporter: | Alessandro De Maria | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Labels: | items | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
I find myself using Zabbix to monitor many services that offer an api to check their status. I.e. Elasticsearch. These services usually return you a JSON of their status. It would make it easier if it was possible to interpret the content and extract values using a sintax similar to jq. Currently I use a web.page.regexp but ideally you would want to use something that allows you to interpret json strings better. web.page.regexp[{HOST.IP},/_cluster/health?pretty,9200,"status[: \"]+([a-zA-Z]+)",,\1] vs web.page.json[{HOST.IP},/_cluster/health?pretty,9200,.status] Regards |
Comments |
Comment by richlv [ 2016 Oct 03 ] |
json parsing is probably a duplicate of |
Comment by Tatapoum [ 2016 Oct 03 ] |
In the meantime, I have created a script for this purpose : |
Comment by Aleksandrs Saveljevs [ 2016 Oct 04 ] |
Looks like a duplicate of |