Code

check-users thresholds was >= rather than > as documented.
[nagiosplug.git] / plugins / check_users.c
index e4ef681f6075227e38d2030692a43debddb1b9f8..4e7e9a29af20aebcab41c7b7952c5d7e0b0e2a0f 100644 (file)
@@ -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;