Page 1 of 1

Checks that run once per day at the same time

Posted: Tue Aug 13, 2019 11:21 am
by optionstechnology
I have a client which requires a log check to be done at a set time each day and the check can only run once at that time, it cannot run again


I have tried setting the time period of the check to 15mins per day and then set the check interval to 30 mins... but it seems to sometimes skip the next days check altogether

I set the check interval and the time period to the same amount of time but the same happens

If I set the interval smaller than the time period the check runs multiple times in the window and sends the wrong result


Any thoughts on how to do this?

Re: Checks that run once per day at the same time

Posted: Tue Aug 13, 2019 2:36 pm
by cdienger
It sounds like you're running into the same issue seen here https://support.nagios.com/forum/viewto ... =7&t=54064. It was suggested there that the check interval be set same number of minutes that the time_period covered. It sounds like it's not work in your case, correct?

Another work around that was mentioned was scripting the next schedule time using external commands - https://assets.nagios.com/downloads/nag ... and_id=129

And yet another is to configure a cron job to run the check and then submit them as a passive result.

The 4.4.4 version of Core has a fix for the scheduling issue but I wouldn't suggest going that route at the moment as it has another issue of CPU load during startup. That's expected to be fixed in 4.4.5 and then rolled into an XI build.