您的位置:首页 > 移动开发 > IOS开发

nagios自带的插件check_disk用法

2013-10-17 16:18 246 查看
nagios自带插件check_disk的用法一、help帮助check_diskv1.4.15(nagios-plugins1.4.15)ThisplugincheckstheamountofuseddiskspaceonamountedfilesystemandgeneratesanalertiffreespaceislessthanoneofthethresholdvaluesUsage:check_disk-wlimit-climit[-Wlimit][-Klimit]{-ppath|-xdevice}[-C][-E][-e][-ggroup][-k][-l][-M][-m][-Rpath][-rpath][-ttimeout][-uunit][-v][-Xtype]Options:-h,--helpPrintdetailedhelpscreen-V,--versionPrintversioninformation-w,--warning=INTEGERExitwithWARNINGstatusiflessthanINTEGERunitsofdiskarefree-w,--warning=PERCENT%ExitwithWARNINGstatusiflessthanPERCENTofdiskspaceisfree-c,--critical=INTEGERExitwithCRITICALstatusiflessthanINTEGERunitsofdiskarefree-c,--critical=PERCENT%ExitwithCRITCALstatusiflessthanPERCENTofdiskspaceisfree-W,--iwarning=PERCENT%ExitwithWARNINGstatusiflessthanPERCENTofinodespaceisfree-K,--icritical=PERCENT%ExitwithCRITICALstatusiflessthanPERCENTofinodespaceisfree-p,--path=PATH,--partition=PARTITIONPathorpartition(mayberepeated)-x,--exclude_device=PATH<STRING>Ignoredevice(onlyworksif-punspecified)-C,--clearClearthresholds-E,--exact-matchForpathsorpartitionsspecifiedwith-p,onlycheckforexactpaths-e,--errors-onlyDisplayonlydevices/mountpointswitherrors-g,--group=NAMEGrouppaths.Thresholdsapplyto(free-)spaceofallpartitionstogether-k,--kilobytesSameas'--unitskB'-l,--localOnlychecklocalfilesystems-L,--stat-remote-fsOnlychecklocalfilesystemsagainstthresholds.Yetcallstatonremotefilesystemstotestiftheyareaccessible(e.g.todetectStaleNFSHandles)-M,--mountpointDisplaythemountpointinsteadofthepartition-m,--megabytesSameas'--unitsMB'-A,--allExplicitlyselectallpaths.Thisisequivalentto-R'.*'-R,--eregi-path=PATH,--eregi-partition=PARTITIONCaseinsensitiveregularexpressionforpath/partition(mayberepeated)-r,--ereg-path=PATH,--ereg-partition=PARTITIONRegularexpressionforpathorpartition(mayberepeated)-I,--ignore-eregi-path=PATH,--ignore-eregi-partition=PARTITIONRegularexpressiontoignoreselectedpath/partition(caseinsensitive)(mayberepeated)-i,--ignore-ereg-path=PATH,--ignore-ereg-partition=PARTITIONRegularexpressiontoignoreselectedpathorpartition(mayberepeated)-t,--timeout=INTEGERSecondsbeforeconnectiontimesout(default:10)-u,--units=STRINGChoosebytes,kB,MB,GB,TB(default:MB)-v,--verboseShowdetailsforcommand-linedebugging(Nagiosmaytruncateoutput)-X,--exclude-type=TYPEIgnoreallfilesystemsofindicatedtype(mayberepeated)二、举例:./check_disk-w80%-c10%-p/解释:1、-w:设置警告阀值:如果空闲空间小于80%就是警告阀值2、-c:设置critial阀值:如果空闲空间小于10%就是critial阀值3、-p:指定监控的partition分区
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nagios插件 check_disk