diff --git a/NOTES.ruff b/NOTES.ruff index cd466f7..fe89b38 100644 --- a/NOTES.ruff +++ b/NOTES.ruff @@ -1 +1,4 @@ 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 diff --git a/lib/config/periods.py b/lib/config/periods.py index 76ddd55..2ee50bc 100644 --- a/lib/config/periods.py +++ b/lib/config/periods.py @@ -66,7 +66,7 @@ class DatePeriod(Period): return ret 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): diff --git a/lib/core/job.py b/lib/core/job.py index 4c5d446..ae7df06 100644 --- a/lib/core/job.py +++ b/lib/core/job.py @@ -34,9 +34,12 @@ class JobInfo: return nextExecution def handleCall(self): - print "calling command " + str(service.command) - cmd = Command(service.command) - self.log.d("executing command: " + str(command)) - cmd.call() - return cmd + print "about to call command " + str(self.service.command) + #must find real service command stored in hosts... + #but because of error, mentioned in NOTES,ruff, there is no ping i.e. + + #cmd = Command(service.command) + #self.log.d("executing command: " + str(command)) + #cmd.call() + #return cmd