30.05.2011, 05:47 UTC+2

Sie sind nicht angemeldet.

Module idomod.o is not loaded

amaze646

Anfänger

Beiträge: 9

Anzahl Nagios-Server: 1

Nagios-Version(en): icinga-1.0.2

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1

Anzahl Services: 5

Betriebssystem(e): Freebsd 7

Plugin-Version(en): icinga-web-1.0.1

NDO-Version: 1

1

26.05.2011, 23:25

Module idomod.o is not loaded

Hello

Today I installed icinga 1.3.1 and icinga-web 1.3.1. I instaled IDOUtils. I did everything as it says in manual. It all works fine but I can't see no host in icinga-web interface. So I checked my icinga (IDOUtil) database and it is empty. There are no records in this database. Database is sucsessfuly created but empty. So I guess no host is defined as database is source. So I checked icinga.log and saw error that is saying this:


Error: Module '/usr/local/icinga/bin/idomod.o' is using an old or unspecified version of the event broker API. Module will be unloaded.
Event broker module '/usr/local/icinga/bin/idomod.o' deinitialized successfully.

So I checked in icinga.cfg and broker_module is uncommented as it says in manual. It looks like this:
broker_module=/usr/local/icinga/bin/idomod.o config_file=/usr/local/icinga/etc/idomod.cfg


I checked path for idomod.o and it is there. idomod.cfg is also therel

I searched all around but I cant find anwser. Can someone please help me out? This is driving me crazy :)

best regards,
Igor

Wolfgang

Erleuchteter

Beiträge: 5 397

Geschlecht: Männlich

Anzahl Nagios-Server: 2

Nagios-Version(en): 3.2.1

Icinga-Version(en): Icinga 1.0.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: >70

Anzahl Services: >200

Betriebssystem(e): SLES10

Plugin-Version(en): 1.4.11

Sonstige Addon's: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6

2

27.05.2011, 07:52

You may have been missing the hint to CPPFLAGS. The person who contributed the quickstart guide for FreeBSD had the same problem. Excerpt:

Zitat

Run the Icinga configure script. You will get help by using the --help flag.

#> ./configure --with-command-group=icinga-cmd \
--enable-idoutils CPPFLAGS=-I/usr/local/include \
--with-dbi-lib=/usr/local/lib --with-dbi-inc=/usr/local/include

Important

Appending CPPFLAGS=-I/usr/local/include is important for the IDOUtils and the broker modul respectively.
You may have a look at https://nagios-portal.org/wbb/index.p…d&postID=142445 as well.
Nagios-Doc: Wiki-Format (3.x) oder als (3.0.6)

Icinga-Doc: (de) (en)

PNP-Troubleshooting (de) (en)

amaze646

Anfänger

Beiträge: 9

Anzahl Nagios-Server: 1

Nagios-Version(en): icinga-1.0.2

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1

Anzahl Services: 5

Betriebssystem(e): Freebsd 7

Plugin-Version(en): icinga-web-1.0.1

NDO-Version: 1

3

27.05.2011, 09:38

Hello Wolfgang

tnx for the anwser. I tryed to reinstall the whole thing again with the suggestion that you gave me. I configured icinga as you suggeted. I still get the same error:

[1306481807] Error: Module '/usr/local/icinga/bin/idomod.o' is using an old or unspecified version of the event broker API. Module will be unloaded.
[1306481807] Event broker module '/usr/local/icinga/bin/idomod.o' deinitialized successfully.

Database is still empty and there are no default host defined in icinga-web (0up, 0down), I guess localhost should be visible at the first usage.

Thank you for your anwser

dnsmichi

Meister

Beiträge: 2 121

Geburtstag: 30.05.1983 (28)

Geschlecht: Männlich

Wohnort: Wien

Beruf: DNS & Monitoring Developer

Anzahl Nagios-Server: 3x Icinga prod, 2x test/dev

Nagios-Version(en): s/nagios/icinga/

Icinga-Version(en): 1.4.0 / GIT

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1000+

Anzahl Services: 15000+

Betriebssystem(e): RHEL 5.6 x64

Plugin-Version(en): 1.4.15

IDO-Version: 1.4.0 / GIT MySQL/Postgresql/Oracle

