-
New Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
It would be very nice to have some possibility in Zabbix Agent to read data from SQLite3 databases, both for discovery and value retrieval. This way, it would be very quick to access bunches of script or API generated stats without hammering bash/other scripts for these.
Something like:
SQLite3Parameter=mystats.value[*],/data/stats/mydb.sq3,SELECT value FROM stats WHERE (key1='$1') AND (key2='$2') AND (field='$3')
SQLite3Discovery=mystats.key_discovery,/data/stats/mydb.sq3,SELECT DISTINCT key1 AS KNAME,key2 AS KID FROM stats
The idea should be clear from the example. Second one should return JSON with something like {"#KNAME":..., "#KID":...} according to the field naming.