check_swap_io
Checks the swap I/O rate on the host.
Implementation
| Windows | Linux | FreeBSD | MacOSX |
|---|
| ✅ | ✅ | ✅ |
Argument Defaults
| Argument | Default Value |
|---|
| empty-state | 0 (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
| Argument | Description |
|---|
| lookback | Lookback 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):
| Attribute | Description |
|---|
| swap_count | Count of swap partitions |
| swap_in_rate_bytes | Bytes swapped in per second |
| swap_in_rate | Bytes swapped in per second in human-readable format |
| swap_out_rate_bytes | Bytes swapped out per second |
| swap_out_rate | Bytes 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!
}