From 2889ce6fb67faa7b79ca4fc0a7b53afa2047f77c Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Mon, 26 Oct 2020 17:02:21 +0100 Subject: [PATCH] Addingd/p/check_qnap_health/fix_strPart --- debian/patches/check_qnap_health/fix_strPart | 20 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 debian/patches/check_qnap_health/fix_strPart 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