Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-05-04 Thread Peter N. Steinmetz
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

[Nagios-users] SOLVED: Re: puzzling no output from nrpe run of check_load

2012-05-02 Thread Peter N. Steinmetz
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

Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-05-02 Thread Peter N. Steinmetz
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

Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-04-30 Thread Peter N. Steinmetz
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

Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-04-27 Thread Peter N. Steinmetz
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

Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-04-25 Thread Peter N. Steinmetz
> 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

Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-04-25 Thread Peter N. Steinmetz
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

Re: [Nagios-users] puzzling no output from nrpe run of check_load

2012-04-25 Thread Peter N. Steinmetz
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

[Nagios-users] puzzling no output from nrpe run of check_load

2012-04-24 Thread Peter N. Steinmetz
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