[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 01/13: Add debian/patches/check_smstools/operator_siglvl, thanks ZyanKLee
Bernd Zeimetz
bernd at bzed.de
Tue Jan 3 13:12:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
bzed pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.
commit 2cd71af5dba41d0e38c1b89b99e277fe480f567a
Author: Jan Wagner <waja at cyconet.org>
Date: Mon Dec 5 00:39:29 2016 +0100
Add debian/patches/check_smstools/operator_siglvl, thanks ZyanKLee
---
debian/patches/check_smstools/operator_siglvl | 32 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/check_smstools/operator_siglvl b/debian/patches/check_smstools/operator_siglvl
new file mode 100644
index 0000000..a78d115
--- /dev/null
+++ b/debian/patches/check_smstools/operator_siglvl
@@ -0,0 +1,32 @@
+From 75a6f801a18961b1abd169046a105813da6c3424 Mon Sep 17 00:00:00 2001
+From: ZyanKLee <zyanklee at gmail.com>
+Date: Thu, 28 Apr 2016 12:51:42 +0200
+Subject: [PATCH] operator string, siglvl
+
+operator string has a " at the end, too - removing it
+siglvl at our modem is 31.99 - but still works
+---
+ check_smstools/bin/check_smstools | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/check_smstools/bin/check_smstools b/check_smstools/bin/check_smstools
+index a7a0336..a0adcf6 100755
+--- a/check_smstools/bin/check_smstools
++++ b/check_smstools/bin/check_smstools
+@@ -169,6 +169,7 @@ sub process_statusfile {
+ if ($result{'cmd'} =~ /$operator_command/) {
+ $operator = $result{'answer'};
+ $operator =~ s/0,0,"//g;
++ $operator =~ s/"$//g;
+ }
+ }
+ # No need to parse the rest of the file, if signal
+@@ -196,7 +197,7 @@ sub check_signal {
+ $np->nagios_die("Unable to determine the modem signal strength.");
+ }
+
+- if (($siglvl < 0) or ($siglvl > 31)) {
++ if (($siglvl < 0) or ($siglvl > 32)) {
+ $np->nagios_die("Unable to determine the modem signal strength.");
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index b3c457c..89706c0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -33,6 +33,7 @@ check_rbl/spelling_errors
check_rbl/disable_dul.ru
check_rbl/additional_rbls
check_smstools/monitoring-plugin
+check_smstools/operator_siglvl
check_snmp_time/epn
check_varnish/automake_foreign
check_varnish/support-for-varnish-4
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git
More information about the Pkg-nagios-changes
mailing list