Open dgoetz opened 8 years ago
example zabbix api query (after logging in and getting the session key/auth token) :
{"jsonrpc": "2.0","method": "host.get","params": {"output":["host","maintenance_status", "status"],"selectTriggers":["description", "priority", "value", "status"]},"auth": "74924a7395b8d37aaf7e7e8694e56c34","id": 1}
returns all hosts (host name, maintenance status, status (enabled/disabled)) along with their triggers (name, severity, value (ok/problem), status (enabled/disabled))
getting current ack state will require another request to event.get (and deciding what is ack - all events acked, last one acked...)
@oovoo might be interested in this
Add a Zabbix provider to get the monitoring information from this solution.
API documentation is located at: https://www.zabbix.com/documentation/3.4/manual/api API is capable of getting data out and create hosts. There is no event stream, so we have to query the API in an interval (like 30s).
There are several ruby-libraries available we should choose one. http://www.zabbix.org/wiki/Docs/api/libraries#Ruby
You can use the public demo to start playing around with the API (with read-only access), for advanced use virtual appliances and packages are available.