Ok. It's an issue of security. However, I do not know how to achieve this. Sorry.<br>But you can search for "grant user who" like strings at Google.<br>By the way, I will be looking for that, if found, I will share it and asking you same. Okay?
<br><br><br>Dinçer<br><br><div><span class="gmail_quote">2007/3/23, Sil <Spam> <<a href="mailto:smog1@free.fr">smog1@free.fr</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dinçer Kavraal a écrit :<br>> Sorry, but that number difference is because:<br>> - when root is logged in, you have used "su root", so there are two<br>> users: 1) root 2) (already open) me<br>> - when "me" is logged in, there are only 1 user which is "me".
<br>My example was too simple sorry, here an other :<br>me@sarge:~$ w<br> 14:14:37 up 2 days, 2:00, 4 users, load average: 0,25, 0,10, 0,02<br>USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT<br>me pts/0
<a href="http://192.168.1.3">192.168.1.3</a> 14:14 0.00s 0.07s 0.03s w<br>other pts/1 <a href="http://192.168.1.3">192.168.1.3</a> 14:13 1:09 0.79s 0.76s top<br>me pts/2 <a href="http://192.168.1.3">
192.168.1.3</a> 14:13 1:12 0.76s 0.73s top<br>me pts/3 <a href="http://192.168.1.3">192.168.1.3</a> 14:13 1:15 0.83s 0.79s top<br><br>maugain@sarge:~$ /usr/lib/nagios/plugins/check_users -w3 -c10
<br>UTILISATEURS OK - 1 utilisateurs actuellement connectés sur |users=1;3;10;0<br><br>me@sarge:~$ su -<br>Password:<br><br>sarge:~# /usr/lib/nagios/plugins/check_users -w3 -c10<br>USERS WARNING - 4 users currently logged in |users=4;3;10;0
<br><br>sarge:~# w<br> 14:15:25 up 2 days, 2:01, 4 users, load average: 0.10, 0.08, 0.02<br>USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT<br>me pts/0 <a href="http://192.168.1.3">192.168.1.3</a>
14:14 0.00s 0.11s 0.04s sshd: me [priv]<br>other pts/1 <a href="http://192.168.1.3">192.168.1.3</a> 14:13 1:57 1.26s 1.23s top<br>me pts/2 <a href="http://192.168.1.3">192.168.1.3</a> 14:13 2:00
1.26s 1.23s top<br>me pts/3 <a href="http://192.168.1.3">192.168.1.3</a> 14:13 2:03 1.30s 1.26s top<br><br>sarge:~# who<br>me pts/0 Mar 23 14:14 (<a href="http://192.168.1.3">192.168.1.3</a>)<br>other pts/1 Mar 23 14:13 (
<a href="http://192.168.1.3">192.168.1.3</a>)<br>me pts/2 Mar 23 14:13 (<a href="http://192.168.1.3">192.168.1.3</a>)<br>me pts/3 Mar 23 14:13 (<a href="http://192.168.1.3">192.168.1.3</a>)<br><br>sarge:~# finger
<br>Login Name Tty Idle Login Time Office<br>Office Phone<br>other BackupPC pts/1 2 Mar 23 14:13 (<a href="http://192.168.1.3">192.168.1.3</a>)<br>me Maugain Silvère *pts/0 Mar 23 14:14 (
<a href="http://192.168.1.3">192.168.1.3</a>)<br>me Maugain Silvère pts/2 2 Mar 23 14:13 (<a href="http://192.168.1.3">192.168.1.3</a>)<br>me Maugain Silvère pts/3 2 Mar 23 14:13 (<a href="http://192.168.1.3">
192.168.1.3</a>)<br><br>-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your
<br>opinions on IT & business topics through brief surveys-and earn cash<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null
<br></blockquote></div><br>