Page 1 of 2

Service checks delay

Posted: Wed Jun 22, 2016 5:17 am
by Sacotram
Hello!

I have a Nagios Core 3.5.1 installed on a virtual machine with 2 virtual CPUs and 2 GB of RAM and it's running Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-29-generic x86_64).
I have noticed that despite the defined service template configuration being as follow:

Code: Select all

 
max_check_attempts              5                       ; Re-check the service up to 5 times in order to determine its final$
normal_check_interval            5                       ; Check the service every 5 minutes under normal conditions
retry_check_interval               1   
The intervals of servicechecks are longer than expected. It's always beyond 5 minutes (see attached image):
Image

Can anyone give me any insight on this please?
Thank you in advance

Re: Service checks delay

Posted: Wed Jun 22, 2016 10:11 am
by rkennedy
Can you please post your objects.cache for us to look at? /usr/local/nagios/var/objects.cache. I'd like to see how it's looking as a whole, rather then just the configuration file.

Are you running any additional components in conjunction with Nagios?

Re: Service checks delay

Posted: Thu Jun 23, 2016 4:50 am
by Sacotram
Hello!

I am sending our objects.cache as an attachment. I have removed contact names but the rest is all there.
I have ndoutils running as well.
Our system is processing 280 hosts and 913 services.

Thank you for your reply

Regards

Re: Service checks delay

Posted: Thu Jun 23, 2016 11:39 am
by rkennedy
All looks good there, could you also attach a screenshot of your Performance Info page?

Also - could you attach a screenshot of one of the service detail pages? I'd like to see what the 'last check time' and 'next scheduled check' times are lining up to.

Re: Service checks delay

Posted: Fri Jun 24, 2016 4:20 am
by Sacotram
Hello!

The print screens are attached to this message.

Thank you :)

Re: Service checks delay

Posted: Fri Jun 24, 2016 11:07 am
by tgriep
Can you post the nagios.cfg file so we can check the settings in it?

Re: Service checks delay

Posted: Mon Jun 27, 2016 4:48 am
by Sacotram
Hello!

As you requested the nagios.cfg file is attached to this message.
Thank you very much :)

Re: Service checks delay

Posted: Mon Jun 27, 2016 10:32 am
by tgriep
The screen captures are showing that the scheduler isn't running the checks quick enough and there are some settings you can change in the nagios.cfg file to fix that.
Can you edit the nagios.cfg file and change the following from

Code: Select all

enable_predictive_host_dependency_checks=0
enable_predictive_service_dependency_checks=0
auto_rescheduling_window=180
to

Code: Select all

enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
auto_rescheduling_window=60
Save the file and restart nagios by running

Code: Select all

service nagios restart
Those changes will enable the predictive dependencies and also set the scheduler to run at 60 seconds.
Try that and let us know if this works or not.

Re: Service checks delay

Posted: Mon Jun 27, 2016 10:46 am
by Sacotram
I will do it as you advised and reply back whether or not it worked. Thank you
Regards :)

Re: Service checks delay

Posted: Mon Jun 27, 2016 10:56 am
by tgriep
Your welcome.