I upgraded from NagiosXI 5.6.14 to 5.7.2. The upgrade process appeared to go smoothly, but now the monitoring engine will not start. When attempting to start the monitoring engine from the GUI, the following message is received in /usr/local/nagios/var/nagios.log:
[1599144162] Nagios 4.4.6 starting... (PID=29212)
[1599144162] Local time is Thu Sep 03 14:42:42 UTC 2020
[1599144162] LOG VERSION: 2.0
[1599144162] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1599144162] qh: core query handler registered
[1599144162] qh: echo service query handler registered
[1599144162] qh: help for the query handler registered
[1599144162] wproc: Successfully registered manager as @wproc with query handler
[1599144162] wproc: Registry request: name=Core Worker 29215;pid=29215
[1599144162] wproc: Registry request: name=Core Worker 29213;pid=29213
[1599144162] wproc: Registry request: name=Core Worker 29216;pid=29216
[1599144162] wproc: Registry request: name=Core Worker 29214;pid=29214
[1599144162] Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> /usr/local/nagios/bin/ndomod.o: cannot open shared object file: No such file or directory
[1599144162] Error: Failed to load module '/usr/local/nagios/bin/ndomod.o'.
[1599144162] Error: Module loading failed. Aborting.
/usr/local/nagios/bin contents:
drwxr-xr-x 2 root root 4096 Sep 3 13:15 .
drwxr-xr-x 8 root root 4096 Sep 27 2018 ..
-rwxrwxr-- 1 nagios nagios 693376 Jul 16 21:39 nagios
-rwxrwxr-- 1 nagios nagios 36960 Jul 16 21:39 nagiostats
-rwxr-xr-x 1 root root 736440 Jul 16 21:40 ndo.so
-rwxr-xr-x 1 root root 1083 Jul 16 21:40 ndo-startup-hash.sh
-rwxr-xr-- 1 nagios nagios 26400 Jul 16 21:40 npcd
-rwxr-xr-- 1 nagios nagios 13024 Jul 16 21:40 npcdmod.o
-rwxr-xr-x 1 root root 195822 Jul 16 21:42 nrpe
-rwxr-xr-x 1 root root 10627 Jul 16 21:42 nrpe-uninstall
-rwxr-xr-x 1 root root 118709 Jul 16 21:42 nsca
When I try to install the ndoutils package, I get the following:
# yum install ndoutils
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ndoutils.x86_64 0:1.5.2-1.el6 will be installed
--> Processing Dependency: nagios >= 3 for package: ndoutils-1.5.2-1.el6.x86_64
--> Running transaction check
---> Package nagios.x86_64 0:4.4.3-3.el6 will be installed
--> Processing Dependency: user(nagios) for package: nagios-4.4.3-3.el6.x86_64
--> Processing Dependency: user(nagios) for package: nagios-4.4.3-3.el6.x86_64
--> Processing Dependency: nagios-common for package: nagios-4.4.3-3.el6.x86_64
--> Processing Dependency: group(nagios) for package: nagios-4.4.3-3.el6.x86_64
--> Processing Dependency: group(nagios) for package: nagios-4.4.3-3.el6.x86_64
--> Running transaction check
---> Package nagios-common.x86_64 0:4.4.3-3.el6 will be installed
--> Processing Conflict: nagiosxi-5.7.2-2.el6.x86_64 conflicts nagios
--> Processing Conflict: nagiosxi-5.7.2-2.el6.x86_64 conflicts ndoutils
--> Processing Conflict: nagiosxi-nagioscore-5.7.2-2.el6.x86_64 conflicts nagios
--> Processing Conflict: nagiosxi-ndoutils-5.7.2-2.el6.x86_64 conflicts ndoutils
--> Finished Dependency Resolution
Error: nagiosxi-nagioscore conflicts with nagios-4.4.3-3.el6.x86_64
Error: nagiosxi-ndoutils conflicts with ndoutils-1.5.2-1.el6.x86_64
Error: nagiosxi conflicts with ndoutils-1.5.2-1.el6.x86_64
Error: nagiosxi conflicts with nagios-4.4.3-3.el6.x86_64
NagiosXI is running on CentOS 6.10
Thank you for your time.
Monitoring Engine is not starting after upgrade to 5.7.2
Re: Monitoring Engine is not starting after upgrade to 5.7.2
I made the following change within /usr/local/nagios/etc/nagios.cfg and the monitoring engine finally started.
#broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg^M
broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
Although it has started, is this the correct fix?
#broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg^M
broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
Although it has started, is this the correct fix?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Monitoring Engine is not starting after upgrade to 5.7.2
Hi,
You wouldn't need to install ndoutils ( the old broker module ) unless you want to use the older version. The older version is loaded by the following line in nagios.cfg, make sure this one is commented out.
After you made that change, is everything functioning as you would expect?
Yeah, there is a new backend database application in 5.7.x that is loaded as a broker module by that configuration statement. However, this should have been taken care of by the install scripts. Did you notice any error messages during the upgrade?Although it has started, is this the correct fix?
You wouldn't need to install ndoutils ( the old broker module ) unless you want to use the older version. The older version is loaded by the following line in nagios.cfg, make sure this one is commented out.
Code: Select all
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring Engine is not starting after upgrade to 5.7.2
Everything appears to be working now after making the change to /usr/local/nagios/etc/nagios.cfg. Just upgraded to 5.7.3 this morning and still good.
When I installed this on our test Nagios server I did it with the sudo command and encountered the issues with the monitoring engine not starting. On our operational instance I installed as root and never saw issues.
When I installed this on our test Nagios server I did it with the sudo command and encountered the issues with the monitoring engine not starting. On our operational instance I installed as root and never saw issues.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitoring Engine is not starting after upgrade to 5.7.2
Glad to hear this is all sorted and working!dhatha03 wrote:Everything appears to be working now after making the change to /usr/local/nagios/etc/nagios.cfg. Just upgraded to 5.7.3 this morning and still good.
When I installed this on our test Nagios server I did it with the sudo command and encountered the issues with the monitoring engine not starting. On our operational instance I installed as root and never saw issues.
Locking thread