diff --git a/plugins/check_users.c b/plugins/check_users.c
index e4ef681f6075227e38d2030692a43debddb1b9f8..1bd2c8b2ce99712299d6805351e08f7dfb28aa01 100644 (file)
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
* License: GPL
* Copyright (c) 2000-2007 Nagios Plugins Development Team
*
-* Last Modified: $Date$
-*
* Description:
*
* This file contains the check_users plugin
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
-* $Id$
*
*****************************************************************************/
const char *progname = "check_users";
-const char *revision = "$Revision$";
const char *copyright = "2000-2007";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
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;
print_help ();
exit (STATE_OK);
case 'V': /* version */
- print_revision (progname, revision);
+ print_revision (progname, NP_VERSION);
exit (STATE_OK);
case 'c': /* critical */
if (!is_intnonneg (optarg))
void
print_help (void)
{
- print_revision (progname, revision);
+ print_revision (progname, NP_VERSION);
printf ("Copyright (c) 1999 Ethan Galstad\n");
printf (COPYRIGHT, copyright, email);