nagios自带的插件check_disk用法-创新互联
nagios自带插件check_disk的用法
创新互联建站专注于企业网络营销推广、网站重做改版、宣城网站定制设计、自适应品牌网站建设、H5建站、商城网站建设、集团公司官网建设、外贸营销网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为宣城等各大城市提供网站开发制作服务。一、help帮助
check_diskv1.4.15(nagios-plugins1.4.15)
Thisplugincheckstheamountofuseddiskspaceonamountedfilesystem
andgeneratesanalertiffreespaceislessthanoneofthethresholdvalues
Usage:
check_disk-wlimit-climit[-Wlimit][-Klimit]{-ppath|-xdevice}
[-C][-E][-e][-ggroup][-k][-l][-M][-m][-Rpath][-rpath]
[-ttimeout][-uunit][-v][-Xtype]
Options:
-h,--help
Printdetailedhelpscreen
-V,--version
Printversioninformation
-w,--warning=INTEGER
ExitwithWARNINGstatusiflessthanINTEGERunitsofdiskarefree
-w,--warning=PERCENT%
ExitwithWARNINGstatusiflessthanPERCENTofdiskspaceisfree
-c,--critical=INTEGER
ExitwithCRITICALstatusiflessthanINTEGERunitsofdiskarefree
-c,--critical=PERCENT%
ExitwithCRITCALstatusiflessthanPERCENTofdiskspaceisfree
-W,--iwarning=PERCENT%
ExitwithWARNINGstatusiflessthanPERCENTofinodespaceisfree
-K,--icritical=PERCENT%
ExitwithCRITICALstatusiflessthanPERCENTofinodespaceisfree
-p,--path=PATH,--partition=PARTITION
Pathorpartition(mayberepeated)
-x,--exclude_device=PATH
Ignoredevice(onlyworksif-punspecified)
-C,--clear
Clearthresholds
-E,--exact-match
Forpathsorpartitionsspecifiedwith-p,onlycheckforexactpaths
-e,--errors-only
Displayonlydevices/mountpointswitherrors
-g,--group=NAME
Grouppaths.Thresholdsapplyto(free-)spaceofallpartitionstogether
-k,--kilobytes
Sameas'--unitskB'
-l,--local
Onlychecklocalfilesystems
-L,--stat-remote-fs
Onlychecklocalfilesystemsagainstthresholds.Yetcallstatonremotefilesystems
totestiftheyareaccessible(e.g.todetectStaleNFSHandles)
-M,--mountpoint
Displaythemountpointinsteadofthepartition
-m,--megabytes
Sameas'--unitsMB'
-A,--all
Explicitlyselectallpaths.Thisisequivalentto-R'.*'
-R,--eregi-path=PATH,--eregi-partition=PARTITION
Caseinsensitiveregularexpressionforpath/partition(mayberepeated)
-r,--ereg-path=PATH,--ereg-partition=PARTITION
Regularexpressionforpathorpartition(mayberepeated)
-I,--ignore-eregi-path=PATH,--ignore-eregi-partition=PARTITION
Regularexpressiontoignoreselectedpath/partition(caseinsensitive)(mayberepeated)
-i,--ignore-ereg-path=PATH,--ignore-ereg-partition=PARTITION
Regularexpressiontoignoreselectedpathorpartition(mayberepeated)
-t,--timeout=INTEGER
Secondsbeforeconnectiontimesout(default:10)
-u,--units=STRING
Choosebytes,kB,MB,GB,TB(default:MB)
-v,--verbose
Showdetailsforcommand-linedebugging(Nagiosmaytruncateoutput)
-X,--exclude-type=TYPE
Ignoreallfilesystemsofindicatedtype(mayberepeated)
二、举例:
./check_disk-w80%-c10%-p/
解释:
1、-w:设置警告阀值:如果空闲空间小于80%就是警告阀值
2、-c:设置critial阀值:如果空闲空间小于10%就是critial阀值
3、-p:指定监控的partition分区
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
网站名称:nagios自带的插件check_disk用法-创新互联
标题来源:http://azwzsj.com/article/cceosg.html