17 lines
447 B
Python
17 lines
447 B
Python
import requests
|
|
import urllib3
|
|
urllib3.disable_warnings()
|
|
|
|
try:
|
|
r = requests.get('http://140.44.4.70:8090/health', timeout=5)
|
|
print("Gotify VIP /health:", r.status_code, r.text)
|
|
except Exception as e:
|
|
print("Gotify VIP error:", e)
|
|
|
|
try:
|
|
r = requests.get('https://gotify.snarfnet.net/health', verify=False, timeout=5)
|
|
print("Gotify DNS /health:", r.status_code, r.text)
|
|
except Exception as e:
|
|
print("Gotify DNS error:", e)
|
|
|