parent
3913447dac
commit
abdfb01f7f
@ -0,0 +1,13 @@
|
|||||||
|
import requests, arkevars, json
|
||||||
|
|
||||||
|
responseTable = {}
|
||||||
|
for target in arkevars.httpTargets:
|
||||||
|
try:
|
||||||
|
statuscode = requests.get(target).status_code
|
||||||
|
responseTable[target] = statuscode
|
||||||
|
# prints the int of the status code. Find more at httpstatusrappers.com :)
|
||||||
|
|
||||||
|
except requests.ConnectionError:
|
||||||
|
print("failed to connect")
|
||||||
|
|
||||||
|
jsonData = json.dumps(responseTable)
|
@ -0,0 +1,8 @@
|
|||||||
|
httpTargets = (
|
||||||
|
"https://bouncer.awful.club:5000",
|
||||||
|
"https://my.awful.club"
|
||||||
|
)
|
||||||
|
|
||||||
|
containerTargets = (
|
||||||
|
"slack.awful.club"
|
||||||
|
)
|
Loading…
Reference in new issue