二、修改Zabbix Web 預設設定
Configuration:
Host:
Configuration → hosts
Enable Zabbix server 監控
Host Group:
Configuration → host groups
建立Windows servers
Discovery:
Configuration → Discovery
修改Discovery rules:用於自動發現agent端並自動加入監控
Actions:
Triggers:
Configuration → Actions → Triggers
Enable Triggers:Report problems to Zabbix administrators
Discovery:
Configuration → Actions → Discovery
Discovery Actions預設會有一個Discovery Actions,”Discovery Auto discovery. Linux servers”請修改為Enabled。
Create Actions:
新建Discovery Actions,”Discovery Auto discovery. Windows.
定義Action Name及Conditions條件:
定義Operations操作
Discovery Actions建立如下
Auto Registration:
Configuration → Actions → Auto Registration
新建Auto Registration Actions: agent-active-windows、agent-active-windows
定義Action Name及Conditions條件:
定義Operations操作
Auto Registration建立如下
Template :
Configuration → Template
新增Template ( Template OS Windows active、Template OS Linux active ):
Full Clone “Template OS Linux” to “Template OS Linux active”、 Full Clone “Template OS Windows” to “Template OS Windows active”並修改相關Type 為Zabbix agent active
修改所有items:Type 改為Zabbix agent active
修改Discovery rules:Type 改為Zabbix agent active
修改所有item prototypes:Type 改為Zabbix agent active
Administration:
General:
Other configuration parameters:
Administration → General → Other configuration parameters
修改Default Host Inventory : Disabled → Automatic
Regular expressions:
Administration → General →Regular expressions
問題描述:
Zabbix 監控 windows系統,默認情況 zabbix 監控 windows網卡流量是監控所有網路介面卡的流量,
因為一些無關的網路介面卡存在,在查看網路流量時非常不方便,我們需要過濾一些無關的網路介面卡,這需要使用zabbix 的正規表達式實現過濾。
修改Network interfaces for discovery,加入一些正規表達式實現過濾
Administration → General →Regular expressions → Network interfaces for discovery
Media types:
E-mail設置:
Administration → Media types,點擊媒體類型列表中的Email,以配置E-mail。
Users:
Administration → Users
Zabbix在安裝後只定義了兩個使用者。
'Admin' 使用者是Zabbix的一個超級管理員,擁有所有權限。
'Guest' 使用者是一個特殊的默認使用者。如果你沒有登入,你訪問Zabbix的時候使用的其實是「guest」權限。默認情況下,「guest」使用者對Zabbix中的物件沒有任何權限。
修改Admin使用者
修改Admin使用者Email
Inventory
完成設定後,當被監控主機安裝zabbix-agent並啟動後,會自動註冊至zabbix-server監控並自動加入Inventory。
Inventory→ Hosts
進入主機後Overview頁面可以看到該主機Monitoring及Configuration項目
Monitoring:
Dashboard:
Zabbix Dashboard:
Zabbix監控數據與報警是分開的,查看問題監控項目需要看『觸發器/Triggers』,查看監控數據在『最新數據/Latest data』查看,查看監控趨勢圖表在『圖表/Graphs』查看,查看自訂聚合展示圖在『Screen』查看,查看拓墣圖在『拓墣圖/Maps』查看。