Sonstige Addon's: PNP 0.6.11, check_mk GIT

4

27.05.2011, 10:07

idomod is needed to be registered in order to allow the core dumping information onto ido2db/rdbms. so focus on the idomod loading problem. if your os really is freebsd, readup on the thread wolfgang pointed to, as freebsd has some different locations for ltdl includes to be used for dlopen of neb modules.
Icinga 1.4 MySQL,PGSQL,Oracle and IPv6

Demos

Docs http://docs.icinga.org
Wiki https://wiki.icinga.org

Dev Tracker https://dev.icinga.org

* egrep -v "^#|^$" configfile

Join us online!
irc.freenode.net #icinga-devel

Using Icinga? Tell us!

amaze646

Anfänger

Beiträge: 9

Anzahl Nagios-Server: 1

Nagios-Version(en): icinga-1.0.2

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1

Anzahl Services: 5

Betriebssystem(e): Freebsd 7

Plugin-Version(en): icinga-web-1.0.1

NDO-Version: 1

5

27.05.2011, 12:05

Thank you dnsmichi

Well I have Freebsd 8.2. I tryed to install exactly as in link which Wolfgang gave me.


But now I noticed that when I run command:


Source code

1
grep ltdl config.log




I get this result:



configure:5798: checking ltdl.h usability
configure:5798: checking ltdl.h presence
configure:5798: checking for ltdl.h
configure:5801: checking for lt_dlinit in -lltdl
configure:5826: gcc -o conftest -g -O2 -I/usr/local/include conftest.c -lltdl >&5
/usr/bin/ld: cannot find -lltdl
ac_cv_header_ltdl_h=yes
ac_cv_lib_ltdl_lt_dlinit=no




When I do

Source code

1
locate ltdl.h



I get:

Source code

1
/usr/local/include/ltdl.h/usr/local/share/libtool/libltdl/ltdl.h



Than I runed

Source code

1
locate libltdl
and get all the same results as were defined in link that Wolfgang gave me.


I have libltdl-2.4 installed


So I cleaned sorce 'make clean' and reconfigured with

Source code

1
2
3
./configure --with-command-group=icinga-cmd \
--enable-idoutils CPPFLAGS=-I/usr/local/include \
--with-dbi-lib=/usr/local/lib --with-dbi-inc=/usr/local/include




Then once again I did

Source code

1
grep ltdl config.log



and get the same result


configure:5798: checking ltdl.h usability
configure:5798: checking ltdl.h presence
configure:5798: checking for ltdl.h
configure:5801: checking for lt_dlinit in -lltdl
configure:5826: gcc -o conftest -g -O2 -I/usr/local/include conftest.c -lltdl >&5
/usr/bin/ld: cannot find -lltdl
ac_cv_header_ltdl_h=yes
ac_cv_lib_ltdl_lt_dlinit=no




and in icinga.log



[1306489441] Error: Module '/usr/local/icinga/bin/idomod.o' is using an old or unspecified version of the event broker API. Module will be unloaded.
[1306489441] Event broker module '/usr/local/icinga/bin/idomod.o' deinitialized successfully.

dnsmichi

Meister

Beiträge: 2 121

Geburtstag: 30.05.1983 (28)

Geschlecht: Männlich

Wohnort: Wien

Beruf: DNS & Monitoring Developer

Anzahl Nagios-Server: 3x Icinga prod, 2x test/dev

Nagios-Version(en): s/nagios/icinga/

Icinga-Version(en): 1.4.0 / GIT

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 1000+

Anzahl Services: 15000+

Betriebssystem(e): RHEL 5.6 x64

Plugin-Version(en): 1.4.15

IDO-Version: 1.4.0 / GIT MySQL/Postgresql/Oracle

Sonstige Addon's: PNP 0.6.11, check_mk GIT

6

27.05.2011, 18:34

it's not only the header include file but the library itsself where configure checks against an exported function to allow the linker to use that.
Icinga 1.4 MySQL,PGSQL,Oracle and IPv6

Demos

Docs http://docs.icinga.org
Wiki https://wiki.icinga.org

Dev Tracker https://dev.icinga.org

* egrep -v "^#|^$" configfile

Join us online!
irc.freenode.net #icinga-devel

Using Icinga? Tell us!

Ähnliche Themen