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
Nagios xi - service ndo2db: No such file or directory
-
hhnagiosxi
- Posts: 11
- Joined: Sun May 20, 2018 10:28 pm
Nagios xi - service ndo2db: No such file or directory
You do not have the required permissions to view the files attached to this post.
Re: Nagios xi - service ndo2db: No such file or directory
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
./installAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
hhnagiosxi
- Posts: 11
- Joined: Sun May 20, 2018 10:28 pm
Re: Nagios xi - service ndo2db: No such file or directory
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.
[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.
You do not have the required permissions to view the files attached to this post.
-
hhnagiosxi
- Posts: 11
- Joined: Sun May 20, 2018 10:28 pm
Re: Nagios xi - service ndo2db: No such file or directory
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.
[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
Try starting it with:
This will usually give us some more info to work with if it crashes.
Code: Select all
/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfgAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
hhnagiosxi
- Posts: 11
- Joined: Sun May 20, 2018 10:28 pm
Re: Nagios xi - service ndo2db: No such file or directory
It seems running normally after I restored the snapshot. Many thanks.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios xi - service ndo2db: No such file or directory
Great!hhnagiosxi wrote:It seems running normally after I restored the snapshot. Many thanks.
Locking thread