kumistatus/sksup.py
2017-06-22 17:16:13 +02:00

13 lines
375 B
Python
Executable file

#!/usr/bin/python3
import time, setuptools, skstools, twitools
def check(server, recipient, two = twitools.twObject()):
if skstools.getStatus(server) == False:
two.tweet("@%s Something seems to be wrong with the %s keyserver!" % (recipient, site))
if __name__ == "__main__":
servers = setuptools.getListSetting("SKS", "servers")
for s in servers:
check(s[0], s[1])