[Pkg-nagios-changes] [pkg-nagios-plugins] 280/413: don't return 0 with UNKOWN
Jan Wagner
waja at moszumanska.debian.org
Tue Nov 26 23:13:32 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 d91bc94fc41ba5d65c080befbd58ce5eb9ca5693
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Sep 7 09:08:26 2011 +0000
don't return 0 with UNKOWN
---
debian/patches/15_check_sensors_fault.dpatch | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/patches/15_check_sensors_fault.dpatch b/debian/patches/15_check_sensors_fault.dpatch
index b1f97b1..143e467 100755
--- a/debian/patches/15_check_sensors_fault.dpatch
+++ b/debian/patches/15_check_sensors_fault.dpatch
@@ -6,7 +6,7 @@
@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-05-17 22:17:38.000000000 +0200
++++ nagios-plugins-1.4.15/plugins-scripts/check_sensors.sh 2011-09-07 11:05:26.000000000 +0200
@@ -10,7 +10,7 @@
@@ -16,15 +16,16 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
}
print_help() {
-@@ -57,6 +57,13 @@
+@@ -57,6 +57,14 @@
if echo ${sensordata} | egrep ALARM > /dev/null; then
echo SENSOR CRITICAL - Sensor alarm detected!
exit 2
+ elif echo ${sensordata} | egrep FAULT > /dev/null; then
-+ echo SENSOR UNKNOWN - Sensor reported fault
+ 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
--
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