mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
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
This commit is contained in:
parent
4677f3c2b4
commit
9aade169f0
2 changed files with 5 additions and 2 deletions
3
NEWS
3
NEWS
|
|
@ -1,5 +1,8 @@
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -108,9 +108,9 @@ main (int argc, char **argv)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue