puzzling no output from nrpe run of check_load
Peter N. Steinmetz
PeterNSteinmetz at steinmetz.org
Wed Apr 25 18:41:42 CEST 2012
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
> agriffin at 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 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