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_ping的用法
- nagios自带插件check_users用法
- nagios自带插件check_swap的用法
- nagios自带插件check_http详解及用法实例
- nagios自带插件check_load的用法
- nagios自带插件check_http用法
- Nagios下自带的check_mysql_query插件说明
- nagios插件check_log检查日记关键字
- nagios无法安装check_mysql插件的问题
- nagios 监控mysql(check_mysql_health插件)
- nagios 插件check_tcp与check_udp用法
- nagios 监控流量插件check_traffic
- nagios的check_ping插件学习
- 运维黑暗料理--nagios插件check_procs出现unsport options
- Nagios插件check_traffic.sh问题
- 一款德国的Nagios插件---Check_mk 搭建
- redhat--nagios插件--check_traffic.sh
- nagios监控插件 nagios_oracle_health+check_linux_stats.pl
- Nagios监控内存插件check_mem
- Nagios监控内存插件check_mem配置