Search code examples
mysqlcentosmariadbnagiosnagiosxi

Storing data from Nagios into MariaDB using ndoutils-2.0.0


I am using ndoutils-2.0.0 for Storing Nagios data directory into MariaDB Database.

For this I am using the below URL :

http://linuxkarthik.blogspot.in/2011/02/how-to-install-ndoutils-on-centos.html

In my case MariaDB database and Nagios in on different Server.

After all installation and configuration when I restart my ndo2db and nagios service

systemctl restart ndo2db.service
systemctl restart nagios.service

I got the following Error on Nagios Logs

[1482310038] ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1482310038] 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...
[1482310038] Error: Function nebmodule_init() in module '/usr/local/nagios/bin/ndomod.o' returned an error.  Module will be unloaded.
[1482310038] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[1482310038] Error: Failed to load module '/usr/local/nagios/bin/ndomod.o'.
[1482310038] Error: Module loading failed. Aborting.

I added the following line into /usr/local/nagios/etc/nagios.cfg file

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg

Please help me to fix this issue.

I am using CentOS 7, Nagios Core 4.2.2, NDOUtils v2.0.0 and MariaDB-5.5.50.


Solution

  • All you need to do is upgrade your NDOUtils to version 2.1.0 in order to get it working!