1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-22 15:33:43 +01:00

Merge pull request #2 from madrisan/master

RFC - check-netapp-ng.pl
This commit is contained in:
Ran Leibman 2014-01-16 10:58:44 -08:00
commit 26c068f69d

View File

@ -120,7 +120,7 @@ sub FSyntaxError($) {
PS - Power Supply Fail PS - Power Supply Fail
CPULOAD - CPU Load (-w -c) CPULOAD - CPU Load (-w -c)
NVRAM - NVram Battery Status NVRAM - NVram Battery Status
DISKUSED - Vol Usage Precentage (-w -c --vol) DISKUSED - Vol Usage Percentage (-w -c --vol)
SNAPSHOT - Snapshot Config (-e volname,volname2,volname3) SNAPSHOT - Snapshot Config (-e volname,volname2,volname3)
SHELF - Shelf Health SHELF - Shelf Health
NDMPSESSIONS - Number of ndmp sessions (-w -c) NDMPSESSIONS - Number of ndmp sessions (-w -c)
@ -368,7 +368,6 @@ if("$opt{'check_type'}" eq "TEMP") {
$shelf{'VoltUnderWarn'} = _get_oid_value($snmp_session,"$snmpEnclTableVoltUnderWarn.$oid"); $shelf{'VoltUnderWarn'} = _get_oid_value($snmp_session,"$snmpEnclTableVoltUnderWarn.$oid");
foreach my $subkey ( keys %shelf) { foreach my $subkey ( keys %shelf) {
print "$subkey\t$shelf{$subkey}\n";
if($shelf{$subkey}) { push(@shelf_err,"$addr $subkey,") } if($shelf{$subkey}) { push(@shelf_err,"$addr $subkey,") }
} }
if($#shelf_err != -1) { if($#shelf_err != -1) {