O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.2 Utilization of the Swap Space

The check_swap plugin tests the locally available swap space:

-w limit / --warning=limit

The warning limit can be specified as a percentage or as an integer, as with check_disk, but the integer value is specified in bytes, not in kilobytes!

If at least 10 percent should remain free, specify -c 10%. The integer specification refers to the remaining free space, too.

-c limit / --critical=limit

Critical limit, similar to the warning limit.

-a / --allswaps

Tests the threshold values for each swap partition individually.

The following example tests to see whether at least half of the swap space is available. If there is less than 20 percent free swap space, the plugin should return a critical status. After the | sign the program ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required