<img src=“https://secure.travis-ci.org/xeron/zabbixapi.png?branch=master” alt=“Build Status” />
¶ ↑
Ruby Zabbix Api ModuleSimple and lightweight ruby module for work with zabbix api version 1.8.x
You can:
-
Create host/template/application/items/triggers and screens;
-
Get info about all zabbix essences;
¶ ↑
Installationgem install zabbixapi
¶ ↑
Get started-
Get hostid from zabbix api:
zbx = Zabbix::ZabbixApi.new('https://zabbix.example.com', 'login', 'password') hostid = zbx.get_host_id('my.example.com') p hostid
¶ ↑
Dependencies-
net/http
-
net/https
-
json
¶ ↑
Use examples-
zabbix_la - LoadAverage template
cd examples ruby zabbix_la -E development -g Templates
-
-E - env from examples/config.yml (like RAILS_ENV)
-
-g - group in zabbix for templates
¶ ↑
Zabbix documentation-
Zabbix Project Homepage -> www.zabbix.com
-
Zabbix Api docs -> www.zabbix.com/documentation/1.8/api