一、help用法:

check_loadv1.4.15(nagios-plugins1.4.15)

Usage:

check_load[-r]-wWLOAD1,WLOAD5,WLOAD15-cCLOAD1,CLOAD5,CLOAD15

Options:

-h,--help

Printdetailedhelpscreen

-V,--version

Printversioninformation

-w,--warning=WLOAD1,WLOAD5,WLOAD15

ExitwithWARNINGstatusifloadaverageexceedsWLOADn

-c,--critical=CLOAD1,CLOAD5,CLOAD15

ExitwithCRITICALstatusifloadaverageexceedCLOADn

theloadaverageformatisthesameusedby"uptime"and"w"

-r,--percpu

DividetheloadaveragesbythenumberofCPUs(whenpossible)

二、举例

./check_load-w15,10,5-c30,25,20

解释:

1-w:设置警告阀值,15105分别代表当前、平均、最高负载值,如果超过就警告

2-c:设置critial阀值,302520分别代表当前,平均,最高负载值,如果超过就警告