Skip to content

gescheit/zabbix_api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Zabbix API scripts

##Installation:

cd to repo root

cd zabbix_api/
./install.sh <version>

version - your zabbix version. Supported: 1.8 for 1.8.* or 2.0 for 2.0.*

###Setting up credentials: Please, edit file: set URL,zabbix login and password and change debug level, if needed.

zabbix_api/<your zabbix version>/zabbix_credentials.py

###Usage: Install script will install zabbix_api from https://github.com/gescheit/scripts/tree/master/zabbix/ and zabbix_methods.
To use scripts in repo, you need only zabbix_methods module:

from zabbix_api.zabbix_methods import *

But, if you need zabbix_api for some reasons:

from zabbix_api.zabbix_api import ZabbixAPI

###Changes:

added v2.0
some minor features could not work, they will be updated soon.

scripts for v1.8 will be upated soon.

for v2.0 execute zabbix_host_add.py -h to view help and available options.


zabbix_credentials.py - here are username, password, log level and zabbix URL
zabbix_api.py - a library from https://github.com/gescheit/scripts/tree/master/zabbix/
zabbix_host_add.py - creates a host
zabbix_host_del.py - deletes a host.

Run them both without any arguments to view usage and available options.


Useful links: * http://www.zabbix.com/wiki/doc/api * http://www.zabbix.com/documentation/1.8/api * http://www.zabbix.com/forum/showthread.php?t=15218

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 3.0%