check_swap error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
B24
Posts: 1
Joined: Thu Mar 16, 2017 2:44 pm

check_swap error

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_swap error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked