[Nagiosplug-help] check_users

martinus.nel at scarceskills.com martinus.nel at scarceskills.com
Thu Oct 14 00:42:42 CEST 2004


Harper,

Here is what happens when I am logged in with 3 or 4 users:

---

# w
 08:32:00  up 9 days, 23:00,  3 users,  load average: 0.30, 0.15, 0.10
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
root     pts/0    xxxxxxxxxxxxx    Tue11am  8.00s  5.03s  3.47s  -bash
root     pts/1    xxxxxxxxxxxxx    Tue 1pm 16:11m  1.18s  0.83s  ssh 
root     pts/2    xxxxxxxxxxxxx    Wed 2pm  0.00s  1.49s  1.47s  -bash
# /usr/lib/nagios/plugins/check_users -w 3 -c 4
USERS WARNING - 3 users currently logged in
# /usr/lib/nagios/plugins/check_users -w 4 -c 5
USERS OK - 3 users currently logged in


# w
 08:33:03  up 9 days, 23:01,  4 users,  load average: 0.11, 0.12, 0.09
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
root     pts/0    xxxxxxxxxxxxx    Tue11am  1:11   5.03s  3.47s  -bash
root     pts/1    xxxxxxxxxxxxx    Tue 1pm 16:12m  1.18s  0.83s  ssh 
root     pts/2    xxxxxxxxxxxxx    Wed 2pm  0.00s  1.62s  1.60s  -bash
root     pts/3    xxxxxxxxxxxxx     8:32am  3.00s  0.14s  0.14s  -bash
# /usr/lib/nagios/plugins/check_users -w 4 -c 5
USERS WARNING - 4 users currently logged in
# /usr/lib/nagios/plugins/check_users -w 5 -c 6
USERS OK - 4 users currently logged in

---
So, it's not 'more than' ?

Martinus,


Harper Mann <hmann at itgroundwork.com> wrote: 
>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
>
--
---------------------------------------------------------------------------
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.
---------------------------------------------------------------------------






More information about the Help mailing list