After updating Nagios Core from 4.1.1 to 4.2.4 lost hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RockerMan
Posts: 70
Joined: Fri Nov 01, 2013 12:16 am

After updating Nagios Core from 4.1.1 to 4.2.4 lost hosts

Post by RockerMan »

Hi

We have licensed Nagios XI, version 5.2.5. After updating Nagios Core from version 4.1.1 to version 4.2.4 lost all hosts and services in menu Services and Host Groups. Instead all hosts and services in remains one lokalhost and services.
I looked at the logs, error in module ndomod.o
-
[12-22-2016 09:39:35] Nagios 4.2.4 starting... (PID=7778)
[12-22-2016 09:38:21] Error: Module loading failed. Aborting.
[12-22-2016 09:38:21] Error: Failed to load module '/usr/local/nagios/bin/ndomod.o'.
[12-22-2016 09:38:21] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[12-22-2016 09:38:21] Error: Function nebmodule_init() in module '/usr/local/nagios/bin/ndomod.o' returned an error. Module will be unloaded.
[12-22-2016 09:38:21] ndomod: I've been compiled with support for revision 402 of the internal Nagios object structures, but the Nagios daemon is currently using revision 403. I'm going to unload so I don't cause any problems...
[12-22-2016 09:38:21] ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
-
I download ndoutils-2.1.2 from source. looked README and did what it says:
COMPILING INSTRUCTIONS

Code: Select all

tar xzf ndoutils-2.1.2.tar.gz
cd ndoutils-2.1.2
./configure
make all
INITIALIZING THE SQL DATABASE
data base nagios is already there, so once did

Code: Select all

cd db
./installdb -u root -p **** database nagios
then
INSTALLING THE NDOMOD BROKER MODULE

Code: Select all

cp src/ndomod-4x.o /usr/local/nagios/bin/ndomod.o
cp config/ndomod.cfg /usr/local/nagios/etc
Add a line in nagios.cfg

Code: Select all

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg 
event_broker_options=-1
INSTALLING THE NDO2DB DAEMON

Code: Select all

cp src/ndo2db-4x /usr/local/nagios/bin/ndo2db
cp config/ndo2db.cfg /usr/local/nagios/etc 
/etc/init.d/ndo2db restart
/etc/init.d/nagios restart
then i checked NagiosCore dashboard, monitoring still only lokalhost and services.

Tell me pls, where and what I missed in their actions?

Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: After updating Nagios Core from 4.1.1 to 4.2.4 lost host

Post by rkennedy »

At this point you will need to wait for the XI 5.4 release, as this takes into account NDO, and the updated Core version.
Former Nagios Employee
Locked