Page 3 of 3
Re: Nagios did not exit in timely manner
Posted: Fri Aug 26, 2016 11:41 am
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.
Re: Nagios did not exit in timely manner
Posted: Fri Aug 26, 2016 1:26 pm
by tgriep
Try that and post back your results.
Re: Nagios did not exit in timely manner
Posted: Fri Aug 26, 2016 2:55 pm
by pradeepanan
Sure will do
Re: Nagios did not exit in timely manner
Posted: Mon Aug 29, 2016 6:12 am
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.
Re: Nagios did not exit in timely manner
Posted: Mon Aug 29, 2016 10:21 am
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:
So the system will load the changes. Try that and see if that helps.
Re: Nagios did not exit in timely manner
Posted: Tue Aug 30, 2016 7:17 am
by pradeepanan
I have increased it and looks good now. Thanks a lot for spending hours of your precious time.
Re: Nagios did not exit in timely manner
Posted: Tue Aug 30, 2016 11:56 am
by tgriep
Your welcome. Let us know if we can mark this post as solved so we can close and lock it up.
Re: Nagios did not exit in timely manner
Posted: Tue Aug 30, 2016 12:00 pm
by pradeepanan
Sure. This issue was solved and can be closed. Thanks again