-
Notifications
You must be signed in to change notification settings - Fork 29
Nagios Plugin check_swap
Davide Madrisan edited this page Feb 16, 2017
·
1 revision
check_swap - check the swap usage
[/etc/nrpe.d/check_swap]
command[check_swap]=/usr/lib/nagios/plugins/check_swap -b -w 50% -c 80%
This plugin checks the swap utilization.
Copyright (C) 2014,2015 Davide Madrisan <davide.madrisan@gmail.com>
Usage:
check_swap [-b,-k,-m,-g] [-s] -w PERC -c PERC
Options:
-b,-k,-m,-g show output in bytes, KB (the default), MB, or GB
-s, --vmstats display the virtual memory perfdata
-w, --warning PERCENT warning threshold
-c, --critical PERCENT critical threshold
-h, --help display this help and exit
-V, --version output version information and exit
Examples:
check_swap --vmstats -w 30% -c 50%
swap OK: 0.00% (12 kB) used | swap_total=8388604kB swap_used=12kB swap_free=8388592kB swap_cached=0kB, swap_pageins/s=0 swap_pageouts/s=0
swap_total
swap_used
swap_free
swap_cached
swap_pageins/s
swap_pageouts/s