check_users plugin problem
Dinçer Kavraal
dkavraal at yahoo.com
Fri Mar 23 16:47:14 CET 2007
Ok. It's an issue of security. However, I do not know how to achieve this.
Sorry.
But you can search for "grant user who" like strings at Google.
By the way, I will be looking for that, if found, I will share it and asking
you same. Okay?
Dinçer
2007/3/23, Sil <Spam> <smog1 at free.fr>:
>
> Dinçer Kavraal a écrit :
> > 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".
> My example was too simple sorry, here an other :
> me at sarge:~$ w
> 14:14:37 up 2 days, 2:00, 4 users, load average: 0,25, 0,10, 0,02
> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
> me pts/0 192.168.1.3 14:14 0.00s 0.07s 0.03s w
> other pts/1 192.168.1.3 14:13 1:09 0.79s 0.76s top
> me pts/2 192.168.1.3 14:13 1:12 0.76s 0.73s top
> me pts/3 192.168.1.3 14:13 1:15 0.83s 0.79s top
>
> maugain 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:
>
> sarge:~# /usr/lib/nagios/plugins/check_users -w3 -c10
> USERS WARNING - 4 users currently logged in |users=4;3;10;0
>
> sarge:~# w
> 14:15:25 up 2 days, 2:01, 4 users, load average: 0.10, 0.08, 0.02
> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
> me pts/0 192.168.1.3 14:14 0.00s 0.11s 0.04s sshd: me [priv]
> other pts/1 192.168.1.3 14:13 1:57 1.26s 1.23s top
> me pts/2 192.168.1.3 14:13 2:00 1.26s 1.23s top
> me pts/3 192.168.1.3 14:13 2:03 1.30s 1.26s top
>
> sarge:~# who
> me pts/0 Mar 23 14:14 (192.168.1.3)
> other pts/1 Mar 23 14:13 (192.168.1.3)
> me pts/2 Mar 23 14:13 (192.168.1.3)
> me pts/3 Mar 23 14:13 (192.168.1.3)
>
> sarge:~# finger
> Login Name Tty Idle Login Time Office
> Office Phone
> other BackupPC pts/1 2 Mar 23 14:13 (192.168.1.3)
> me Maugain Silvère *pts/0 Mar 23 14:14 (192.168.1.3)
> me Maugain Silvère pts/2 2 Mar 23 14:13 (192.168.1.3)
> me Maugain Silvère pts/3 2 Mar 23 14:13 (192.168.1.3)
>
> -------------------------------------------------------------------------
> 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/ce8be564/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