nagios_logentries causing problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: nagios_logentries causing problems

Post 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.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: nagios_logentries causing problems

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios_logentries causing problems

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: nagios_logentries causing problems

Post by chicjo01 »

Code: Select all

 service ndo2db status
ndo2db is not running but subsystem locked
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios_logentries causing problems

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: nagios_logentries causing problems

Post by chicjo01 »

Is this only a cosmetic impact or does it also have other impacts to the Nagios XI system?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios_logentries causing problems

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: nagios_logentries causing problems

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagios_logentries causing problems

Post 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...
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: nagios_logentries causing problems

Post 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.
Locked