Addingd/p/check_qnap_health/fix_strPart

This commit is contained in:
Jan Wagner 2020-10-26 17:02:21 +01:00
parent 51da819380
commit 2889ce6fb6
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- a/check_qnap_health/check_qnap_health
+++ b/check_qnap_health/check_qnap_health
@@ -461,7 +461,7 @@
fi
# Disk IOPS ----------------------------------------------------------------------------------------------------------------------------------------------
-elif [ "$strpart" == "iops" ]; then
+elif [ "$strPart" == "iops" ]; then
IOPS=$(_snmpgetval 1.3.6.1.4.1.24681.1.4.1.11.5.6.2.1.3.1 | sed -E 's/"|\s%//g')
OUTPUT="IOPS="$IOPS"|IOPS="$IOPS";$strWarning;$strCritical;0;100"
@@ -478,7 +478,7 @@
fi
# Disk Latency ----------------------------------------------------------------------------------------------------------------------------------------------
-elif [ "$strpart" == "latency" ]; then
+elif [ "$strPart" == "latency" ]; then
LATENCY=$(_snmpgetval 1.3.6.1.4.1.24681.1.4.1.11.5.6.2.1.4.1 | sed -E 's/"|\s%//g')
OUTPUT="Latency="$LATENCY"|Latency="$LATENCY";$strWarning;$strCritical;0;100"

View file

@ -11,3 +11,4 @@ check_sieve/MonitoringPlugin
check_sieve/BareWord check_sieve/BareWord
check_tftp/epn check_tftp/epn
check_tomcat/epn check_tomcat/epn
check_qnap_health/fix_strPart