Page 1 of 1

Nagios xi - service ndo2db: No such file or directory

Posted: Tue Jul 21, 2020 5:57 am
by hhnagiosxi
Current version of Nagios xi: xi-5.6.14

After CentOS yum updated, NagiosXI seems not working. I find that there are some components that stop running. I think there is missing ndo2db service after the yum update. May I know how to troubleshoot it? Many thanks.

Yum history output:
Scriptlet output:
1 warning: /etc/shadow created as /etc/shadow.rpmnew
2 warning: /usr/local/nagios/etc/nrpe.cfg created as /usr/local/nagios/etc/nrpe.cfg.rpmnew
3 warning: /usr/local/nagios/etc/ndo2db.cfg saved as /usr/local/nagios/etc/ndo2db.cfg.rpms
=======================================================================================
ndo2db service not found
[root@nagiosxi /]# service ndo2db restart
Redirecting to /bin/systemctl restart ndo2db.service
Failed to restart ndo2db.service: Unit not found.
=======================================================================================
ndo2db.cfg content

[root@nagiosxi etc]# cat ndo2db.cfg
#####################################################################
# NDO2DB DAEMON CONFIG FILE
#####################################################################


lock_file=/usr/local/nagios/var/ndo2db.lock

ndo2db_user=nagios
ndo2db_group=nagios

socket_type=unix

socket_name=/usr/local/nagios/var/ndo.sock

tcp_port=5668


db_servertype=mysql
db_host=hhmysql.hiphing.com.hk
db_port=3306

db_name=nagios
db_prefix=nagios_

db_user=nagios
db_pass=n@gweb

Re: Nagios xi - service ndo2db: No such file or directory

Posted: Tue Jul 21, 2020 4:50 pm
by cdienger
Reinstall ndo:

Code: Select all

cd /tmp
rm -rf nagiosxi/*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.14.tar.gz
tar -xzvf xi-5.6.14.tar.gz
cd nagiosxi/subcomponents/ndo
./install

Re: Nagios xi - service ndo2db: No such file or directory

Posted: Tue Jul 21, 2020 10:42 pm
by hhnagiosxi
Thanks for your great help. I just restall the subcomponents and resolve both errors of performance grapher and database backend. However, the monitoring engine seems still cannot be running. May I know how to resolve it?

[root@nagiosxi /]# service nagios status
nagios (pid 17693) is running...
[root@nagiosxi /]# service nagios restart
Stopping nagios: ..........................................................................................
Warning - nagios did not exit in a timely manner - Killing it!
Starting nagios: done.

Re: Nagios xi - service ndo2db: No such file or directory

Posted: Wed Jul 22, 2020 5:02 am
by hhnagiosxi
After reinstall ndo, database backend and performance grapher are running with no error, however, the monitoring engine is still not running. Please advise?

[jeffrey@nagiosxi /]$ systemctl status nagios.service
● nagios.service - Nagios Core 4.4.5
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor prese t: disabled)
Active: failed (Result: exit-code) since Wed 2020-07-22 09:50:06 HKT; 7h ago
Docs: https://www.nagios.org/documentation
Process: 26526 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 26524 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc /nagios.cfg (code=exited, status=254)
Process: 26522 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/ etc/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 24318 (code=exited, status=1/FAILURE)

Jul 22 09:50:06 nagiosxi nagios[26522]: Checking global event handlers...
Jul 22 09:50:06 nagiosxi nagios[26522]: Checking obsessive compulsive proces....
Jul 22 09:50:06 nagiosxi nagios[26522]: Checking misc settings...
Jul 22 09:50:06 nagiosxi nagios[26522]: Total Warnings: 37
Jul 22 09:50:06 nagiosxi nagios[26522]: Total Errors: 0
Jul 22 09:50:06 nagiosxi nagios[26522]: Things look okay - No serious proble...k
Jul 22 09:50:06 nagiosxi systemd[1]: nagios.service: control process exited...54
Jul 22 09:50:06 nagiosxi systemd[1]: Failed to start Nagios Core 4.4.5.
Jul 22 09:50:06 nagiosxi systemd[1]: Unit nagios.service entered failed state.
Jul 22 09:50:06 nagiosxi systemd[1]: nagios.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Re: Nagios xi - service ndo2db: No such file or directory

Posted: Wed Jul 22, 2020 1:18 pm
by cdienger
Try starting it with:

Code: Select all

/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
This will usually give us some more info to work with if it crashes.

Re: Nagios xi - service ndo2db: No such file or directory

Posted: Fri Jul 24, 2020 3:50 am
by hhnagiosxi
It seems running normally after I restored the snapshot. Many thanks.

Re: Nagios xi - service ndo2db: No such file or directory

Posted: Fri Jul 24, 2020 9:33 am
by scottwilkerson
hhnagiosxi wrote:It seems running normally after I restored the snapshot. Many thanks.
Great!

Locking thread