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?
Checks that run once per day at the same time
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Checks that run once per day at the same time
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.