']
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... = gethostid(auth,HOSTNAME)
applicationid=getapplicationid(auth,hostid)
create_web_scenario(auth,URL,...hostid,applicationid)
create_trigger(auth,HOSTNAME,URL)