summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2012-05-29 12:27:58 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2012-05-29 12:27:58 (GMT)
commit804e7d878cad5c76474fd2abf2130ff446dbda5d (patch)
treeb784baf092bf68cbf1a9139e6e522afbd4332283
parentaab6b8a16c9ec1dfe9d27f70cfbe19281153e306 (diff)
downloadmonitoring-plugins-804e7d878cad5c76474fd2abf2130ff446dbda5d.tar.gz
Mention the check_range function in NEWS, etc.
-rw-r--r--NEWS1
-rw-r--r--THANKS.in1
-rw-r--r--plugins-scripts/utils.sh.in6
3 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index fbc5c8b..a4a38d9 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ This file documents the major additions and syntax changes between releases.
11 New option to check_smtp to ignore failures when sending QUIT (#3358348 - Duncan Ferguson) 11 New option to check_smtp to ignore failures when sending QUIT (#3358348 - Duncan Ferguson)
12 New check_by_ssh -F option which allows for specifying an alternative ssh_config(5) file (#2895334 - Sven Nierlein) 12 New check_by_ssh -F option which allows for specifying an alternative ssh_config(5) file (#2895334 - Sven Nierlein)
13 check_sensors now detects faulty sensors unless --ignore-fault is specified (Jan Wagner) 13 check_sensors now detects faulty sensors unless --ignore-fault is specified (Jan Wagner)
14 utils.sh now provides a check_range function (Alex Griffin)
14 Updated Nagios::Plugin perl module 15 Updated Nagios::Plugin perl module
15 16
16 FIXES 17 FIXES
diff --git a/THANKS.in b/THANKS.in
index 0b82024..9a0521b 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -270,3 +270,4 @@ Stéphane Urbanovski
270Marco Beck 270Marco Beck
271Sebastian Harl 271Sebastian Harl
272Jason Lunn 272Jason Lunn
273Alex Griffin
diff --git a/plugins-scripts/utils.sh.in b/plugins-scripts/utils.sh.in
index d5013a6..5fae6ad 100644
--- a/plugins-scripts/utils.sh.in
+++ b/plugins-scripts/utils.sh.in
@@ -21,9 +21,10 @@ support() {
21 $ECHO "@SUPPORT@" | sed -e 's/\n/ /g' 21 $ECHO "@SUPPORT@" | sed -e 's/\n/ /g'
22} 22}
23 23
24 24#
25# check_range takes a value and a range string, returning successfully if an 25# check_range takes a value and a range string, returning successfully if an
26# alert should be raised based on the range 26# alert should be raised based on the range.
27#
27check_range() { 28check_range() {
28 local v range yes no err decimal start end cmp match 29 local v range yes no err decimal start end cmp match
29 v="$1" 30 v="$1"
@@ -105,4 +106,3 @@ check_range() {
105 return "$no" 106 return "$no"
106 fi 107 fi
107} 108}
108