From 45c2d4b69f5b0d698a631e41609931643fed177b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Fri, 3 Oct 2014 12:04:31 +0200 Subject: [PATCH] Added doc for status and verbose string methods --- check_lsi_raid | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/check_lsi_raid b/check_lsi_raid index a011993..afdb133 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -1010,6 +1010,13 @@ sub checkThreshs{ return 1; } +# Get the status string as plugin output +# @param level The desired level to get the status string for. Either 'Warning' +# or 'Critical'. +# @param statusLevel_a The status level array, elem 0 is the current status, +# elem 1 the warning sensors, elem 2 the critical sensors, elem 3 the verbose +# information for the sensors, elem 4 the used storcli commands. +# @return The created status string sub getStatusString{ my $level = shift; my @statusLevel_a = @{(shift)}; @@ -1066,6 +1073,16 @@ sub getStatusString{ return $status_str; } +# Get the verbose string if a higher verbose level is used +# @param statusLevel_a The status level array, elem 0 is the current status, +# elem 1 the warning sensors, elem 2 the critical sensors, elem 3 the verbose +# information for the sensors, elem 4 the used storcli commands. +# @param LDDevicesToCheck LDs parsed by getLogicalDevices +# @param LDInitToCheck LDs parsed by getLogicalDevices init +# @param PDDevicesToCheck PDs parsed by getPhysicalDevices +# @param PDInitToCheck PDs parsed by getPhysicalDevices init +# @param PDRebuildToCheck PDs parsed by getPhysicalDevices rebuild +# @return The created verbosity string sub getVerboseString{ my @statusLevel_a = @{(shift)}; my @LDDevicesToCheck = @{(shift)};