swap_io

check_swap_io

Checks the swap Input / Output rate on the host.

Implementation

WindowsLinuxFreeBSDMacOSX

Examples

Default Check

check_swap_io
OK - 1 swaps >22.98 KiB/s <18.58 MiB/s |'swap_in'=54024851456c;;;0; 'swap_out'=179375353856c;;;0;

Example using NRPE and Naemon

Naemon Config

define command{
    command_name         check_nrpe
    command_line         $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$
}

define service {
    host_name            testhost
    service_description  check_swap_io
    use                  generic-service
    check_command        check_nrpe!check_swap_io!
}

Argument Defaults

ArgumentDefault Value
empty-state0 (OK)
empty-syntax
top-syntax%(status) - %(list)
ok-syntax%(status) - %(list)
detail-syntax%(swap_count) swap device(s) >%(swap_in_rate)/s <%(swap_out_rate)/s

Check Specific Arguments

ArgumentDescription
lookbackLookback period for the value change rate calculations, given in seconds. Default: 60

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
swap_countCount of swap partitions
swap_in_rate_bytesSwap/Pages being brought in
swap_in_rateSwap/Pages being sent out
swap_out_rate_bytesSwap/Pages being brought in
swap_out_rateSwap/Pages being sent out