ankush grover wrote:
hey friends,
I am using Nagions 2.0b on Fedora Core 3.I have configured check_users to
see how many users are currently login into the system.
define command{
command_name check_local_users
command_line $USER1$/check_users -w 15 -c 10
}
Through the url http://localhost/nagios
Current Status: OK
Status Information:USERS OK - 0 users currently logged in
But If I run the check_users from command line it shows there are users
./check_users -w 10 -c 15
USERS OK - 5 users currently logged in |users=5;10;15;0
Are you running this command-line check as the nagios user?
There are tons of patches that disallow non-root users from seeing who
are logged in to the system. They're usually called something like
"restricted proc" or some such and most of them make the /proc
filesystem readable to members of a certain group (usually named "proc").
--
Andreas Ericsson [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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