We use check_swap
to monitor the swap utilization of servers. I noticed that the utilization swaps between 0% and 1% although the absolute value does not change.
SWAP CRITICAL - 1% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 1% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 1% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 1% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 0% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 0% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 0% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
SWAP CRITICAL - 0% free (0 MB out of 2047 MB) |swap=0MB;204;102;0;2047
Yes, the 0 MB are real, the memory management of that server is definitely improvable. I’m just wondering, why check_swap
calculates the percent utilization differently, although the absolute value does not change. This is the check_swap from nagios-plugins 2.3.3.