diff --git a/debian/patches/check_qnap_health/fix_strPart b/debian/patches/check_qnap_health/fix_strPart new file mode 100644 index 0000000..eb937ca --- /dev/null +++ b/debian/patches/check_qnap_health/fix_strPart @@ -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" diff --git a/debian/patches/series b/debian/patches/series index eeb8151..fb9421a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -11,3 +11,4 @@ check_sieve/MonitoringPlugin check_sieve/BareWord check_tftp/epn check_tomcat/epn +check_qnap_health/fix_strPart