[Nagiosplug-help] check_users

Harper Mann hmann at itgroundwork.com
Wed Oct 13 09:51:52 CEST 2004


What happens if you run the check with 2 and 3 users logged in?  

Regards,

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)

-----Original Message-----
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of
martinus.nel at scarceskills.com
Sent: Wednesday, October 13, 2004 8:18 AM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] check_users

Dear all,

I think there is a mistake in check_users.  Please look at the following:

-----
# w
 16:14:45  up 42 days, 48 min,  1 user,  load average: 0.10, 0.15, 0.16
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
root     pts/1    xxxxxxxxxxxxxxxx  1:57pm  0.00s  0.33s  0.02s  w

# /usr/local/nagios/check_users --help
check_users (nagios-plugins 1.3.1) 1.3
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 1999-2002 Ethan Galstad(nagios at nagios.org)

This plugin checks the number of users currently logged in on the local
system and generates an error if the number exceeds the thresholds
specified.
Usage: check_users -w <users> -c <users>
Options:
 -w, --warning=INTEGER
    Set WARNING status if more than INTEGER users are logged in
 -c, --critical=INTEGER
    Set CRITICAL status if more than INTEGER users are logged in
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information

# /usr/local/nagios/check_users -w 1 -c 2
USERS WARNING - 1 users currently logged in
-----

The check_user --help clearly states "more than" for the trigger.  Am I
missing something here ?

Martinus.

--
---------------------------------------------------------------------------
DISCLAIMER
This e-mail message and any attachments are confidential and may also be a
privileged communication. It is intended solely for the person(s) to whom
it is addressed. If you are not the intended addressee of the message you
must take no action based on it. Please reply to this message to let us
know you received it in error and also delete the message from your system.
Internet e-mails are not necessarily secure and you should be mindful of
this when e-mailing us.

The contents of an attachment to this e-mail may contain software viruses
which could damage your own computer system. Whilst we have taken every
reasonable precaution to minimise this risk, we cannot accept liability for
any damage which you sustain as a result of software viruses. You should
carry out your own virus checks before opening the attachment.
---------------------------------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null






More information about the Help mailing list