[Pkg-nagios-changes] [pkg-monitoring-plugins] 03/03: Add patches/12_check_ups_perf_data_hresholds from upstream maint branch

Jan Wagner waja at moszumanska.debian.org
Sun Oct 4 11:09:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-monitoring-plugins.

commit 0d487449b91760e609286d672a9977e39d45459c
Author: Jan Wagner <waja at cyconet.org>
Date:   Sun Oct 4 12:44:56 2015 +0200

    Add patches/12_check_ups_perf_data_hresholds from upstream maint branch
---
 debian/patches/12_check_ups_perf_data_hresholds | 47 +++++++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 48 insertions(+)

diff --git a/debian/patches/12_check_ups_perf_data_hresholds b/debian/patches/12_check_ups_perf_data_hresholds
new file mode 100644
index 0000000..f98d730
--- /dev/null
+++ b/debian/patches/12_check_ups_perf_data_hresholds
@@ -0,0 +1,47 @@
+From 0b8041226446572eba0f82316716622f57d715e0 Mon Sep 17 00:00:00 2001
+From: Louis Sautier <sautier.louis at gmail.com>
+Date: Fri, 27 Mar 2015 13:16:42 +0100
+Subject: [PATCH] Fix incorrect performance data thresholds
+
+Closes #1330
+---
+ plugins/check_ups.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/plugins/check_ups.c b/plugins/check_ups.c
+index 099881d..fd8c2d1 100644
+--- a/plugins/check_ups.c
++++ b/plugins/check_ups.c
+@@ -242,8 +242,8 @@ main (int argc, char **argv)
+ 			}
+ 			xasprintf (&data, "%s %s", data,
+ 			          perfdata ("battery", (long)ups_battery_percent, "%",
+-			                    check_warn, (long)(1000*warning_value),
+-			                    check_crit, (long)(1000*critical_value),
++			                    check_warn, (long)(warning_value),
++			                    check_crit, (long)(critical_value),
+ 			                    TRUE, 0, TRUE, 100));
+ 		} else {
+ 			xasprintf (&data, "%s %s", data,
+@@ -271,8 +271,8 @@ main (int argc, char **argv)
+ 			}
+ 			xasprintf (&data, "%s %s", data,
+ 			          perfdata ("load", (long)ups_load_percent, "%",
+-			                    check_warn, (long)(1000*warning_value),
+-			                    check_crit, (long)(1000*critical_value),
++			                    check_warn, (long)(warning_value),
++			                    check_crit, (long)(critical_value),
+ 			                    TRUE, 0, TRUE, 100));
+ 		} else {
+ 			xasprintf (&data, "%s %s", data,
+@@ -308,8 +308,8 @@ main (int argc, char **argv)
+ 			}
+ 			xasprintf (&data, "%s %s", data,
+ 			          perfdata ("temp", (long)ups_temperature, tunits,
+-			                    check_warn, (long)(1000*warning_value),
+-			                    check_crit, (long)(1000*critical_value),
++			                    check_warn, (long)(warning_value),
++			                    check_crit, (long)(critical_value),
+ 			                    TRUE, 0, FALSE, 0));
+ 		} else {
+ 			xasprintf (&data, "%s %s", data,
diff --git a/debian/patches/series b/debian/patches/series
index 87197bc..9173e3a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 # commited upstream
 10_sslutils_checksslv3
 11_check_dhcp_parsing_option
+12_check_ups_perf_data_hresholds

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-monitoring-plugins.git



More information about the Pkg-nagios-changes mailing list