[Nagiosplug-help] check_nfsmounts

Thomas Guyot-Sionnest dermoth at aei.ca
Mon Aug 17 18:52:44 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/07/09 09:58 AM, Rick Garland wrote:
> Isn't there anybody out there who has had this issue with
> check_nfsmounts?
> 
> 
> 
> Hi all:
> 
> Running Nagios 3.0.3 on CentOS5 server. Have NRPE 2.8.1 on various
> clients,
> mostly HPUX and RH Linux.
> 
> Having trouble with check_nfsmounts. If I run from the command line as
> the
> nagios user it works fine. If I try to use check_nrpe -H <hostname> -c
> check_nfsmounts I get the dreaded 'NRPE: Unable to read output'
> response. 
> 
> I have been searching and found some posts talking about sudo use. I
> have the
> perms set so sudo is not an issue, but for giggles and grins I set it up
> anyway.
> Still, same problem. 
> 
> The perms and owners of the file and directories are OK. I am able to
> execute
> check_ commands using check_nrpe with no problem. 
> 
> Anybody else had this problem before? 
> 
> Many thanks

Assuming that the user you run nrpe as has sudo permissions, and that
your nrpe command definition include the sudo command, make sure you
disable the "requitetty" option in sudo. This is a common problem as
when you run it by hands you have a tty, but NRPE do not.


- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKiYrc6dZ+Kt5BchYRAh4LAKCOAdseAC2umC0HXjayFgwM617JuQCfV7AX
snBYgCY4lXj2zSB3AtN1QPI=
=bg9T
-----END PGP SIGNATURE-----




More information about the Help mailing list