<div>hey,</div>
<div> </div>
<div> I am checking the same host and I ran the check_users with root.</div>
<div> </div>
<div>I think andreas is right(restricted proc).</div>
<div> </div>
<div>Thanks & Regards</div>
<div> </div>
<div>Ankush Grover<br><br> </div>
<div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Fabiano Martins</b> <<a href="mailto:fabianomartinsrj@gmail.com">fabianomartinsrj@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Are trying to monitor a remote host or the own server that is running<br>nagios?<br><br>-----Original Message-----
<br>From: <a href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a><br>[mailto:<a href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net
</a>] On Behalf Of Andreas<br>Ericsson<br>Sent: quinta-feira, 10 de novembro de 2005 12:29<br>To: ankush grover<br>Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>Subject: Re: [Nagios-users] Is check_users working properly
<br><br>ankush grover wrote:<br>> hey friends,<br>><br>> I am using Nagions 2.0b on Fedora Core 3.I have configured check_users to<br>> see how many users are currently login into the system.<br>><br>> define command{
<br>> command_name check_local_users<br>> command_line $USER1$/check_users -w 15 -c 10<br>> }<br>><br>> Through the url <a href="http://localhost/nagios">http://localhost/nagios</a><br>><br>>  Current Status: OK
<br>> Status Information:USERS OK - 0 users currently logged in<br>><br>> But If I run the check_users from command line it shows there are users<br>><br>> ./check_users -w 10 -c 15<br>> USERS OK - 5 users currently logged in |users=5;10;15;0
<br>><br><br>Are you running this command-line check as the nagios user?<br><br>There are tons of patches that disallow non-root users from seeing who<br>are logged in to the system. They're usually called something like
<br>"restricted proc" or some such and most of them make the /proc<br>filesystem readable to members of a certain group (usually named "proc").<br><br>--<br>Andreas Ericsson                   <a href="mailto:andreas.ericsson@op5.se">
andreas.ericsson@op5.se</a><br>OP5 AB                             <a href="http://www.op5.se">www.op5.se</a><br>Tel: +46 8-230225                  Fax: +46 8-230231<br><br><br>-------------------------------------------------------
<br>SF.Net email is sponsored by:<br>Tame your development challenges with Apache's Geronimo App Server. Download<br>it for free - -and be entered to win a 42" plasma tv or your very own<br>Sony(tm)PSP.  Click here to play: 
<a href="http://sourceforge.net/geronimo.php">http://sourceforge.net/geronimo.php</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
<br>any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br><br><br><br>-------------------------------------------------------<br>SF.Net email is sponsored by:<br>Tame your development challenges with Apache's Geronimo App Server. Download
<br>it for free - -and be entered to win a 42" plasma tv or your very own<br>Sony(tm)PSP.  Click here to play: <a href="http://sourceforge.net/geronimo.php">http://sourceforge.net/geronimo.php</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>