style fixs and version bump to 0.5... ;)
This commit is contained in:
parent
3925fbba0d
commit
61c30f2cc5
1 changed files with 1 additions and 14 deletions
15
linspector
15
linspector
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python2.7 -tt
|
#!/usr/bin/python2.7 -tt
|
||||||
|
|
||||||
__version__ = "0.4/TETRIS"
|
__version__ = "0.5/TEKKEN"
|
||||||
__default_config__ = "./examples/minimal.json"
|
__default_config__ = "./examples/minimal.json"
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
@ -13,7 +13,6 @@ from apscheduler.scheduler import Scheduler
|
||||||
from lib.core.job import Job
|
from lib.core.job import Job
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def parseArgs():
|
def parseArgs():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Linspector is for monitoring the vital information of hosts, services and devices in a network.",
|
description="Linspector is for monitoring the vital information of hosts, services and devices in a network.",
|
||||||
|
|
@ -47,7 +46,6 @@ def handleJob(jobInfo):
|
||||||
jobInfo.handle_call()
|
jobInfo.handle_call()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parseArgs()
|
args = parseArgs()
|
||||||
log = Logger(args.logfile, args.loglevel)
|
log = Logger(args.logfile, args.loglevel)
|
||||||
|
|
@ -75,21 +73,10 @@ def main():
|
||||||
job.set_logger(log)
|
job.set_logger(log)
|
||||||
jobs.append(job)
|
jobs.append(job)
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
#Todo: implement user handle
|
#Todo: implement user handle
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
|
||||||
#log.i("starting linspector: reading config... (" + args.config + ")")
|
|
||||||
#config_parser = ConfigParser(log)
|
|
||||||
#config = config_parser.parse_config(args.config)
|
|
||||||
#log.d("parsed config: " + str(config))
|
|
||||||
|
|
||||||
#while True:
|
|
||||||
# time.sleep(10)
|
|
||||||
# for job in jobs:
|
|
||||||
# log.d(str(job))
|
|
||||||
|
|
||||||
elif args.action == "stop":
|
elif args.action == "stop":
|
||||||
log.i("stopping linspector is currently unsupported")
|
log.i("stopping linspector is currently unsupported")
|
||||||
elif args.action == "restart":
|
elif args.action == "restart":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue