wiki:zbx_api

Zabbix API

Dependencies

The Zabbix Ruby API interface requires the following packages

To test the API you will need to first edit the zbx_api.rb file. Look for the following line:

zbx_api = ZbxAPI.new('http://localhost')

Change the string in the single quotes to match the base URL of our Zabbix server. The next line you will also need to edit with your username and password which will work with your Zabbix installation.

After that issue the following command to execute:

ruby zbx_api.rb

Interactive Zabbix API tool

Documentation on the interactive Zabbix API tool can be found here?.