Browse Source

style fix + TODO list

master
Von Random 6 years ago
parent
commit
24d9df968e
  1. 2
      plugins/ping.py
  2. 4
      vdstatus

2
plugins/ping.py

@ -30,7 +30,7 @@ class PluginThread(threading.Thread):
def main(self):
random.shuffle(self.hosts)
for host in self.hosts:
fping = 'fping -q -c1 -t' + self.timeout + ' ' + host + ' &>/dev/null'
fping = 'fping -qct' + self.timeout + ' ' + host + ' &>/dev/null'
response = os.system(fping)
if response == 0:
self.format_status('on')

4
vdstatus

@ -1,4 +1,8 @@
#!/usr/bin/python3 -u
# TODO:
# * handle SIGINT properly
# * add documentation / comments
# * add a dummy plugin to use as a starting point
from sys import argv
import argparse
import configparser

Loading…
Cancel
Save