Page 3 of 4

Re: nagios_logentries causing problems

Posted: Mon Sep 19, 2016 12:50 pm
by chicjo01
Sorry for the delay,
I am in the process of doing the upgrade for Nagios Core and NDOUtils. Will let you know the results after it is completed and give it some time to test.

Re: nagios_logentries causing problems

Posted: Mon Sep 19, 2016 1:53 pm
by chicjo01
After installing the Nagios Core and Ndoutils on a non-production system. The Sysem Status shows the Database Backend is not running, but I have checked the process list, database, and logs and ndo2db is runnning and processing. Is this false alarm suppose to happen?
Capture.PNG

Code: Select all

ps -ef f | grep ndo2db
root      89302  45389  0 14:53 pts/0    S+     0:00  |       \_ grep --color=auto ndo2db
nagios    90673      1  0 13:57 ?        Ss     0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios    91119  90673  0 13:57 ?        S      0:05  \_ /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios    91120  91119  2 13:57 ?        S      1:36      \_ /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg

Re: nagios_logentries causing problems

Posted: Mon Sep 19, 2016 4:07 pm
by lmiltchev
I can see from the ps output that the ndo2db is running, but can you run the following command, and show the output anyway?

Code: Select all

service ndo2db status

Re: nagios_logentries causing problems

Posted: Tue Sep 20, 2016 8:40 am
by chicjo01

Code: Select all

 service ndo2db status
ndo2db is not running but subsystem locked

Re: nagios_logentries causing problems

Posted: Tue Sep 20, 2016 9:57 am
by lmiltchev
I was able to recreate the issue some time ago - just wanted to make sure you were getting the same output. Our developers have been made aware of the problem. I already filed an internal bug report (task_id=9434) on the issue.

Re: nagios_logentries causing problems

Posted: Tue Sep 20, 2016 10:01 am
by chicjo01
Is this only a cosmetic impact or does it also have other impacts to the Nagios XI system?

Re: nagios_logentries causing problems

Posted: Tue Sep 20, 2016 10:06 am
by lmiltchev
It does look like a "cosmetic" issue only, but I am pretty sure you could fix it by reinstalling NDO using the "--with-init-type=sysv" argument.

Re: nagios_logentries causing problems

Posted: Tue Sep 20, 2016 12:37 pm
by chicjo01
did a re-install with the option, but I am still getting the same results. Will work to deploy this out to the production server and will let you know if that helps the original problem.

Re: nagios_logentries causing problems

Posted: Tue Sep 20, 2016 1:23 pm
by lmiltchev
Will work to deploy this out to the production server and will let you know if that helps the original problem.
Let us know how it went.

FYI, the following steps worked for me:

Code: Select all

service nagios stop
service ndo2db stop
rm -rf /usr/local/nagios/var/nagios.lock /usr/local/nagios/var/ndo.sock
cd /tmp
rm -rf *
wget https://github.com/NagiosEnterprises/ndoutils/archive/maint.zip
unzip maint.zip
cd ndoutils-maint
./configure --with-init-type=sysv
make all
make install
make install-init
cd db
./upgradedb -d nagios -h localhost -u ndoutils -pn@gweb
service nagios stop
service ndo2db restart
service nagios start
[root@localhost db]# ps -ef | grep ndo | grep -v grep
nagios   20659     1  0 13:16 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   20697 20659  0 13:16 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   20698 20697  0 13:16 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
[root@localhost db]# service ndo2db status
Checking for ndo2db daemon...ndo2db (pid 20698 20697 20659) is running...

Re: nagios_logentries causing problems

Posted: Wed Sep 21, 2016 10:24 am
by chicjo01
FYI. After installing ndoutils-main or ndotils-2.1.1 on CentOS Linux release 7.2.1511 (Core). The service ndo2db stop, does not stop the service. I need to do a kill on the pid to get it to stop.

Still in the process of doing the upgrade of the production system.