Files
SnarfCode/scripts/test_kuma_internal.py

10 lines
308 B
Python

import requests
for url in ["http://140.44.4.28:448", "http://140.44.4.11:30010", "http://140.44.4.21:30010"]:
try:
r = requests.get(f"{url}/api/status-page/default", timeout=3)
print(url, "status:", r.status_code, r.text[:100])
except Exception as e:
print(url, "err:", e)