bacula: Added alert commands to tape device.
This commit is contained in:
parent
a53427e2d9
commit
29b5d1bd5c
2 changed files with 6 additions and 0 deletions
|
@ -408,6 +408,10 @@ class bacula::storage($password = undef) {
|
|||
define bacula::device($device, $media) {
|
||||
|
||||
include bacula::storage
|
||||
require smart
|
||||
package { "mtx":
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
file { "/etc/bacula/bacula-sd.d/${name}.conf":
|
||||
ensure => present,
|
||||
|
|
|
@ -7,4 +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'"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue