Minimum check interval in Nagios core

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.
Locked
egoitz
Posts: 2
Joined: Mon Feb 08, 2021 5:12 pm

Minimum check interval in Nagios core

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Minimum check interval in Nagios core

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
egoitz
Posts: 2
Joined: Mon Feb 08, 2021 5:12 pm

Re: Minimum check interval in Nagios core

Post 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 :)
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Minimum check interval in Nagios core

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked