Page 1 of 1

check_swap error

Posted: Tue Apr 18, 2017 8:58 am
by B24
I can't quite figure this one out. Getting the below error:

check_swap: Warning percentage should be more than critical percentage

Plugin version is 2.1.4

command_line $USER1$/check_swap -w $ARG1$ -c $ARG2$

Anyone else come across this error? Any help is appreciated.

Re: check_swap error

Posted: Tue Apr 18, 2017 11:28 am
by tgriep
The check_swap plugin is used to check how much free swap is on the system so the warning threshold has to be larger than the critical threshold for the plugin to function.
That is what the message is telling you.
If you run the command like the example below

Code: Select all

check_swap -w 50% -c 20%
It will generate a warning alert when the amount of free swap falls below 50% and generate a critical alert when the amount of free swap falls below 20%.
If you have any other questions about this, please post them.