Monday, 26 November 2012

Error in loading Groundwork broker module

Error: Could not load module '/usr/local/groundwork/common/lib/libbronx.so' -> libmcrypt.so.4: cannot open shared object file: No such file or directory

To resolve this problem install below packages on the collector
libmcrypt-devel-2.5.8-4.el5
libmcrypt-2.5.8-4.el5

Error: Could not load module '/usr/local/groundwork/common/lib/libbronx.so' ->
/usr/local/groundwork/nagios/var/checkresults/nebmodOcIB3t: undefined symbol: write_to_logs_and_console


To resolve this issue modify nagios source code as shown below
diff -Bb /root/nagios/base/logging.c modified_logging.c
106c106
< static void write_to_logs_and_console(char *buffer, unsigned long data_type, int display) {
---
> int write_to_logs_and_console(char *buffer, unsigned long data_type, int display) {

diff -bB /root/nagios/include/logging.h modified_logging.h
3a4
> #include "compat.h"
65c66
<
---
> NAGIOS_BEGIN_DECL
72a74
> int write_to_logs_and_console(char *,unsigned long,int);      /* writes a string to screen and logs */
85a88
> NAGIOS_END_DECL

No comments:

Post a Comment