- ack_event_zabbix.py
- itervices_zabbix.py
You need lib zabbix-api and pip
# apt-get install pip git
# pip install zabbix-api
$ git clone https://github.com/janssenlima/api-zabbix
Inform the Event ID generated in Zabbix as a parameter
$ python ack_event_zabbix.py <event.id>
Inform the function to be used
Syntaxy: get_hostgroups()
No parameter is required
$ python -c "execfile('itservices_zabbix.py'); get_hostgroups()"
Syntax: get_hosts('<name_of_group>')"
$ python -c "execfile('itservices_zabbix.py'); get_hosts('Linux servers')"
Syntax: get_items_hosts('<name_of_host>')"
$ python -c "execfile('itservices_zabbix.py'); get_hosts('Apache Web Server')"
Syntax: delete_tree_itservices()
No parameter is required
$ python -c "execfile('itservices_zabbix.py'); delete_tree_itservices()"
Syntax: mk_populate()
No parameter is required
$ python -c "execfile('itservices_zabbix.py'); mk_populate()"
Want to contribute? Great!
Send suggestions, problems, errors etc for [email protected]
Visit http://blog.conectsys.com.br
- Do not list groups without hosts
- Create menu for selecting options and call the internal modules
- And others