1
0
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:
Michal Švamberg 2014-08-26 11:18:21 +02:00
parent db31ad1080
commit 9e99d0c53e

View File

@ -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'});