summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVon Random <von@vdrandom.org>2016-10-23 02:46:53 +0300
committerVon Random <von@vdrandom.org>2016-10-23 02:46:53 +0300
commit24d9df968ecc81c4b19fabe5ed0727659713d0cb (patch)
treed3b591970238e2d7fcc99deb3b763fbf291f0334
parentb1d44b5582050c3cb5b6b6c3428e7ac2b5176489 (diff)
style fix + TODO list
-rw-r--r--plugins/ping.py2
-rwxr-xr-xvdstatus4
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/ping.py b/plugins/ping.py
index 8de3784..f2b9854 100644
--- a/plugins/ping.py
+++ b/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')
diff --git a/vdstatus b/vdstatus
index d79fb7d..448bc9e 100755
--- a/vdstatus
+++ b/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