In the host definition I have custom variable "_HOSTDIR1" defined with "C:\temp"$USER1$/check_nrpe debug=1 -H $HOSTADDRESS$ -c CheckFiles -a "path=$_HOSTDIR1$" "pattern=$ARG1$" "filter=written > -$ARG2$" truncate=4096 "syntax=%filename%: %write%" MaxWarn=1
However, unlike this command (with custom variable):
The command returns:$USER1$/check_ping -H $_HOSTISP1$ -w $ARG1$ -c $ARG2$ -p 5
"Missing path argument"
Also, if I put the path directly in the service definition, everything works great:
Why won't my custom variable pass through to the service?$USER1$/check_nrpe debug=1 -H $HOSTADDRESS$ -c CheckFiles -a "path=C:\temp" "pattern=$ARG1$" "filter=written > -$ARG2$" truncate=4096 "syntax=%filename%: %write%" MaxWarn=1