Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

AlekSi/zabbix

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 29, 2015 14:17
July 13, 2016 13:40
March 11, 2013 09:12
June 22, 2016 22:37
December 29, 2015 17:01
December 29, 2015 15:03
March 13, 2013 11:40
December 29, 2015 17:05
December 29, 2015 17:01
March 11, 2013 09:12
December 29, 2015 17:01
March 11, 2013 18:27
June 12, 2013 17:39
December 29, 2015 16:51

zabbix GoDoc Build Status Go Report Card

This Go package provides access to Zabbix API. Tested on Zabbix 2.0, 2.2, 2.4.

Install it: go get github.com/AlekSi/zabbix

You have to run tests before using this package – Zabbix API doesn't match documentation in few details, which are changing in patch releases. Tests are not expected to be destructive, but you are advised to run them against not-production instance or at least make a backup.

export TEST_ZABBIX_URL=http://localhost:8080/zabbix/api_jsonrpc.php
export TEST_ZABBIX_USER=Admin
export TEST_ZABBIX_PASSWORD=zabbix
export TEST_ZABBIX_VERBOSE=1
go test -v

TEST_ZABBIX_URL may contain HTTP basic auth username and password: http://username:password@host/api_jsonrpc.php. Also, in some setups URL should be like http://host/zabbix/api_jsonrpc.php.

Documentation is available on godoc.org. Also, Rafael Fernandes dos Santos wrote a great article about using and extending this package.

License: Simplified BSD License (see LICENSE).