RE nrpe issue

Greg King wgking at shaw.ca
Fri Feb 10 17:18:13 CET 2006


> Message: 9 
> Date: Thu, 9 Feb 2006 15:11:43 +0100 
> From: Toto Capuccino <shoktai at gmail.com> 
> To: Nagios <nagios-users at lists.sourceforge.net> 
> Subject: [Nagios-users] nrpe issue 
> 
> ------=_Part_5090_29725220.1139494303850 
> Content-Type: text/plain; charset=ISO-8859-1 
> Content-Transfer-Encoding: quoted-printable 
> Content-Disposition: inline 
> 
> Hi all, 
> 
> i have installed nrpe service on remote host a win2003 server, the service 
> just runs fine and i want to start monitorinfg free space on servers. 
> I have downloaded chec_disk on nagiosexchange and defined the services in 
> nrpe.cfg as follows: 
> 
> command[check_disk_c]=3Dcscript.exe //NoLogo //T:10 
> c:\nrpe\bin\check_disk.= 
> wsf 
> /drive:"c:\" /w:300 /c:100 
> command[check_disk_d]=3Dcscript.exe //NoLogo //T:10 
> c:\nrpe\bin\check_disk.= 
> wsf 
> /drive:"d:\" /w:300 /c:100 
> 
> when i run the check_nrpe on the nagios server from command line all is 
> goo= 
> d 
> : 
> 
> ../libexec/check_nrpe -H 10.8.1.3 -c check_disk_c 
> Drive C:\ - Total: 11.72 GB - Free: 3.94 GB (34%) - Used: 7.78 GB (66%) 
> 
> ../libexec/check_nrpe -H 10.8.1.3 -c check_disk_d 
> Drive D:\ Data - Total: 56.08 GB - Free: 25.25 GB (45%) - Used: 30.83 GB 
> (55%) 
> 
> I did define nrpe in checkcommands.cfg as follows: 
> define command{ 
> command_name check_nrpe 
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ 
> } 
> 
> and run it this way in services.cfg 
> check_command check_nrpe!check_disk_c 
> 
> but when i run it from Nagios, all i get is a CRITICAL state with ouput 
> 'Connection refused by host'. Actually i started working with nrpe because 
> = 
> i 
> had the same problem with nsclient. Besides the log are empty concerning 
> this critical state. All checks on disks are refused. 
> 
> Any ideas. 
> 
> Cheers 
> -- 
> Le bon sens est la chose du monde la mieux partag=E9e. 
> 
I suspect you have incorrect permissions on one of the scripts, and you are testing as root. 

try the following: 
su - <nagios user> 
cd /usr/local/nagios/libexec 
./check_nrpe ... 

Sometimes the errors returned to the Nagios web interface can be masked by underlying issues. Ensure the scripts and executables have rx permissions for the nagios user.

Regards, Greg
-------------- next part --------------
An embedded message was scrubbed...
From: nagios-users-request at lists.sourceforge.net
Subject: Nagios-users digest, Vol 1 #3036 - 19 msgs
Date: Fri, 10 Feb 2006 07:35:06 -0800
Size: 90856
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060210/d23a9dd1/attachment.mht>


More information about the Users mailing list