Sorry, but that number difference is because:
- when root is logged in, you have used "su root", so there are two users:
1) root 2) (already open) me
- when "me" is logged in, there are only 1 user which is "me".

I hope it's clear enough.
So is this all problem? or is it only a sample?

Summary: To see which users are logged in, you can use command "w" as a
sample:
[EMAIL PROTECTED]:~# w
12:56:24 up 11 days, 19:58,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
me       pts/0    127.0.0.1         12:56    0.00s  0.00s  0.00s w

as you see there is only one user that is "me". When I get to user root:

[EMAIL PROTECTED]:~# su -
Password:

[EMAIL PROTECTED]:~# w
12:56:24 up 11 days, 19:58,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
me       pts/0    127.0.0.1         12:56    0.00s  0.00s  0.00s
root     pts/0    127.0.0.1         12:58    0.00s  0.00s  0.00s w

there are two users online, which are both me. one of them is online user
beneath root user.



2007/3/23, Sil <Spam> <[EMAIL PROTECTED]>:

Hi,
Excuse for my bad English, I'm French.
I'm trying to check my local users on Debian Sarge Nagios 1.3 with the
plugin check_users.
But it only find one user each time.

Only root can make work properly the plugin :
[EMAIL PROTECTED]:~$ /usr/lib/nagios/plugins/check_users -w3 -c10
UTILISATEURS OK - 1 utilisateurs actuellement connectés sur
|users=1;3;10;0
[EMAIL PROTECTED]:~$ su -
Password:
serveur:~# /usr/lib/nagios/plugins/check_users -w3 -c10
USERS OK - 2 users currently logged in |users=2;3;10;0

It must be a permission problem, so I try to add nagios user to others
groups but it's not work.

Thanks
Sil


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to