style fixs and version bump to 0.5... ;)
This commit is contained in:
parent
8f56cbeef1
commit
7b9307b7f3
1 changed files with 1 additions and 14 deletions
15
linspector
15
linspector
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python2.7 -tt
|
||||
|
||||
__version__ = "0.4/TETRIS"
|
||||
__version__ = "0.5/TEKKEN"
|
||||
__default_config__ = "./examples/minimal.json"
|
||||
|
||||
import argparse
|
||||
|
|
@ -13,7 +13,6 @@ from apscheduler.scheduler import Scheduler
|
|||
from lib.core.job import Job
|
||||
|
||||
|
||||
|
||||
def parseArgs():
|
||||
parser = argparse.ArgumentParser(
|
||||
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()
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
args = parseArgs()
|
||||
log = Logger(args.logfile, args.loglevel)
|
||||
|
|
@ -75,21 +73,10 @@ def main():
|
|||
job.set_logger(log)
|
||||
jobs.append(job)
|
||||
|
||||
|
||||
while True:
|
||||
#Todo: implement user handle
|
||||
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":
|
||||
log.i("stopping linspector is currently unsupported")
|
||||
elif args.action == "restart":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue