nagios自带插件check_load的用法
一、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:设置警告阀值,15,10,5分别代表当前、平均、最高负载值,如果超过就警告
2、-c:设置critial阀值,30,25,20分别代表当前,平均,最高负载值,如果超过就警告
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。