fixed typo bug silently cought by apscheduler, added notes

This commit is contained in:
Rafael.Timmerberg 2013-05-29 02:22:59 +02:00
commit ea8eeaf8e5
3 changed files with 12 additions and 6 deletions

View file

@ -1 +1,4 @@
take "~" as expander to make a ./linspector dir take "~" as expander to make a ./linspector dir
(using linspector.minimal)
a host which doesn't define a service (seen in linspector.minimal), is at this point useless. It was intended that the host defines allowed services there. The warning that a hostgroup was defined for a host which has not such a service is supressed because host.services has no items to iterate over(hosts.py l64).Also a service like ping isn't defined anywhere... Not shure if this should be considered as config error or parsing error

View file

@ -66,7 +66,7 @@ class DatePeriod(Period):
return ret return ret
def createJob(self, scheduler, jobInfo, func): def createJob(self, scheduler, jobInfo, func):
return scheduler.add_date_job(func, self.date, [jobInfo]) return scheduler.add_date_job(func, self.date, jobInfo)
def parsePeriodList(periodlist, log): def parsePeriodList(periodlist, log):

View file

@ -34,9 +34,12 @@ class JobInfo:
return nextExecution return nextExecution
def handleCall(self): def handleCall(self):
print "calling command " + str(service.command) print "about to call command " + str(self.service.command)
cmd = Command(service.command) #must find real service command stored in hosts...
self.log.d("executing command: " + str(command)) #but because of error, mentioned in NOTES,ruff, there is no ping i.e.
cmd.call()
return cmd #cmd = Command(service.command)
#self.log.d("executing command: " + str(command))
#cmd.call()
#return cmd