[Pkg-nagios-changes] [pkg-nagios-plugins] 284/413: refresh 15_check_sensors_fault.dpatch from upstream
Jan Wagner
waja at moszumanska.debian.org
Tue Nov 26 23:13:33 UTC 2013
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins.
commit 4e419098e2026d66e68d24edac496924823872b3
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Sep 7 12:23:19 2011 +0000
refresh 15_check_sensors_fault.dpatch from upstream
---
debian/changelog | 4 +--
debian/patches/15_check_sensors_fault.dpatch | 45 ++++++++++++++++------------
2 files changed, 28 insertions(+), 21 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d81be4b..b1221ca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,8 @@ nagios-plugins (1.4.15-5) unstable; urgency=low
* Adding 16_check_raduis_fix_format-security.dpatch to fix error in
check_radius when compiling with -Werror=format-security (hardening),
thanks Thomas Guyot-Sionnesti - LP: #837085
- * Adding 15_check_sensors_fault.dpatch to detect sensors in FAULT state
- (Closes: #615133)
+ * Adding 15_check_sensors_fault.dpatch to detect sensors in FAULT state,
+ thank Holger Weiss (Closes: #615133)
* Remove empty /usr/include from nagios-plugins-basic, thanks Ferenc Wagner
(Closes: #630711)
diff --git a/debian/patches/15_check_sensors_fault.dpatch b/debian/patches/15_check_sensors_fault.dpatch
index 143e467..abbe726 100755
--- a/debian/patches/15_check_sensors_fault.dpatch
+++ b/debian/patches/15_check_sensors_fault.dpatch
@@ -1,33 +1,40 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
-## 15_check_sensors_fault.dpatch by Jan Wagner <waja at cyconet.org>
+## 15_check_sensors_fault.dpatch by Holger Weiss <holger at zedat.fu-berlin.de>
##
-## DP: Report UNKNOWN if sensor is faulty (fixing #615133)
+## From 276c5b98bf619eabd8b0bd5fc3ff60c0a59489a7 Mon Sep 17 00:00:00 2001
+## From: Holger Weiss <holger at zedat.fu-berlin.de>
+## Date: Wed, 7 Sep 2011 13:55:53 +0200
+## Subject: [PATCH] check_sensors: Detect FAULT status
+##
+## DP: Return an UNKNOWN status if a faulty sensor is detected. This can be
+## suppressed with the new "--ignore-fault" option.
@DPATCH@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nagios-plugins-1.4.15~/plugins-scripts/check_sensors.sh nagios-plugins-1.4.15/plugins-scripts/check_sensors.sh
---- nagios-plugins-1.4.15~/plugins-scripts/check_sensors.sh 2010-07-27 22:47:16.000000000 +0200
-+++ nagios-plugins-1.4.15/plugins-scripts/check_sensors.sh 2011-09-07 11:05:26.000000000 +0200
-@@ -10,7 +10,7 @@
+
+--- a/plugins-scripts/check_sensors.sh
++++ b/plugins-scripts/check_sensors.sh
+@@ -10,7 +10,7 @@ REVISION="@NP_VERSION@"
print_usage() {
- echo "Usage: $PROGNAME"
-+ echo "Usage: $PROGNAME [--ignore-fault]"
++ echo "Usage: $PROGNAME" [--ignore-fault]
}
print_help() {
-@@ -57,6 +57,14 @@
+@@ -57,9 +57,12 @@ case "$1" in
if echo ${sensordata} | egrep ALARM > /dev/null; then
echo SENSOR CRITICAL - Sensor alarm detected!
exit 2
-+ elif echo ${sensordata} | egrep FAULT > /dev/null; then
-+ if test "$1" != "-i" -a "$1" != "--ignore-fault"; then
-+ echo SENSOR UNKNOWN - Sensor reported fault
-+ exit 3
-+ else
-+ echo sensor ok
-+ exit 0
-+ fi
- else
- echo sensor ok
- exit 0
+- else
+- echo sensor ok
+- exit 0
++ elif echo ${sensordata} | egrep FAULT > /dev/null \
++ && test "$1" != "-i" -a "$1" != "--ignore-fault"; then
++ echo SENSOR UNKNOWN - Sensor reported fault
++ exit 3
+ fi
++ echo sensor ok
++ exit 0
+ ;;
+ esac
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git
More information about the Pkg-nagios-changes
mailing list