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. 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 Stop in /usr/ports/sysutils/bacula- server/work/bacula-5.0.0/examples/nagios/check_bacula. -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users