mirror of
https://github.com/ranl/monitor-utils.git
synced 2024-11-05 07:43:40 +01:00
DISKUSED - add warning when volume is missing
When volume isn't found, then change state to warning.
This commit is contained in:
parent
db31ad1080
commit
9e99d0c53e
@ -597,6 +597,10 @@ if("$opt{'check_type'}" eq "TEMP") {
|
||||
$perf = "$$r_vol_tbl{$key}=$used\k";
|
||||
}
|
||||
}
|
||||
if ($msg =~ /^$/) {
|
||||
$stat = $ERRORS{'WARNING'};
|
||||
$msg = "WARN: Missing volume $opt{'vol'} !";
|
||||
}
|
||||
### SNAPSHOT ###
|
||||
} elsif("$opt{'check_type'}" eq "SNAPSHOT") {
|
||||
my @exc_list = split(',',$opt{'exclude'});
|
||||
|
Loading…
Reference in New Issue
Block a user