Cacti安裝測試(圖)
Cacti安裝配置測試及報警
本文講述的是Cacti安裝配置與測試。Cacti安裝配置、Cacti測試
測試:點擊Send a Test Email,測試成功如下所示:
收到的測試郵件范例:
- This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.
- Your email settings are currently set as follows
- Method: SMTP
- Host: mail.xok.la
- Port: 25
- Authenication: true
- Username: xok.la
- Password: (Not Shown for Security Reasons)
配置完成后別忘記save.
下面我以進程報警為例,來設(shè)置具體的報警信息(CPU,DISK,服務(wù),網(wǎng)絡(luò)等等)
在console選項卡下左側(cè)菜單中點擊Threshold Templates .
如果沒有出現(xiàn)Threshold Templates選項,那么有可能你還沒有導(dǎo)入插件的數(shù)據(jù)庫文件.
在如下圖所示中點擊Add按鈕來添加一個Threshold模板
添加進程監(jiān)控的模板,無論是linux還是windows都是使用的Host MIB - Processes
可以選擇proc
我設(shè)置的300個***進程
Alert E-Mail 寫上通知的郵件地址即可.然后保存.
應(yīng)用剛才創(chuàng)建的Threshold模板
在console選項卡下點擊Management ->Devices,選擇要應(yīng)用此模板的Host,點擊最上面的Create Graphs for this Host鏈接,然后點擊Auto-create thresholds鏈接來應(yīng)用剛創(chuàng)建的Threshold模板.
需要做的是,監(jiān)控的主機要設(shè)置監(jiān)控磁盤,如Associated Graph Templates ———- Host MIB - Processes 要選上,不然thold取不到數(shù)據(jù)的.
設(shè)置完成后在console選項卡下左側(cè)菜單中點擊Thresholds,在此可以管理已創(chuàng)建的警報,如下:
看第1條,Processes [proc] 300 ,超過300個進程數(shù),出現(xiàn)紅色警告了,那我們?nèi)タ此袥]有發(fā)信呢?
果然收到信件了…到此Cacti安裝配置測試及報警完成!***節(jié):Cacti安裝配置
【編輯推薦】