[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:
Duplicate
duplicates ZBXNEXT-3190 Add new REST API simple check with JS... Closed

 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 ZBXNEXT-3190

Comment by Tatapoum [ 2016 Oct 03 ]

In the meantime, I have created a script for this purpose :
https://gist.github.com/dav3860/bdc658da6e7579d385d3

Comment by Aleksandrs Saveljevs [ 2016 Oct 04 ]

Looks like a duplicate of ZBXNEXT-3190 indeed, closing.

Generated at Fri Apr 19 21:01:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.