check_load

Checks the CPU load metrics.

Implementation

WindowsLinuxFreeBSDMacOSX
✅✅✅✅

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
–show-argsShow arguments when listing the top N processes
-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

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 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_load
    use                  generic-service
    check_command        check_snclient!check_load!'warn=load > 20' 'crit=load > 30'
}