Continuing with this debugging. I think I understand the point about needing a
shell permission to write output to the terminal window.
I've now replaced the shell on the remote host with /bin/false and eliminated
the password for the nagios user on the remote machine. If I leave the password
eveloper on the sourceforge project
(but the join link wasn't clear either).
thanks,
Peter
On May 2, 2012, at 4:34 PM, Peter N. Steinmetz wrote:
> I also just tried changing the service definition to
>
> # NRPE load check
> define service {
> use generic-service
> host_nam
it seems that the check_load needs shell rights to show any output
> what so ever also the --help stuff.
> it's kind of understandable.
>
> Eliezer
--
Peter N. Steinmetz, M.D.,Ph.D.
Program Director, Neuroengineering
Barrow Neurological Institute
peternsteinm...@steinmetz.or
Thanks for the suggestion, gave that a try, or more precisely:
sudo su nagios -c "more /proc/loadavg"
after removing the password for user nagios and setting the shell to /bin/false.
This still produces no output.
Very peculiar. I guess there must be something wrong with the authentication or
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
> On Wed, Apr 25, 2012 at 04:18:26PM -0700, Peter N. Steinmetz wrote:
>
>> So why is it that proper functioning of the check_load plugin on the nrpe
>> server requires a shell? and password for login? It does seem that the more
>> correct method of operation i
Some more information and experimentation today.
After reading the NRPE manual, I noticed that they refer to being able to log
in as the nagios user and having a password.
The configuration which is established by the package installations under
ubuntu are to have the nagios user allowing passw
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
n neither case, however,
does the nagios user have a password.
Both the check_load and check_disk plugins are owned by nagios:nagios and have
-rwxr-xr-x permissions, so what is the difference?
Any suggestions appreciated.
cheers,
Peter
---
Peter N. Steinmetz