Nagios 4.1.1 too many zombie process and 100% cpu usage

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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by tmcdonald »

So you have upgraded Core to 4.2.1 as per @jfrickson's advice, but did you also upgrade NDO? It was mentioned before that you will need to do both. Can you please clarify your NDO version?
Former Nagios employee
jfrickson

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by jfrickson »

Also, try setting --with-iobroker=epoll.
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by amprantino »

I had the same problem with version 4.1.1
It was fixed after 4.2.1 upgrade
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by tmcdonald »

Thanks for the input!

I'm thinking this is the case, but make sure to do both Core and NDO when you upgrade. Please let us know how that goes.
Former Nagios employee
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by sainudani »

@tmcdonald,

No. I haven't upgraded NDO.
Current NDO version - NDO2DB 1.4b9

While configuring new nduutils 2.1.0 & 2.1.1 , I am getting below error.

bash-3.2# make all
cd ./src && make
make[1]: Entering directory '/usr/local/ndoutils-2.1.1/src'
gcc -fPIC -g -O2 -I/usr/sfw/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c
gcc -fPIC -g -O2 -I/usr/sfw/include/mysql -DHAVE_CONFIG_H -o file2sock file2sock.c io.o utils.o -lm -lnsl -lsocket
gcc -fPIC -g -O2 -I/usr/sfw/include/mysql -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils.o -lm -lnsl -lsocket
make ndo2db-2x
make[2]: Entering directory '/usr/local/ndoutils-2.1.1/src'
gcc -fPIC -g -O2 -I/usr/sfw/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
db.c: In function `ndo2db_db_connect':
db.c:219: error: `CLIENT_REMEMBER_OPTIONS' undeclared (first use in this function)
db.c:219: error: (Each undeclared identifier is reported only once
db.c:219: error: for each function it appears in.)
make[2]: *** [Makefile:108: db.o] Error 1
make[2]: Leaving directory '/usr/local/ndoutils-2.1.1/src'
make[1]: *** [Makefile:71: ndo2db] Error 2
make[1]: Leaving directory '/usr/local/ndoutils-2.1.1/src'
make: *** [Makefile:74: all] Error 2

Any idea??
Thanks
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by sainudani »

@ amprantino ,

Could you please confirm below-
1.Is it Solaris ? which version?
2.NDO utils version?
3.--with-iobroker option?

Thanks,
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by sainudani »

@jfrickson,
epoll option also giving error.

./configure --with-iobroker=epoll

.................................
......................................
checking sys/select.h presence... yes
checking for sys/select.h... yes
./configure: line 6515: test: too many arguments
"epoll" is not available as an iobroker method.
Please use one of the other options.
jfrickson

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by jfrickson »

sainudani wrote:gcc -fPIC -g -O2 -I/usr/sfw/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
db.c: In function `ndo2db_db_connect':
db.c:219: error: `CLIENT_REMEMBER_OPTIONS' undeclared (first use in this function)
db.c:219: error: (Each undeclared identifier is reported only once
db.c:219: error: for each function it appears in.)

Any idea??
CLIENT_REMEMBER_OPTIONS is defined in mysql_com.h. It looks like you don't have the mysql headers and libraries installed, or ./configure couldn't find them. Check config.log and look for "mysql".
jfrickson

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by jfrickson »

sainudani wrote:@jfrickson,
epoll option also giving error.

./configure --with-iobroker=epoll

.................................
......................................
checking sys/select.h presence... yes
checking for sys/select.h... yes
./configure: line 6515: test: too many arguments
"epoll" is not available as an iobroker method.
Please use one of the other options.
I'm going to have to run some Solaris tests. I'll get back as soon as I can.
sainudani
Posts: 28
Joined: Mon Sep 05, 2016 8:59 pm

Re: Nagios 4.1.1 too many zombie process and 100% cpu usage

Post by sainudani »

CLIENT_REMEMBER_OPTIONS is defined in mysql_com.h. It looks like you don't have the mysql headers and libraries installed, or ./configure couldn't find them. Check config.log and look for "mysql".

I could find CLIENT_REMEMBER_OPTIONS commented out in /opt/coolstack/mysql_32bit/include/mysql/mysql_com.h
Also got below logs in config.log file while grepping for 'mysql'.


bash-3.2# grep mysql config.log
configure:6088: checking for mysql_config
configure:6106: found /usr/sfw/bin/mysql_config
configure:6118: result: /usr/sfw/bin/mysql_config
configure:6145: checking for mysql_init in -lmysqlclient
configure:6170: gcc -o conftest -g -O2 -I/usr/sfw/include/mysql conftest.c -lmysqlclient -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm >&5
configure:6316: gcc -o conftest -g -O2 -I/usr/sfw/include/mysql conftest.c >&5
configure:6316: gcc -o conftest -g -O2 -I/usr/sfw/include/mysql conftest.c -lsystemd >&5
configure:6316: gcc -o conftest -g -O2 -I/usr/sfw/include/mysql conftest.c -lsystemd-daemon >&5
ac_cv_lib_mysqlclient_mysql_init=yes
ac_cv_path_np_mysql_config=/usr/sfw/bin/mysql_config
CFLAGS='-g -O2 -I/usr/sfw/include/mysql'
DBLIBS=' -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm'
np_mysql_config='/usr/sfw/bin/mysql_config'

What does it mean.Any idea?


" It looks like you don't have the mysql headers and libraries installed, or ./configure couldn't find them."
How can I fix this?

Thanks,
Locked