From 1410f685904af89bab762d598a436f561d77983c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 13 May 2013 20:48:59 +0300 Subject: [PATCH] bacula: Hard coded device name to tape alert command and forced smartctl exit status to 0 --- bacula/templates/device.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/templates/device.conf.erb b/bacula/templates/device.conf.erb index eec5b4f..631caf0 100644 --- a/bacula/templates/device.conf.erb +++ b/bacula/templates/device.conf.erb @@ -7,6 +7,6 @@ Device { AlwaysOpen = no; RemovableMedia = yes; RandomAccess = no; - Alert Command = "sh -c 'tapeinfo -f %c | grep TapeAlert | cat'" - Alert Command = "sh -c 'smartctl -H -l error %c'" + Alert Command = "sh -c 'tapeinfo -f <%= @device %> | grep TapeAlert | cat'" + Alert Command = "sh -c 'smartctl -H -l error <%= @device %>' | cat" }