load

check_load

Checks the cpu load metrics.

Implementation

WindowsLinuxFreeBSDMacOSX

Examples

Default Check

check_load
OK - total load average: 2.36, 1.26, 1.01 |'load1'=2.36;;;0 'load5'=1.26;;;0 'load15'=1.01;;;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_load
    use                  generic-service
    check_command        check_nrpe!check_load!'warn=load > 20' 'crit=load > 30'
}

Argument Defaults

ArgumentDefault Value
filternone
empty-state0 (OK)
empty-syntax
top-syntax%(status) - ${list} on ${cores} cores
ok-syntax
detail-syntax${type} load average: ${load1}, ${load5}, ${load15}

Check Specific Arguments

ArgumentDescription
-c|–criticalCritical threshold: CLOAD1,CLOAD5,CLOAD15
-n|–procs-to-showNumber of processes to show when printing the top consuming processes
-r|–percpuDivide the load averages by the number of CPUs
-w|–warningWarning threshold: WLOAD1,WLOAD5,WLOAD15

Attributes

Filter Keywords

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

AttributeDescription
typetype will be either ’total’ or ‘scaled’
load1average load value over 1 minute
load5average load value over 5 minutes
load15average load value over 15 minutes
loadmaximum value of load1, load5 and load15