Page 1 of 1

can not load ndomod, error invalid ELF header

Posted: Fri Nov 07, 2014 4:42 am
by Rossonero224
Hi, i'm running nagios core Version 4.0.6 on centos 6.5
I download ndoutils 2.0.0 from here : http://sourceforge.net/projects/nagios/ ... ils-2.0.0/
Compile and make install without any error
I put the following configuration in nagios.conf
broker_module=/usr/local/nagios/bin/ndomod.o
broker_module=/usr/local/nagios/etc/ndomod.cfg
and restart nagios but caught this error
[1415347273] Error: Could not load module '/usr/local/nagios/etc/ndomod.cfg' -> /usr/local/nagios/etc/ndomod.cfg: invalid ELF header
[1415347273] Error: Failed to load module '/usr/local/nagios/etc/ndomod.cfg'.
[1415347273] ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1415347273] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1415347273] ndomod registered for contact data'
[1415347273] ndomod registered for contact notification data'
[1415347273] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1415347273] Error: Module loading failed. Aborting.
I try to google but seem no solution for it.
Can anyone help me to fix it.
Thanks

Re: can not load ndomod, error invalid ELF header

Posted: Fri Nov 07, 2014 11:51 am
by lmiltchev
Change these two lines in the nagios.cfg from this:

Code: Select all

broker_module=/usr/local/nagios/bin/ndomod.o
broker_module=/usr/local/nagios/etc/ndomod.cfg
to this:

Code: Select all

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

Code: Select all

service nagios restart
Did this fix your issue?

Re: can not load ndomod, error invalid ELF header

Posted: Sat Nov 08, 2014 8:44 am
by Rossonero224
I do following your instruction and nagios can load the modules successfull.
Thank you very much