调用zabbix api和配合ansible-playbook 在发版过程中禁用zabbix中对应的机器
python脚本如下:#-*-coding:utf-8-*importjsonimportrequestsimportpymysqlasmysqlimportsysmysql_conn=mysql.connect(host="127.0.0.1",port=3306,user="root",passwd="123456",db="poll",charset="utf8")url="http://1