summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4677f3c)
raw | patch | inline | side by side (parent: 4677f3c)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sun, 5 Oct 2008 15:28:18 +0000 (15:28 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sun, 5 Oct 2008 15:28:18 +0000 (15:28 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2059 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
plugins/check_users.c | patch | blob | history |
index d4e530897f753f617541f501cd95cbfb575178c3..74a7830996047c3b2361e61e925461ea56be600d 100644 (file)
--- a/NEWS
+++ b/NEWS
This file documents the major additions and syntax changes between releases.
+1.4.14 ...
+ check_users thresholds were not working excatly as documented (>= rather than >)
+
1.4.13 25th Sept 2008
Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
Optimised pst3 for systems with large number of processes (Duncan Ferguson)
diff --git a/plugins/check_users.c b/plugins/check_users.c
index e4ef681f6075227e38d2030692a43debddb1b9f8..4e7e9a29af20aebcab41c7b7952c5d7e0b0e2a0f 100644 (file)
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
result = possibly_set (result, STATE_UNKNOWN);
/* else check the user count against warning and critical thresholds */
- if (users >= cusers)
+ if (users > cusers)
result = STATE_CRITICAL;
- else if (users >= wusers)
+ else if (users > wusers)
result = STATE_WARNING;
else if (users >= 0)
result = STATE_OK;