The key was the systax on the arguments and the allow nasty characters in the nsclient config.
Final Service Code:
Code: Select all
define service{
use doceserve-services
host_name doc-e-serve
service_description Fileage Verification of C:\Doceserve\Active
check_command check_nrpe!CheckFiles!path='C:\\DoceServe\Active' pattern=*.* 'master-syntax={%total% Files Found}' MaxWarn=2 MaxCrit=4
}
Code: Select all
# 'check_nrpe' command definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
}