Page 3 of 5

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

Posted: Thu Sep 29, 2016 1:28 pm
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?

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

Posted: Thu Sep 29, 2016 1:33 pm
by jfrickson
Also, try setting --with-iobroker=epoll.

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

Posted: Fri Sep 30, 2016 7:44 am
by amprantino
I had the same problem with version 4.1.1
It was fixed after 4.2.1 upgrade

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

Posted: Fri Sep 30, 2016 9:50 am
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.

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

Posted: Sat Oct 01, 2016 11:51 pm
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

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

Posted: Sat Oct 01, 2016 11:53 pm
by sainudani
@ amprantino ,

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

Thanks,

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

Posted: Sun Oct 02, 2016 12:00 am
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.

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

Posted: Mon Oct 03, 2016 8:59 am
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".

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

Posted: Mon Oct 03, 2016 9:19 am
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.

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

Posted: Wed Oct 05, 2016 1:41 am
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,