Yes, ls -l /proc/loadavg shows:

-r--r--r--  1 root       root

which I believe mean any user can read it. 

Yet, 
sudo su - nagios more /proc/loadavg
returns nothing when the nagios user has /bin/false for a shell, and returns 
the expected output when the nagios user has /bin/bash for a shell.

I added the following line to /etc/sudoers:
nagios ALL=(ALL) NOPASSWD: /proc/loadavg
but that doesn't fix the problem.

thanks,
Peter

On Apr 25, 2012, at 9:09 AM, Alex Griffin wrote:

> Does the nagios user have read access to /proc/loadavg?
> 
> Alex Griffin
> ---
> Tech Team
> agrif...@nagios.com
> 



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to