添加zabbix 监控缓存状态监控脚本

This commit is contained in:
pengtao 2019-09-29 14:25:34 +08:00
parent 4d3c87f515
commit 3609249490

11
monitor_ad_interface.py Normal file
View File

@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
import json
import requests
url = "http://spread-test.kingsome.cn/webapp/index.php?c=Ops&a=selfChecking"
r = requests.get(url)
if r.status_code != 200:
print(1)
else:
print(json.loads(r.content).get('errcode', 1))