Nagios did not exit in timely manner

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.
pradeepanan
Posts: 41
Joined: Wed Sep 30, 2015 1:58 pm

Re: Nagios did not exit in timely manner

Post by pradeepanan »

Sure. I will look into it. This was the setup since the server was deployed and it was yeard ago. Its kinda weird why its happening all of a done.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios did not exit in timely manner

Post by tgriep »

Try that and post back your results.
Be sure to check out our Knowledgebase for helpful articles and solutions!
pradeepanan
Posts: 41
Joined: Wed Sep 30, 2015 1:58 pm

Re: Nagios did not exit in timely manner

Post by pradeepanan »

Sure will do
pradeepanan
Posts: 41
Joined: Wed Sep 30, 2015 1:58 pm

Re: Nagios did not exit in timely manner

Post by pradeepanan »

I was about to make changes that you have recommended above. Before that i was see logs where i found messages like below,
Error: max retries exceeded sending message to queue. Kernel queue parameters may neeed to be tuned
nms ndo2db: Message sent to queue.
nms ndo2db: Warning: queue send error, retrying...

I am not sure whether ndoutils got lots of queue messages or stuck somewhere. So i stopped ndo2b service. After that, i can see next check was wroking like a charm with no issue. I kept this in trend for 2 days and so far no issues (touch wood).

So i think there is some issue in ndoutils or it piled of queue messages.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios did not exit in timely manner

Post by tgriep »

There are some entries you can edit on your server to help out in the ndoutils and the kernel message queue errors.
Open /etc/sysctl.conf with a text editor. Edit the file to match the following values:

Code: Select all

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 131072000
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 131072000
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
## The maximum number of messages allowed in any one message queue
kernel.msgmni = 256000
Note: If you don't have these entries in the "/etc/sysctl.conf" file, just add them to the end of the file.
After these settings are saved to the file, run:

Code: Select all

sysctl -p
So the system will load the changes. Try that and see if that helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
pradeepanan
Posts: 41
Joined: Wed Sep 30, 2015 1:58 pm

Re: Nagios did not exit in timely manner

Post by pradeepanan »

I have increased it and looks good now. Thanks a lot for spending hours of your precious time.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios did not exit in timely manner

Post by tgriep »

Your welcome. Let us know if we can mark this post as solved so we can close and lock it up.
Be sure to check out our Knowledgebase for helpful articles and solutions!
pradeepanan
Posts: 41
Joined: Wed Sep 30, 2015 1:58 pm

Re: Nagios did not exit in timely manner

Post by pradeepanan »

Sure. This issue was solved and can be closed. Thanks again
Locked