']
else:
print ("找不到该主机")
sys.exit(1)
def getapplicationid(auth,hostid):
try:
request... = ZabbixAPI.do_request(auth, 'application.create', params={"name": "web监控","hostid": hostid})
except...": hostid,"applicationid": applicationid, "delay": '60',"retries": '3', "steps": [ { 'name': URL, 'url..., 'trigger.create', params={"description": "从监控机(172.18.11.34)访问{0}出现问题,如果网络和主机性能没问题,并且是单节点报错请尝试重启对应的tomcat...hostid,applicationid)
create_trigger(auth,HOSTNAME,URL)