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
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
so 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
On 30/04/2012 20:39, Peter N. Steinmetz wrote:
Thanks for the suggestion, gave that a try, or more precisely:
sudo su nagios -c more /proc/loadavg
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.
to modify your nagios command definition
the same way ...
-Original Message-
From: Peter N. Steinmetz [mailto:peternsteinm...@steinmetz.org]
Sent: Wednesday, April 25, 2012 12:42 PM
To: Nagios Users List
Subject: Re: [Nagios-users] puzzling no output from nrpe run of check_load
Yes, ls -l /proc
Does the nagios user have read access to /proc/loadavg?
Alex Griffin
---
Tech Team
agrif...@nagios.com
Peter N. Steinmetz wrote:
Hi, hoping someone may be able to help with this odd problem running
check_load on a remote nrpe server.
I am running a nagios3 server on ubuntu 10.04 server
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.
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
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 is a non-login shell with permissions set
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 is a non-login shell with permissions set
Hi, hoping someone may be able to help with this odd problem running check_load
on a remote nrpe server.
I am running a nagios3 server on ubuntu 10.04 server (nagios3 3.2.0-4ubuntu2.2)
and a nrpe server on ubuntu 10.10 (nagios-nrpe-server 2.12-4ubuntu1.10.10.1,
nagios-plugins 1.4.14-5ubuntu3)
11 matches
Mail list logo