Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
That would be the check_interval config option for hosts/services that are not in a problem state, and retry_interval for those that are. The value is in minutes, so "check_interval 1" would check every minute.
tmcdonald wrote:That would be the check_interval config option for hosts/services that are not in a problem state, and retry_interval for those that are. The value is in minutes, so "check_interval 1" would check every minute.
I hate contradicting Nagios staff, but the check_interval (and retry_interval) is not technically in minutes, it is in interval_length intervals.
interval_length is defined in /usr/local/nagios/etc/nagios.cfg and by default, it is set to 60 seconds. So interval_length x check_interval = number of seconds between service checks for checks not in a problem state. Since interval_length defaults to 60 seconds, check_interval (and retry_interval) is in minutes. But if you changed interval_length to be 15, for instance, then check_interval (and retry_interval )becomes 1/4 minute intervals.
Just an FYI: Changing interval_length may have odd consequences with the scheduler. All we can do is suggest you try it out. Your mileage may vary.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
The original question was setting things to check every 30 seconds. To do this, you need to change interval_length from 60 to 30 and then ensure that all of your *_interval config parameters are now calculated based on 30 second intervals instead of 60 second intervals. So anything that you want to have checked every minute needs to be doubled to 2 while everything you want to be checked at 30 seconds needs to be 1.
I've never seen a case of changing the interval_length changing the scheduler. I do see some places in the 4.0.7 code that check_interval is used where I believe (check_interval * interval_Length) should be used, but it looks to be in special cases that probably won't matter (but should still be fixed).
If I get excited over the next few days, I'll take a closer look. But - again, your mileage may vary - I've never had a problem lowering interval_length to 30 seconds.
eloyd wrote:I've never seen a case of changing the interval_length changing the scheduler.
It is more about the potential issues of the auto_rescheduling_window and sub one minute checks. Make sure that your auto_rescheduling_window directive in nagios.cfg is set to less than your shortest possible check interval (which is derived from interval_length * check_interval).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.