Service checks delay

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.
Sacotram
Posts: 20
Joined: Tue May 27, 2014 6:21 am

Service checks delay

Post 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
Attachments
2016-06-22 10_30_18-MySQL Workbench.jpg
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Service checks delay

Post 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?
Former Nagios Employee
Sacotram
Posts: 20
Joined: Tue May 27, 2014 6:21 am

Re: Service checks delay

Post 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
Attachments
objects.zip
(31.76 KiB) Downloaded 101 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Service checks delay

Post 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.
Former Nagios Employee
Sacotram
Posts: 20
Joined: Tue May 27, 2014 6:21 am

Re: Service checks delay

Post by Sacotram »

Hello!

The print screens are attached to this message.

Thank you :)
Attachments
2016-06-24 10_14_29.jpg
2016-06-24 10_13_12.jpg
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Service checks delay

Post by tgriep »

Can you post the nagios.cfg file so we can check the settings in it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Sacotram
Posts: 20
Joined: Tue May 27, 2014 6:21 am

Re: Service checks delay

Post by Sacotram »

Hello!

As you requested the nagios.cfg file is attached to this message.
Thank you very much :)
Attachments
nagios.cfg
(43.8 KiB) Downloaded 254 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Service checks delay

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Sacotram
Posts: 20
Joined: Tue May 27, 2014 6:21 am

Re: Service checks delay

Post by Sacotram »

I will do it as you advised and reply back whether or not it worked. Thank you
Regards :)
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Service checks delay

Post by tgriep »

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