Check_WinFile plugin with NRPE


I’m new to Nagios and working my way through it. I need to have a file count on one of my server folders and am trying to get the Check_WinFile plugin working. Here is my config so far:


define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ $ARG1$ $ARG2$

define service {

     host_name              CSXENCLUFS
     service_description    File Count
     check_command          check_nrpe!check_winfile
     use                    generic-service
     notification_interval  0


Windows NSClient.ini file:

; check_winfile - Alias for alias_volumes. To configure this item add a section called: /settings/external scripts/alias/alias_volumes
check_winfile = check_winfile.exe --target C:\Traces --warn 10 --critical 25

The plugin is installed in the Scripts folder and the Check_WinFile.exe is located C:\Program Files\NSClient++

I continue to get this error:

Return code of 127 is out of bounds - plugin may be missing)

I have defined the plugin, so I’m not sure why it isn’t working here. Any help would be appreciated. Thanks