Unfortunately still no luck after trying the following and restarting the NSCLIENT++:
Uncommented:
[NRPE]
;# COMMAND ARGUMENT PROCESSING
; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
allow_arguments=1
;
;# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow_nasty_meta_chars=1
;
;# SCRIPT DIRECTORY
; All files in this directory will become check commands.
; *WARNING* This is undoubtedly dangerous so use with care!
script_dir=C:\Perl\scripts
;
; Script to check external scripts and/or internal aliases.
CheckExternalScripts.dll
[External Script]
;# COMMAND ARGUMENT PROCESSING
; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
allow_arguments=1
;
;# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow_nasty_meta_chars=1
;
;# SCRIPT DIRECTORY
; All files in this directory will become check commands.
; *WARNING* This is undoubtedly dangerous so use with care!
script_dir=C:\Perl\scripts
I noticed an issue with qualifying the directory in the logs after trying this, so made ammendments to the command as follows:
./check_nrpe -H 10.215.222.217 -c count_file.pl -a 'c:\documents and settings\sqladmin\desktop\test 0 0'
Here's the new (debug) log output, but still an issue with the handler...
2011-10-24 11:05:22: debug:NSClient++.cpp:863: No shared session: ignoring change event!
2011-10-24 11:05:45: debug:NSClient++.cpp
2011-10-24 11:05:45: message:NSClient++.cpp
2011-10-24 11:05:45: message:include\NSCHelper.cpp:238: No handler for command 'count_file.pl'.
Any ideas?
Kind regards
DB