Ndo2db stop checks on nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Ndo2db stop checks on nagiosxi

Post by nagarjuna »

Hi Team,

Every 2-3 hours monitoring engine running and automatically stopped checks, and getting error from /var/log/messages.

Dec 31 15:14:13 NagiosxiApp ndo2db: Error: max retries exceeded sending message to queue. Kernel queue parameters may neeed to be tuned. See README.
Dec 31 15:14:13 NagiosxiApp ndo2db: Warning: queue send error, retrying...
Dec 31 15:14:33 NagiosxiApp ndo2db: Error: max retries exceeded sending message to queue. Kernel queue parameters may neeed to be tuned. See README.
Dec 31 15:14:33 NagiosxiApp ndo2db: Warning: queue send error, retrying...
Dec 31 15:14:53 NagiosxiApp ndo2db: Error: max retries exceeded sending message to queue. Kernel queue parameters may neeed to be tuned. See README.
Dec 31 15:14:53 NagiosxiApp ndo2db: Warning: queue send error, retrying...

after running ndo2db service its starting checks.

please help us .....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Ndo2db stop checks on nagiosxi

Post by scottwilkerson »

This is likely related to kernel tuning.

Please see this FAQ
http://support.nagios.com/wiki/index.ph ... 3.x_Issues
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Ndo2db stop checks on nagiosxi

Post by nagarjuna »

Hi Team,

Can you suggest us for 3500 host and 22000 services with 5 min interval and 8 min for freshness check, what will be good parameters for this or we need to observe and then we can only understand.

My question is max value what we can put here for all "msg" in /etc/sysctl.conf file.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Ndo2db stop checks on nagiosxi

Post by slansing »

I would start with the values outlined in the FAQ section that Scott posted, and if they are still too low (which they should not be) they can be adjusted by some basic factoring from there on out.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Ndo2db stop checks on nagiosxi

Post by nagarjuna »

Hi Team,

We have adjusted whatever mentioned in
But it seems very low every 15-20 min checks stopped whenever we are not starting ndo2db service, its showing 5000 messages clear from queue.

As i mentioned we have 3500 hosts with 22000 services.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Ndo2db stop checks on nagiosxi

Post by abrist »

Did you restart the server? Ulimit changes require a restart. What values did you set? Just the suggested ones from the faq?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Ndo2db stop checks on nagiosxi

Post by nagarjuna »

Hi abrist,

We did not restart after changing any set of parameters only we have given sysctl -p for update from /etc/sysctl.conf. Following values we have set in /etc/sysctl.conf file. Please check

# sysctl -p

kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.msgmni = 256000

What are the maximum limits for above parameters in Centos-6.3 64 bit
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Ndo2db stop checks on nagiosxi

Post by abrist »

What have you set for ulimits?

Code: Select all

ulimit -a
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Ndo2db stop checks on nagiosxi

Post by nagarjuna »

Hi Abrist,

Please check the following ....

[root@NagiosxiApp ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 321340
max locked memory (kbytes, -l) 128
max memory size (kbytes, -m) unlimited
open files (-n) 20480
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 20480
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@NagiosxiApp ~]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Ndo2db stop checks on nagiosxi

Post by abrist »

Ok. Is this in relation to a current open ticket? If so, we should just deal with it through the ticketing system.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked