Addingd/p/check_qnap_health/fix_strPart
This commit is contained in:
parent
51da819380
commit
2889ce6fb6
20
debian/patches/check_qnap_health/fix_strPart
vendored
Normal file
20
debian/patches/check_qnap_health/fix_strPart
vendored
Normal 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"
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -11,3 +11,4 @@ check_sieve/MonitoringPlugin
|
|||
check_sieve/BareWord
|
||||
check_tftp/epn
|
||||
check_tomcat/epn
|
||||
check_qnap_health/fix_strPart
|
||||
|
|
Loading…
Reference in a new issue