Hello, sometime you need to automated ordinary task. Especially when you have dynamic infrastructure with automatic provisioning and configuration management. Here is small example how you can integrate and automate.
There are a lot of zabbix api implementation, for example:
So, i decided to use https://github.com/gnetsman/zabbix_api due to ability to find so examples: https://github.com/gescheit/scripts/tree/master/zabbix. After small modification i created working prototype for python 2.6 on zabbix server 2.0.4.
My draft example: https://github.com/gergund/zabbix_api. Also you can use archive examples: zabbix_api-v2.tar
RPM package for zabbixapi: python-zabbixapi-1.0-1.noarch.rpm
SRPM package for zabbixapi: python-zabbixapi-1.0-1.src.rpm
SPEC file for zabbixapi: python-zabbixapi.spec