nagios自帶插件check_disk的用法
創(chuàng)新互聯(lián)建站專(zhuān)注于企業(yè)網(wǎng)絡(luò)營(yíng)銷(xiāo)推廣、網(wǎng)站重做改版、宣城網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5建站、商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)營(yíng)銷(xiāo)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為宣城等各大城市提供網(wǎng)站開(kāi)發(fā)制作服務(wù)。一、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/
解釋?zhuān)?/p>
1、-w:設(shè)置警告閥值:如果空閑空間小于80%就是警告閥值
2、-c:設(shè)置critial閥值:如果空閑空間小于10%就是critial閥值
3、-p:指定監(jiān)控的partition分區(qū)
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
網(wǎng)站標(biāo)題:nagios自帶的插件check_disk用法-創(chuàng)新互聯(lián)
文章分享:http://www.rwnh.cn/article36/cceosg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、品牌網(wǎng)站設(shè)計(jì)、全網(wǎng)營(yíng)銷(xiāo)推廣、Google、網(wǎng)站制作、域名注冊(cè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容