i'm trying to use check snmp to get the number of ap's connected to a controller and warn if any are down and critical if under 1 and over 16
in the host file i set __totalap as number
check_snmp -H $HOSTADDRESS$ -o oid -C snmpcommunity -P2c -w $HOSTtotalap$:$HOSTtotalap$ -c 1:16
i can replace the totalap variable with the numbers and this works correctly but when i use the variables i get invalid warning threshold - $:$
i get the same if i place the variables in quotations
if i place single quotes around the variables i get invalid warning thresholds - $HOSTtotalap$:$HOSTtotalap$
is there a different way i should type the variable in the check command or am i misunderstanding the use of these variables.