[Nagiosplug-help] check_nfsmounts
Philip Marcus
pmarcus at factual.com
Wed Jul 29 18:32:16 CEST 2009
Some things to check...
When I've had problems in the past with a nagios plugin working
locally but not via the check_nrpe plugin, its usually one of:
1) communication between check_nrpe plugin on Nagios server and NRPE
daemon on client (ssl enabled / only allow from a certain IP)
2) Environment variables. When you login as your user nagios you
assume the environment of that user. The NRPE daemon might not have
some ENV variable set which check_nfsmounts needs?
3) permissions (file system perms, maybe its trying to read /etc/mtab
and doesn't have access, or running a df and its not allowed. theres
the option to have check_nfsmounts do the write back test, maybe thats
failing... ? (using sudo here will cause it to fail as well depending
on your NFS mount options, specifically, no_root_squash)
As another person suggested though, turn on the NRPE debugging output
in the config, restart the service and see if you get more details
about the failing check.
Good Luck!
Philip
p.s.
(strace the process and see all the system calls its making? use
tcpdump to make sure communications are working ... ? )
On Wed, Jul 29, 2009 at 6:58 AM, Rick Garland<Rick.Garland at quantum.com> 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
>
>
>
> ------------------------------------------------------------------------
> ------
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
>
> ::: Messages without supporting info will risk being sent to /dev/null
>
> ----------------------------------------------------------------------
> The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum Corporation. Furthermore, Quantum Corporation is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Help
mailing list