Error: Failed to load module '/opt/omd/versions/1.6.0p24.cre

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kaushalshriyan
Posts: 119
Joined: Fri May 22, 2015 7:12 am

Error: Failed to load module '/opt/omd/versions/1.6.0p24.cre

Post by kaushalshriyan »

Hi,

I am running thruk 2.42.2 on CentOS Linux release 8.3.2011. The details are as below.

#rpm -qa | grep thruk
thruk-plugin-reporting-2.42.2-10942.1.x86_64
libthruk-2.40-0.x86_64
thruk-2.42.2-10942.1.x86_64
thruk-base-2.42.2-10942.1.x86_64

#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

I have enabled broker_module in /usr/local/nagios/etc/nagios.cfg. while restarting nagios service I am encountering the Error: Failed to load module. Details are as below.

broker_module=/opt/omd/versions/1.6.0p24.cre/lib/mk-livestatus/livestatus.o /var/tmp/live.sock

#systemctl status nagios
● nagios.service - Nagios Core 4.4.6
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2021-05-18 18:55:13 UTC; 13s ago
Docs: https://www.nagios.org/documentation
Process: 199255 ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 199245 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 199244 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 199247 (code=exited, status=1/FAILURE)

May 18 18:55:11 nagios nagios[199247]: wproc: Successfully registered manager as @wproc with query handler
May 18 18:55:11 nagios nagios[199247]: wproc: Registry request: name=Core Worker 199250;pid=199250
May 18 18:55:11 nagios nagios[199247]: wproc: Registry request: name=Core Worker 199249;pid=199249
May 18 18:55:11 nagios nagios[199247]: wproc: Registry request: name=Core Worker 199251;pid=199251
May 18 18:55:11 nagios nagios[199247]: wproc: Registry request: name=Core Worker 199248;pid=199248
May 18 18:55:11 nagios nagios[199247]: Error: Could not load module '/opt/omd/versions/1.6.0p24.cre/lib/mk-livestatus/livestatus.o' -> /opt/omd/versions/1.6.0p24.cre/lib/mk-livestatus/livestatus.o: undef>
May 18 18:55:11 nagios nagios[199247]: Error: Failed to load module '/opt/omd/versions/1.6.0p24.cre/lib/mk-livestatus/livestatus.o'.
May 18 18:55:11 nagios nagios[199247]: Error: Module loading failed. Aborting.

May 18 18:55:11 nagios systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
May 18 18:55:13 nagios systemd[1]: nagios.service: Failed with result 'exit-code'.

Please guide. Thanks in Advance.

Best Regards,

Kaushal
Locked