bacula: Hard coded device name to tape alert command and forced smartctl exit status to 0

This commit is contained in:
Timo Mkinen 2013-05-13 20:48:59 +03:00
parent 35f585fd41
commit 1410f68590

View file

@ -7,6 +7,6 @@ Device {
AlwaysOpen = no; AlwaysOpen = no;
RemovableMedia = yes; RemovableMedia = yes;
RandomAccess = no; RandomAccess = no;
Alert Command = "sh -c 'tapeinfo -f %c | grep TapeAlert | cat'" Alert Command = "sh -c 'tapeinfo -f <%= @device %> | grep TapeAlert | cat'"
Alert Command = "sh -c 'smartctl -H -l error %c'" Alert Command = "sh -c 'smartctl -H -l error <%= @device %>' | cat"
} }