I have worked on the command service definition for checking the swap partition for a while, and I am not able to figure out to correctly configure it with a percentage value. It is alway comming up with and unkown error saying "warning threshold must be an interger or procentage value". Here is what my current configuration looks like:
command name check_swap
command_line $USER1$/check_swap -w $70%$ -c $80%$
I want nagios to send out emails according to the given percentages when the server hits these values. I have tried several different ways of placing the % in different places without success. Where do I need to place the % in order to get the correct configuration, or how should I configure this correctly?