Giter VIP home page Giter VIP logo

zabbix's Introduction

zabbix

###简介: 根据日常工作中常用到zabbix的功能,整理以下功能 1.基于 zabbix 官方 api 2.提供查询单个或者多个host、hostgroup、template功能 3.提供增加host,hostgroup功能 4.提供disable host功能 5.添加删除host功能 ###使用说明: 修改自己的url,及user,password,详见example.py

###帮助信息 直接执行 python zabbix_api.py usage: zabbix_api.py [options]

	zabbix api
	
	optional arguments:
	  -h, --help            show this help message and exit
	  -H [LISTHOST], --host [LISTHOST]
	                        查询主机
	  -G [LISTGROUP], --group [LISTGROUP]
	                        查询主机组
	  -T [LISTTEMP], --template [LISTTEMP]
	                        查询模板信息
	  -A ADDGROUP, --add-group ADDGROUP
	                        添加主机组
	  -C 192.168.2.1 test01,test02 Template01,Template02, --add-host 192.168.2.1 test01,test02 Template01,Template02
	                        添加主机,多个主机组或模板使用分号
	  -d 192.168.2.1, --disable 192.168.2.1
	                        禁用主机
	  -D 192.168.2.1 [192.168.2.1 ...], --delete 192.168.2.1 [192.168.2.1 ...]
	                        删除主机,多个主机之间用分号
	  -v, --version         show program's version number and exit

###参考: 1.zabbix 官方api

2."王伟" 博客

zabbix's People

Contributors

joe011 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.