[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 08/16: check_httpd_status: only accept numeric uptime output
Jan Wagner
waja at moszumanska.debian.org
Mon Dec 5 09:45:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.
commit 5255d54a4b4f75d06e40b27613350293ceff97c9
Author: Evgeni Golov <evgeni at debian.org>
Date: Sun Dec 4 18:07:06 2016 +0100
check_httpd_status: only accept numeric uptime output
---
debian/patches/check_httpd_status/numeric-uptime | 13 +++++++++++++
debian/patches/series | 1 +
2 files changed, 14 insertions(+)
diff --git a/debian/patches/check_httpd_status/numeric-uptime b/debian/patches/check_httpd_status/numeric-uptime
new file mode 100644
index 0000000..ac88736
--- /dev/null
+++ b/debian/patches/check_httpd_status/numeric-uptime
@@ -0,0 +1,13 @@
+diff --git a/check_httpd_status/check_httpd_status b/check_httpd_status/check_httpd_status
+index bc5e809..687870a 100644
+--- a/check_httpd_status/check_httpd_status
++++ b/check_httpd_status/check_httpd_status
+@@ -235,7 +235,7 @@ logD("Web content :\n----------------------------\n".$webcontent."\n------------
+ my $patternFound = 0;
+
+ my $Uptime = 0;
+-if ( $webcontent =~ m/Uptime: (.*?)\n/) {
++if ( $webcontent =~ m/Uptime: (\d*?)\n/) {
+ $Uptime = $1;
+ $patternFound++;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 6052124..cd97cda 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,6 +11,7 @@ check_haproxy/epn
check_haproxy/monitoring-plugin
check_httpd_status/epn
check_httpd_status/monitoring-plugin
+check_httpd_status/numeric-uptime
check_imap_quota/syntax_error_fix
check_libs/lsof-speedup
check_libs/config_path
--
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