Hi I have set up some sensors to monitor scheduled tasks, which work fine. however i would also like to define a time window of success.

For example, let's say a task is set to run once per day and it fails to run (note this is not the same as the task running but failing). The default settings for the sensor show a success from the last successful result alebit it may be several days ago.

I would like the sensor to see that the task has not run successfully within the last 24 hours - is that possible?


Article Comments

What would you like to do afterwards? Wouldn't setting up a notification (state trigger, down for 84600 seconds) do exactly that? :)


Jul, 2015 - Permalink

i don't think so because there is no failure. The actual check results in a success, just a success from in my case 5 days ago when the task didn't run.

i am sure it's really simple i just cant get my head around how to configure the state for something which the last result was success just not in the required timeframe.


Jul, 2015 - Permalink

create a schedule for checking the task at say 9:00 AM - this is a pretty new feature so may require an update of your prtg server

so say the task needs to run successfully between 8 and 9 am.... it does it check at 9:00 AM and set an upper limit on the last run time of 60 minutes. so then it has to have ran in the last 60 minutes. if its still running it should show failed, (may need to set a return code limit as well for 2 and above) but if it checks and has a 0 return code all is good, may take some tweaking


Jul, 2015 - Permalink

that did it thanks. Set a new schedule for 9am - set upper limit to 10000s . Works fine thanks for your help.


Jul, 2015 - Permalink