[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2059] nagiosplug/trunk

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Sun Oct 5 17:28:18 CEST 2008


Revision: 2059
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2059&view=rev
Author:   dermoth
Date:     2008-10-05 15:28:18 +0000 (Sun, 05 Oct 2008)

Log Message:
-----------
check-users thresholds was >= rather than > as documented.

Modified Paths:
--------------
    nagiosplug/trunk/NEWS
    nagiosplug/trunk/plugins/check_users.c

Modified: nagiosplug/trunk/NEWS
===================================================================
--- nagiosplug/trunk/NEWS	2008-09-25 08:23:20 UTC (rev 2058)
+++ nagiosplug/trunk/NEWS	2008-10-05 15:28:18 UTC (rev 2059)
@@ -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)

Modified: nagiosplug/trunk/plugins/check_users.c
===================================================================
--- nagiosplug/trunk/plugins/check_users.c	2008-09-25 08:23:20 UTC (rev 2058)
+++ nagiosplug/trunk/plugins/check_users.c	2008-10-05 15:28:18 UTC (rev 2059)
@@ -108,9 +108,9 @@
 		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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list