From: Kern Sibbald Date: Wed, 19 Dec 2007 14:34:00 +0000 (+0000) Subject: Add Arnos prepare_for_check_bacula for compiling Bacula Nagios plugin X-Git-Tag: Release-7.0.0~5289 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e196c152e10cffabffec5914c615674bd7ab3bd3;p=bacula%2Fbacula Add Arnos prepare_for_check_bacula for compiling Bacula Nagios plugin git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6072 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/examples/nagios/prepare_for_check_bacula b/bacula/examples/nagios/prepare_for_check_bacula new file mode 100755 index 0000000000..2c342c57c4 --- /dev/null +++ b/bacula/examples/nagios/prepare_for_check_bacula @@ -0,0 +1,32 @@ +#!/bin/sh +# +# This script prepares the source for compiling check_bacula +# +# It's more or less untested, though. +# Submitted by Arno Lehmann +# + +# Save configure +mv -uiv configure configure.without_check_bacula + +# Modify ./configure +sed -e 's/\(ac_config_files=".*$PFILES\)"/\1 src\/check_bacula\/Makefile"/' -e 's/\(^ *# Handling of arguments.*$\)/\1\n "src\/check_bacula\/Makefile" ) CONFIG_FILES="$CONFIG_FILES src\/check_bacula\/Makefile" ;;/' configure.without_check_bacula > configure +chmod a+x configure + +# extract check_bacula source +tar xzCf src examples/nagios/nagios_plugin_check_bacula.tgz + +echo "Now you can run ./configure with your usual options. Afterwards, use +'make' to create your binaries. Then you can run 'make' in +src/check_bacula to create that program. + +If you encounter problems, you'll have to setup the Bacula source manually. +The original configure script has been saved to configure.without_check_bacula + +Note that check_bacula does not support TLS and is an unsupported add-on to +Bacula. Even if it's not part of the core Bacula programs, questions can be +asked at the bacula-users mailing list. + +Bacula is a Trademark of Kern Sibbald. Bacula and the accompanying programs +are open source. See the LICENSE file for more information. +"