]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/disk-changer.in
Add new nagios_plugin_check_bacula.tgz from
[bacula/bacula] / bacula / scripts / disk-changer.in
index 208bc95553ddf88e7fddd46830d0614b17cc9647..59ddd4a1052c04a882de97cfc2a1e4e0d481fb5d 100644 (file)
@@ -4,7 +4,7 @@
 #
 #  Written by Kern Sibbald
 #
-#  Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
+#  Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
 #
 #  The main author of Bacula is Kern Sibbald, with contributions from
 #  many others, a complete list can be found in the file AUTHORS.
@@ -23,7 +23,7 @@
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 #  02110-1301, USA.
 #
-#  Bacula® is a registered trademark of John Walker.
+#  Bacula® is a registered trademark of Kern Sibbald.
 #  The licensor of Bacula is the Free Software Foundation Europe
 #  (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
 #  Switzerland, email:ftf@fsfeurope.org.
@@ -223,6 +223,11 @@ case $cmd in
         fi
         i=`expr $i + 1`
       done
+      # check if slot exists
+      if [ ! -f $dir/slot${slot} ] ; then
+        echo "source Element Address $slot is Empty"
+        exit 1
+      fi
       if [ -f $dir/loaded${drive} ]; then
         ld=`cat $dir/loaded${drive}`
       else