13 lines
375 B
Python
13 lines
375 B
Python
|
#!/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])
|