Hi all,<br><br>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.<br>I have downloaded chec_disk on nagiosexchange and defined the services in 
nrpe.cfg as follows:<br><br clear="all">command[check_disk_c]=cscript.exe //NoLogo //T:10 c:\nrpe\bin\check_disk.wsf /drive:"c:\" /w:300 /c:100<br>command[check_disk_d]=cscript.exe //NoLogo //T:10 c:\nrpe\bin\check_disk.wsf /drive:"d:\" /w:300 /c:100
<br><br>when i run the check_nrpe on the nagios server from command line all is good :<br><br>../libexec/check_nrpe -H <a href="http://10.8.1.3">10.8.1.3</a> -c check_disk_c<br>Drive C:\  - Total: 11.72 GB - Free: 3.94 GB (34%) - Used: 
7.78 GB (66%)<br><br> ../libexec/check_nrpe -H <a href="http://10.8.1.3">10.8.1.3</a> -c check_disk_d<br>Drive D:\ Data - Total: 56.08 GB - Free: 25.25 GB (45%) - Used: 30.83 GB (55%)<br><br>I did define nrpe in checkcommands.cfg
 as follows:<br>define command{<br>        command_name    check_nrpe<br>        command_line       $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$<br>                        }<br><br>and run it this way in services.cfg<br>
check_command                   check_nrpe!check_disk_c<br><br>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.
<br><br>Any ideas.<br><br>Cheers<br>-- <br>Le bon sens est la chose du monde la mieux partagée.