Re: [Bacula-users] Bacula Nagios Plugin
2010-02-16 07:49:51
On Tuesday 16 February 2010 14:02:56 Arno Lehmann wrote:
> Hi,
>
> 16.02.2010 12:49, Silver Salonen wrote:
> > On Wednesday 03 February 2010 10:35:22 Arno Lehmann wrote:
> >> You find it in the example subtree of the source code - I would
> >> recommend to use 5.0 source to built it, since it's included in the
> >> ./configure routine, which makes creating it much easier... just
> >> ./configure with --enable-client-only, change to src/libs, 'make',
> >> change to the Nagios plugin directory examples/nagios/check_bacula and
> >> 'make' again.
> >
> > I tried building it like that on FreeBSD, but I get errors below. I have
> > bacula 5.0.0 installed on that server.
>
> Hmm. I never tried it with anything except the SUSE system's I'm
> running in production :-)
>
> > Compiling check_bacula.c
> > check_bacula.c: In function 'int docmd(monitoritem*, const char*, char*)':
> > check_bacula.c:273: warning: deprecated conversion from string constant to
> > 'char*'
> > check_bacula.c:285: warning: deprecated conversion from string constant to
> > 'char*'
> > check_bacula.c:290: warning: deprecated conversion from string constant to
> > 'char*'
> > check_bacula.c:295: warning: deprecated conversion from string constant to
> > 'char*'
> > Compiling authenticate.c
> > /usr/ports/sysutils/bacula-server/work/bacula-5.0.0/libtool --silent --
tag=CXX
> > --mode=link /usr/bin/g++ -L../../../src/lib -o check_bacula
check_bacula.o
> > authenticate.o -lbac -lm -lpthread -lssl -lcrypto
> > check_bacula.o(.text+0x56e): In function `usage':
> > /usr/ports/sysutils/bacula-
> > server/work/bacula-5.0.0/examples/nagios/check_bacula/check_bacula.c:58:
> > undefined reference to `libintl_gettext'
> > check_bacula.o(.text+0x61e): In function `main':
> > /usr/ports/sysutils/bacula-
> > server/work/bacula-5.0.0/examples/nagios/check_bacula/check_bacula.c:110:
> > undefined reference to `libintl_textdomain'
> > *** Error code 1
>
> Looks like the i18n stuff isn't available on your build system.
>
> You could try ./configure'ing with --without-libintl-prefix or use
> --with-libintl-prefix[=DIR] to point it where the i18n stuff is installed.
That fixed it :)
./configure --with-libintl-prefix=/usr/local/lib --enable-client-only
--
Silver
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|