Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix Provider #1

Open
dgoetz opened this issue Dec 2, 2016 · 2 comments
Open

Zabbix Provider #1

dgoetz opened this issue Dec 2, 2016 · 2 comments

Comments

@dgoetz
Copy link
Member

dgoetz commented Dec 2, 2016

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.

@richlv
Copy link

richlv commented Dec 2, 2016

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...)

@mmoll
Copy link
Contributor

mmoll commented Jan 28, 2017

@oovoo might be interested in this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants