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) {
|
define bacula::device($device, $media) {
|
||||||
|
|
||||||
include bacula::storage
|
include bacula::storage
|
||||||
|
require smart
|
||||||
|
package { "mtx":
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
file { "/etc/bacula/bacula-sd.d/${name}.conf":
|
file { "/etc/bacula/bacula-sd.d/${name}.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
|
|
@ -7,4 +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 'smartctl -H -l error %c'"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue