1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-05 07:43:40 +01:00

DISKSUMMARY - more information to performance data

Add values of total, active, spare and reconstructing disks to performance data.
This commit is contained in:
Michal Švamberg 2014-08-26 11:51:12 +02:00
parent 9e99d0c53e
commit f028b12248

View File

@ -669,7 +669,7 @@ if("$opt{'check_type'}" eq "TEMP") {
$stat = $ERRORS{'CRITICAL'}; $stat = $ERRORS{'CRITICAL'};
$msg = "CRIT: $opt{'check_type'} (".$diskMessage.") Disk Summary : Total->".$diskTotal." Active->".$diskActive." Spare->".$diskSpare." Failed ->".$diskFailed. " Reconstructing ->".$diskReconstructing; $msg = "CRIT: $opt{'check_type'} (".$diskMessage.") Disk Summary : Total->".$diskTotal." Active->".$diskActive." Spare->".$diskSpare." Failed ->".$diskFailed. " Reconstructing ->".$diskReconstructing;
} }
$perf = "faileddisks=$check"; $perf = "faileddisks=$check total=$diskTotal active=$diskActive spare=$diskSpare reconstructing=$diskReconstructing";
### HA ### ### HA ###
} elsif("$opt{'check_type'}" eq "HA") { } elsif("$opt{'check_type'}" eq "HA") {