From 9aade169f059e375b01f0e5b6d3c904e5f5722b4 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sun, 5 Oct 2008 15:28:18 +0000 Subject: 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 --- plugins/check_users.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_users.c') diff --git a/plugins/check_users.c b/plugins/check_users.c index e4ef681f..4e7e9a29 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c @@ -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; -- cgit v1.2.3