check_swap_io

Checks the swap I/O rate on the host.

Implementation

WindowsLinuxFreeBSDMacOSX
✅✅✅

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_bytesBytes swapped in per second
swap_in_rateBytes swapped in per second in human-readable format
swap_out_rate_bytesBytes swapped out per second
swap_out_rateBytes swapped out per second in human-readable format

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 check_snclient and Naemon

Naemon Config

define command{
    command_name         check_snclient
    command_line         $USER1$/check_snclient -k -p 'your-password' -u 'https://$HOSTADDRESS$:8443' $ARG1$ $ARG2$
}

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