中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

nagios自帶的插件check_disk用法

發布時間:2020-07-10 23:59:37 來源:網絡 閱讀:3215 作者:yulei7633 欄目:移動開發

nagios自帶插件check_disk的用法

一、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<STRING>

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分區

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

濉溪县| 兴化市| 通渭县| 梅河口市| 廊坊市| 晋中市| 夏邑县| 孟津县| 许昌市| 澜沧| 阳春市| 廊坊市| 新安县| 左云县| 十堰市| 出国| 阜南县| 绿春县| 抚州市| 赤壁市| 晴隆县| 盐池县| 湖北省| 三门峡市| 阳江市| 泌阳县| 泗阳县| 滁州市| 土默特左旗| 连城县| 宁安市| 廊坊市| 始兴县| 洞头县| 博湖县| 大埔县| 农安县| 洱源县| 额尔古纳市| 丘北县| 垣曲县|