Trying to count files in a windows directory usring nrpe.
From my nagios server, this test works: ./check_nrpe -t 30 -H mywinserver -c directory_file_count
it calls this line in my nsc.ini file on the windows server: directory_file_count=c:\windows\system32\cscript.exe //NoLogo //T:30 c:\scripts\directory_file_count.wsf c: \temp\servstat\ 5 10
This works perfectly. But, not when I put it into a host service.
define service{
use generic-service
host_name mywinserver
service_description Queue Size
check_command check_nrpe!directory_file_count!30
}
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 20 -c $ARG1$ -t $ARG2$
}
I get a no handler for that command. I have a similar service that works fine. It is using nrpe too, but passes this in the check_command: check_nrpe!check_ad!30. What did I miss?
BTW, running nagios 3.2.3, plugins: 1.4.15, nrpe 2.12 on Ubuntu 10.10 server. Win server is 2008 x64 SP2 with nsclient 0.3.8-x64