survivor: Vmstat Check Module

SURVIVOR: `vmstat` Check Module
About `vmstat` Dependencies Arguments Description Examples Design Errors
About `vmstat`
basics |
Module Type | Scheduler | Remote
check | No | Yes
syntax |
         module vmstat {
           [utils <string>]
           freewarn <number>
           freeprob <number>
           swapwarn <number>
           swapprob <number>
         }
         via <transport>
### Dependencies None ### Arguments
Name | Type | Value
units | optional string one of 'k', 'K', 'm', or 'M' | Units `vmstat` should report in. Not supported on all platforms.
freewarn | number | Generate a warning if less than the specified amount of free memory is available, or 0 to not generate warnings.
freeprob | number | Generate a problem if less than the specified amount of free memory is available, or 0 to not generate problems.
swapwarn | number | Minimum amount of swap in use to generate a warning, or 0 to not generate warnings.
swapprob | number | Minimum amount of swap in use to generate a problem, or 0 to not generate problems.
1. All values are specified in terms of the units used by `vmstat`. ### Description The `vmstat` module determines the amount of virtual memory in use on the host to be checked, via the `vmstat` command. ### Examples To warn when free memory is less than 20000 units or at least 10000 units of swap are in use, and to generate a problem when free memory is less than 20000 units or at least 10000 units of swap are in use:
            module vmstat {
              freewarn 20000
              freeprob 15000
              swapwarn 10000
              swapprob 15000
            }
### Design Errors This module currently only understands the output of `vmstat` used by Linux. $Date: 2006/11/19 22:08:56 $ $Revision: 0.3 $ | keywords freeprob freewarn swapprob swapwarn utils