Page 1 of 1

Minimum check interval in Nagios core

Posted: Mon Feb 08, 2021 5:37 pm
by egoitz
Good night,

I was trying to make a dedicated to few server Nagios, to have them checked every 15 seconds. The fact is that even setting :

in nagios.cfg :
interval_length=1

In templates.cfg:
check_interval 6
retry_interval 3

It seems some checks are done even each minute and more....

I have not been able to find which settings should I perhaps for achieving it.

Could anyone help me? :)

Cheers

Re: Minimum check interval in Nagios core

Posted: Mon Feb 08, 2021 6:24 pm
by benjaminsmith
Hi,

Welcome to the Nagios Community forum!

As a practical matter, I would recommend staying with the default of 60 seconds. If you want to test this try setting the interval to 15 seconds in the main configuration file and then check the interval to 1.
Format: interval_length=<seconds>
Example: interval_length=60
This is the number of seconds per "unit interval" used for timing in the scheduling queue, re-notifications, etc. "Units intervals" are used in the object configuration file to determine how often to run a service check, how often to re-notify a contact, etc.

Important: The default value for this is set to 60, which means that a "unit value" of 1 in the object configuration file will mean 60 seconds (1 minute). I have not really tested other values for this variable, so proceed at your own risk if you decide to do so!
https://assets.nagios.com/downloads/nag ... gmain.html

Re: Minimum check interval in Nagios core

Posted: Tue Feb 09, 2021 2:29 am
by egoitz
Hi Benjamin,

Thanks a lot for your answer.

I have already done that. But it's still not working as expected... It gets more delay... perhaps 1 or 2 minutes...

Any ideas?

Cheers :)

Re: Minimum check interval in Nagios core

Posted: Tue Feb 09, 2021 6:12 pm
by benjaminsmith
Hi egoitz,

Not sure how many hosts and services you have setup, but that implies that the scheduler is not able to keep up with all the checks it needs to run every 15 seconds. If you want to test this, try running Nagios with a single check at this interval.

Benjaminin