can not load ndomod, error invalid ELF header

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
Rossonero224
Posts: 2
Joined: Thu May 29, 2014 9:24 pm

can not load ndomod, error invalid ELF header

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: can not load ndomod, error invalid ELF header

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Rossonero224
Posts: 2
Joined: Thu May 29, 2014 9:24 pm

Re: can not load ndomod, error invalid ELF header

Post by Rossonero224 »

I do following your instruction and nagios can load the modules successfull.
Thank you very much
Locked