Page 1 of 3
Nagios did not exit in timely manner
Posted: Sun Aug 21, 2016 8:24 am
by pradeepanan
Folks,
My previous post was regarding "Thruk" which i though was the issue. But when I do export in nagios its showing "Warning : Nagios did not exit in timely manner" error. I have checked if there is any duplicate instance running which is not. I have also checked the timput in init script which till 1...30. Is there any other thing I am missing to check?
Re: Nagios did not exit in timely manner
Posted: Sun Aug 21, 2016 7:49 pm
by pradeepanan
I am also seeing next schedule check is in past. So whenever I stop and start nagios process , its working again. Will the be related to above issue?
Re: Nagios did not exit in timely manner
Posted: Sun Aug 21, 2016 10:53 pm
by Box293
Is your system time and php time correctly set to your timezone?
Even though the following KB article is for Nagios XI, the same systems should work for Nagios Core:
https://assets.nagios.com/downloads/nag ... m_Time.pdf
Does this help?
Re: Nagios did not exit in timely manner
Posted: Mon Aug 22, 2016 10:43 am
by pradeepanan
Yes, it is set to my time zone.
also when I restart nagios am seeing process running like,
ps awx | grep nagios.cfg | grep -v grep
7140 ? Ssl 1:41 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
15504 ? S 0:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
15506 ? S 0:00 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
I was expecting process stst to be "R+". How ever not sure what the above means. Is this something abnormal?
Re: Nagios did not exit in timely manner
Posted: Mon Aug 22, 2016 11:07 am
by rkennedy
It's hard to say because Thruk will still make changes on how everything runs. We aren't able to support forks.
On a stock XI system though, it's running with Ss:
Code: Select all
[root@localhost etc]# ps awx | grep nagios.cfg | grep -v grep
2027 ? Ss 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
2048 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Re: Nagios did not exit in timely manner
Posted: Mon Aug 22, 2016 12:17 pm
by pradeepanan
I think I am kind of stuck in figuring out the issues. Anyway thanks for the help folks
Re: Nagios did not exit in timely manner
Posted: Mon Aug 22, 2016 3:34 pm
by tgriep
The only other suggestion is to update to the latest version of Nagios or if you have a lot of warnings in the nagios configs, try and resolve those as that will speed up nagios restarting.
Re: Nagios did not exit in timely manner
Posted: Tue Aug 23, 2016 11:24 am
by pradeepanan
I am doing some clean up and see if that fixes the issue. Thanks
Re: Nagios did not exit in timely manner
Posted: Tue Aug 23, 2016 12:08 pm
by lmiltchev
Let us know if you have any more questions. Is it OK if we lock this thread?
Re: Nagios did not exit in timely manner
Posted: Tue Aug 23, 2016 2:54 pm
by pradeepanan
I have cleaned up the nagios config and did export. This time I dont see any error and everything was running smooth and fine. After several hours I am seeing the time for "next schedule check" goes 5 minutes behind. I was expecting it to be same as my system time but its not.
For example
Next Scheduled Check: 19:46:16 This service is currently executing its servicecheck
system time :
[root@nms ~]# date
Tue Aug 23 19:54:04 GMT 2016