GitHub

The check_swap Plugin

check_swap v2.4.0.7.g78ce (monitoring-plugins 2.4git)
Copyright (c) 2000-2024 Monitoring Plugins Development Team
    <devel@monitoring-plugins.org>

Check swap space on local machine.

Usage:
 check_swap [-av] [-w <percent_free>%] [-c <percent_free>%]
  [-w <bytes_free>] [-c <bytes_free>] [-n <state>]

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 --extra-opts=[section][@file]
    Read options from an ini file. See
    https://www.monitoring-plugins.org/doc/extra-opts.html
    for usage and examples.
 -w, --warning=INTEGER
    Exit with WARNING status if less than INTEGER bytes of swap space are free
 -w, --warning=PERCENT%
    Exit with WARNING status if less than PERCENT of swap space is free
 -c, --critical=INTEGER
    Exit with CRITICAL status if less than INTEGER bytes of swap space are free
 -c, --critical=PERCENT%
    Exit with CRITICAL status if less than PERCENT of swap space is free
 -a, --allswaps
    Conduct comparisons for all swap partitions, one by one
 -n, --no-swap=<ok|warning|critical|unknown>
    Resulting state when there is no swap regardless of thresholds. Default: CRITICAL
 -v, --verbose
    Show details for command-line debugging (output may be truncated by
    the monitoring system)

Notes:
 Both INTEGER and PERCENT thresholds can be specified, they are all checked.
 Without thresholds, the plugin shows free swap space and performance data, but always returns OK.
 On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.

Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org