[op5-users] So, Merlin & Nagios @ FreeBSD!

Patrik Båt Patrik.Bat at cypoint.se
Fri Aug 7 10:47:08 CEST 2009


Ok, have the some problem with nagios 3.1.2 ... is there a way to enable debugging with the module ?
-
Sincerely,

Patrik Båt
UNIX System Administrator
_____________________________________________
Cypoint IT Services AB
Sehlstedtsgatan 9
SE-100 52 Stockholm
http://www.cypoint.se

Phone: +46 (0)8 545 87 300
Direct: +46 (0)8 545 87 326
Mobile: +46 (0)73 32 07 326
E-mail: patrik.bat at cypoint.se
________________________________________
Från: op5-users-bounces at lists.op5.com [op5-users-bounces at lists.op5.com] för Andreas Ericsson [ae at op5.se]
Skickat: den 7 augusti 2009 10:22
Till: Mailinglist for op5's products
Ämne: Re: [op5-users] So, Merlin & Nagios @ FreeBSD!

Patrik Båt wrote:
> (Merlin version is latest git)
>
> So, i'm stuck...
>
> [1249596369] Nagios 3.0.6 starting... (PID=50712)
> [1249596369] Local time is Fri Aug 07 00:06:09 CEST 2009
> [1249596369] LOG VERSION: 2.0
> [1249596369] Error: Module '/monitor/nagios/addons/merlin/merlin.so' is using an old or unspecified version of the event broker API.  Module will be unloaded.
> [1249596369] Event broker module '/monitor/nagios/addons/merlin/merlin.so' deinitialized successfully.
>
> is there any way to debug a broker module in nagios ?
>

Only by adding debugging statements to the module itself. This, however,
tells me you're running a too old version of Nagios. It might be possible
to replace certain headers and then get it to work, but that'll be an
exercise for you, I'm afraid. One of the tasks on my list for Nagios is
to create a nagios-devel package so that eventbroker modules can be built
against any set of headers. Right now, headers have to be shipped with
the module, and that can lead to issues like you see above.

> I have compiled merlin with the following statements, and the merlind seems to work just fine.
> gmake CPPFLAGS="-I/usr/local/include -L/usr/local/lib"
>
> [root at sauron /monitor/git/merlin]# gmake clean
> rm -f core core.[0-9]*
> rm -f ipc.{read,write}.bin *.log
> rm -f merlin.so merlind *.o blread endpoint
> [root at sauron /monitor/git/merlin]# gmake CPPFLAGS="-I/usr/local/include -L/usr/local/lib"
>     CC module.o
> module.c: In function 'mrm_ipc_write':
> module.c:138: warning: cast from pointer to integer of different size
> module.c: In function 'setup_host_hash_tables':
> module.c:178: warning: cast from pointer to integer of different size
> module.c:186: warning: cast to pointer from integer of different size
>     CC hooks.o
> hooks.c: In function 'get_selection':
> hooks.c:28: warning: cast from pointer to integer of different size
>     CC control.o
> control.c: In function 'create_host_lists':
> control.c:34: warning: cast from pointer to integer of different size
> control.c: In function 'create_service_lists':
> control.c:52: warning: cast from pointer to integer of different size


These are known issues. I'll work around them in due time.

>     CC hash.o
> sh gen-version.sh > version.c
>     CC version.o
>     CC logging.o
>     CC cfgfile.o
>     CC ipc.o
>     CC shared.o
>     CC io.o
>     CC protocol.o
>     CC data.o
>     LINK merlin.so
>     CC status.o
>     CC daemonize.o
>     CC daemon.o
> daemon.c: In function 'main':
> daemon.c:403: warning: null format string

This is a non-issue.

--
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
_______________________________________________
op5-users mailing list
op5-users at lists.op5.com
http://lists.op5.com/mailman/listinfo/op5-users




More information about the op5-users mailing list