[op5-users] So, Merlin & Nagios @ FreeBSD!
Michael Friedrich
michael.friedrich at univie.ac.at
Fri Aug 7 09:04:38 CEST 2009
What tells
bt full
in gdb? Also, you may change the optimization flags to -O0 (0 Zero) to
see more values.
To really debug the module, you need to know how it's being called from
nagios (exact path). and then fire up
gdb nagios
run <nagios params with broker module>
Kind regards,
Michael
Patrik Båt wrote the following on 07.08.2009 00:17:
> [root at sauron /monitor/git/merlin]# gdb ./merlin.so
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "amd64-marcel-freebsd"...
> (gdb) run
> Starting program: /usr/monitor/git/merlin/merlin.so
> warning: shared library handler failed to enable breakpoint
>
> Program received signal SIGBUS, Bus error.
> 0x0000000000000006 in ?? ()
>
> -
> 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 Patrik Båt [Patrik.Bat at cypoint.se]
> Skickat: den 7 augusti 2009 00:15
> Till: op5-users at lists.op5.com
> Ämne: [op5-users] So, Merlin & Nagios @ FreeBSD!
>
> (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 ?
>
> 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
> 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
> CC net.o
> CC sql.o
> CC db_updater.o
> LINK merlind
>
>
> -
> 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
>
> _______________________________________________
> op5-users mailing list
> op5-users at lists.op5.com
> http://lists.op5.com/mailman/listinfo/op5-users
>
>
> _______________________________________________
> op5-users mailing list
> op5-users at lists.op5.com
> http://lists.op5.com/mailman/listinfo/op5-users
>
>
--
DI (FH) Michael Friedrich
michael.friedrich at univie.ac.at
Tel: +43 1 4277 14359
Vienna University Computer Center
Universitaetsstrasse 7
A-1010 Vienna, Austria
More information about the op5-users
mailing list