def monitor_unlink_zabbix_template(): if request.method == "POST": params = request.form.to_dict() zb = Zabbix() ret = zb.unlink_template(params["hostid"], params["templateid"]) if ret: return "1" else: return ret
def monitor_unlink_template(): if request.method == "POST": params = request.form.to_dict() zb = Zabbix() ret = zb.unlink_template(params["hostid"], params['templateid']) if ret: return "1" else: return ret
def monitor_unlink_zabbix_template(): if request.method == "POST": params = request.form.to_dict() # print params # {'hostid': u'10113', 'templateid': u'10115'} zb = Zabbix() ret = zb.unlink_template(params['hostid'], params['templateid']) if ret: return "1" else: return ret