SF.net SVN: nagiosplug:[2059] nagiosplug/trunk

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.