Page 1 of 1

Error after upgrading to 5.7.2

Posted: Mon Aug 24, 2020 10:31 am
by dbcummings
Hello,

I installed the 5.7.2 upgrade after getting a fix for the offline upgrade script. However, I am now getting this error prevent Nagios from starting.

[1598282619] wproc: Registry request: name=Core Worker 2973;pid=2973
[1598282619] wproc: Registry request: name=Core Worker 2968;pid=2968
[1598282619] wproc: Registry request: name=Core Worker 2969;pid=2969
[1598282619] wproc: Registry request: name=Core Worker 2972;pid=2972
[1598282619] mod_gearman: initialized version 3.0.7 (libgearman 0.33)
[1598282619] Event broker module '/usr/lib64/mod_gearman/mod_gearman_nagios4.o' initialized successfully.
[1598282619] 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
[1598282619] Error: Failed to load module '/usr/local/nagios/bin/ndomod.o'.
[1598282619] Error: Module loading failed. Aborting.
[1598282619] Event broker module '/usr/lib64/mod_gearman/mod_gearman_nagios4.o' deinitialized successfully.
[1598282770] Nagios 4.4.6 starting... (PID=4404)
[1598282770] Local time is Mon Aug 24 11:26:10 EDT 2020
[1598282770] LOG VERSION: 2.0
[1598282770] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1598282770] qh: core query handler registered
[1598282770] qh: echo service query handler registered
[1598282770] qh: help for the query handler registered
[1598282770] wproc: Successfully registered manager as @wproc with query handler
[1598282770] wproc: Registry request: name=Core Worker 4405;pid=4405
[1598282770] wproc: Registry request: name=Core Worker 4409;pid=4409
[1598282770] wproc: Registry request: name=Core Worker 4406;pid=4406
[1598282770] wproc: Registry request: name=Core Worker 4410;pid=4410
[1598282770] wproc: Registry request: name=Core Worker 4407;pid=4407
[1598282770] wproc: Registry request: name=Core Worker 4408;pid=4408
[1598282770] mod_gearman: initialized version 3.0.7 (libgearman 0.33)
[1598282770] Event broker module '/usr/lib64/mod_gearman/mod_gearman_nagios4.o' initialized successfully.
[1598282770] 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
[1598282770] Error: Failed to load module '/usr/local/nagios/bin/ndomod.o'.
[1598282770] Error: Module loading failed. Aborting.
[1598282770] Event broker module '/usr/lib64/mod_gearman/mod_gearman_nagios4.o' deinitialized successfully.

Re: Error after upgrading to 5.7.2

Posted: Mon Aug 24, 2020 10:45 am
by dbcummings
Ok. I made this change and Nagios started.

nagios.cfg

#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

any other changes I should make?
can we get an updated upgrade script that does this with a manual update?

Re: Error after upgrading to 5.7.2

Posted: Tue Aug 25, 2020 10:56 am
by scottwilkerson
dbcummings wrote:Ok. I made this change and Nagios started.

nagios.cfg

#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

any other changes I should make?
can we get an updated upgrade script that does this with a manual update?
It is odd that yours didn't change, this was supposed to happen in the upgrade script