Skip to content
Ruby module for work with zabbix api
Find file
Pull request Compare This branch is 7 commits behind verm666:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
spec
.gitignore
LICENSE
README.rdoc
zabbixapi.gemspec

README.rdoc

Ruby Zabbix Api Module.

Simple 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;

Installation

gem install zabbixapi

Get Start.

  • 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

Something went wrong with that request. Please try again.