check_users plugin problem

Dinçer Kavraal dkavraal at yahoo.com
Fri Mar 23 11:59:50 CET 2007


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:
sbdy at debian:~# 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:

sbdy at debian:~# su -
Password:

root at debian:~# 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> <smog1 at free.fr>:
>
> 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 :
> me at sarge:~$ /usr/lib/nagios/plugins/check_users -w3 -c10
> UTILISATEURS OK - 1 utilisateurs actuellement connectés sur
> |users=1;3;10;0
> me at sarge:~$ 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
> Nagios-users at lists.sourceforge.net
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070323/e89f97e8/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list