summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-10-05 15:28:18 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-10-05 15:28:18 (GMT)
commit9aade169f059e375b01f0e5b6d3c904e5f5722b4 (patch)
tree92ba1b116ed19e786f661a44e5c56c546f5b7ae1
parent4677f3c2b4aefd9b969de1d055f151a45c74a1d4 (diff)
downloadmonitoring-plugins-9aade169f059e375b01f0e5b6d3c904e5f5722b4.tar.gz
check-users thresholds was >= rather than > as documented.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2059 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--NEWS3
-rw-r--r--plugins/check_users.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d4e5308..74a7830 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
1This file documents the major additions and syntax changes between releases. 1This file documents the major additions and syntax changes between releases.
2 2
31.4.14 ...
4 check_users thresholds were not working excatly as documented (>= rather than >)
5
31.4.13 25th Sept 2008 61.4.13 25th Sept 2008
4 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) 7 Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
5 Optimised pst3 for systems with large number of processes (Duncan Ferguson) 8 Optimised pst3 for systems with large number of processes (Duncan Ferguson)
diff --git a/plugins/check_users.c b/plugins/check_users.c
index e4ef681..4e7e9a2 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -108,9 +108,9 @@ main (int argc, char **argv)
108 result = possibly_set (result, STATE_UNKNOWN); 108 result = possibly_set (result, STATE_UNKNOWN);
109 109
110 /* else check the user count against warning and critical thresholds */ 110 /* else check the user count against warning and critical thresholds */
111 if (users >= cusers) 111 if (users > cusers)
112 result = STATE_CRITICAL; 112 result = STATE_CRITICAL;
113 else if (users >= wusers) 113 else if (users > wusers)
114 result = STATE_WARNING; 114 result = STATE_WARNING;
115 else if (users >= 0) 115 else if (users >= 0)
116 result = STATE_OK; 116 result = STATE_OK;