SlideShare a Scribd company logo
1 of 22
ZABBIX 介紹
Version:2.4.7
報告者:蔡秉軒
目錄
 簡介
 環境
 角色
 儀表板
 項目
 JMX
 警告訊息
 API
簡介
 用來監控網路和server的可用性和性能。
 根據事件,靈活配置郵件和訊息警報。
 將監控數據收集到資料庫,通過web界面進行展示。
 支持被動(polling)和主動(trapping)兩種方式獲取數據。
 參數配置、報表、數據展示全部通過web界面完成。
ZABBIX可以……
環境
 Software:ZABBIX 2.4.7
 Database:Mysql5.1.73
 Java:1.8.0_73
 JMX:Tomcat 8.0.9
 PHP:php5.4.16
 Server version:apache2.4.6
角色
 ZABBIX的角色主要分為三種:Server、Agent、Proxy
 Server:收到資料後繪製成圖表或依照設定的條件執行動作
 Agent:安裝在受測主機上用來收集資料
(又可分為主動式及被動式)
 Proxy:匯集資料後傳到Sever,分攤Sever的負荷,只能傳資料
Server和Proxy端的差異
Zabbix
Server
Zabbix
Proxy
Zabbix
Agent
Zabbix
Agent
Zabbix
Agent
Data
Config
Server Proxy
Dashboard YES NO
Alert YES NO
Remote
commands
YES NO
Calculating
triggers
YES NO
JMX.SNMP
check
YES YES
Agent
check
YES YES
Server
Server
為何要使用Proxy?
Db
GUI
Zabbix
Server
Server
Data
Data
Data
Zabbix
Sever
Server
Server
Db
Zabbix
Proxy
Proxy
Db
Zabbix
Proxy
Proxy
Db
Data
Data
Data
Data
Data
Data
1.分散處理降低Server負荷
2.若有使用防火牆只需考慮Proxy是否能通過
1.資料過多可能處理上會造成延遲
2.不方便大量控管
儀表板
 ZABBIX安裝完成後可以透過其內建的php在前端以網頁進行監控
 抓取到的數值可以在Last Data內看到
項目
 ZABBIX主要設定項目有四種:Host、Item、Trigger、Action
Host : 設定受測主機的ip位置及port
Item : 透過設置參數對指定的項目進行監控(2.0版後開始支援監控JMX)
Trigger : 定義數值的範圍,若超過設定的範圍則顯示Problem或OK
Action : Trigger觸發後傳送訊息或執行動作
另外可以透過Template將自訂好的項目import到其他主機上
 以下圖為例,曲線內代表host:50agent的item:cpu load的數值,而紅線代表trigge所
設定的警告界線,一旦超過後就會觸發action傳送警告訊息到slack內
JMX
 JMX透過Java Bean來傳遞訊息,這些訊息包括:系統訊息、統計訊息、系統配置等
 公司所開發的軟體主要是以Java編寫,因此發生狀況時我們可以透過JMX監控JVM的
狀態來得知軟體的哪一環節出現問題
 管理者也可藉此監控Skyport內大量的虛擬機 Management
System
JMX
Resource
以java-gateway進行JMX監控
 從2.0版本開始Zabbix自帶java-gateway,他接受來自 Zabbix server 或者Proxy的連
接,因此在每一個 Zabbix server 或代理中只能配置一個 Java gateway。如果一個主
機有 JMX agent 及其他類型的監控項,則只有 JMX agent 類型的監控項可以通過
Java gateway 進行監控。
 而使用方法只需將java-gateway相關ip設定好後,在tomcat的catalina.sh中加入JVM
參數即可使用,連接成功時host旁的JMX圖示會轉為藍色
以VisualVM獲得JMX參數
 由於JVM可視為一個Item,因此我們要對他進行監控的話需要有相對應的參數,但
JMX的Key在Zabbix中並沒有自行選擇的部份,因此我們必須另外透過VisualVM或
Jconsole等工具去獲得Mbean裡面的屬性。
 JMX KEY : "jmx[<"object name">,<"attribute name">]“
VisualVM
VisualVM安裝完成後下載Mbean的套件即可得到觀測對象的屬性。
警告訊息
 Zabbix支援的警告方式有以下幾種:Mail、SMS 、Jaber 、Ez Texting 、Script 以下介紹幾
種比較常見的
 Mail:要發送郵件要先設定SMTP相關參數,設定完後即可發送
 SMS:支援手機簡訊
 Script:可以在指定的資料夾內放入自行編寫的script讓zabbix讀取
 以上皆可在Media type內設定,完成後加在user的個人資料內。
向SLACK發送警告訊息
 如前述,Zabbix支援自行編寫的Script,因此我們可以先向Slack申請BOT,記下代碼
並寫入Script後放置在指定的資料夾內,如此一來便可在Slack內得到警告訊息。
確認訊息是否送出
 若是想確定訊息是否沒有送出或發生其他狀況的話可以在Audit內進行確認,若
Status狀態為Not Sent的話會顯示錯誤訊息在Info內
以API對Zabbix進行操作
 我們可以透過Zabbix API 進行新增、修改、刪除、查詢的動作,由於Zabbix API採用
jsonrpc2.0的協定,因此我們可以直接透過curl或php等其它程式語言post json格式
的請求至Zabbix 在遠端進行操作。
為何要使用API
 請求以JSON格式發送因此可應用於與其他系統做結合
 去除人工操作的時間,實現大量主機的自動化管理
 透過API能避免對資料庫進行直接修改
 遠程管理及監控系統效能
Zabbix 介紹

More Related Content

What's hot

Network access control (nac)
Network access control (nac)Network access control (nac)
Network access control (nac)cyberlocke
 
Fortinet FortiOS 5 Presentation
Fortinet FortiOS 5 PresentationFortinet FortiOS 5 Presentation
Fortinet FortiOS 5 PresentationNCS Computech Ltd.
 
Zabbix 3.2 presentation June 2017
Zabbix 3.2 presentation June 2017Zabbix 3.2 presentation June 2017
Zabbix 3.2 presentation June 2017Amirhossein Saberi
 
Cloud Computing and Vertualization
Cloud Computing and VertualizationCloud Computing and Vertualization
Cloud Computing and VertualizationReach Chirag
 
Guide to Risk Management Framework (RMF)
Guide to Risk Management Framework (RMF)Guide to Risk Management Framework (RMF)
Guide to Risk Management Framework (RMF)MetroStar
 
Alphorm.com Formation VMware vSphere 7 : La Mise à Niveau
Alphorm.com Formation VMware vSphere 7 : La Mise à NiveauAlphorm.com Formation VMware vSphere 7 : La Mise à Niveau
Alphorm.com Formation VMware vSphere 7 : La Mise à NiveauAlphorm
 
Information security management best practice
Information security management best practiceInformation security management best practice
Information security management best practiceparves kamal
 
Zabbix construindo templates personalizados (zabbix-inventory)
Zabbix construindo templates personalizados  (zabbix-inventory)Zabbix construindo templates personalizados  (zabbix-inventory)
Zabbix construindo templates personalizados (zabbix-inventory)Magno Monte Cerqueira
 
Introduction to SIEM.pptx
Introduction to SIEM.pptxIntroduction to SIEM.pptx
Introduction to SIEM.pptxneoalt
 
SIEM vs Log Management - Data Security Solutions 2011
SIEM vs Log Management - Data Security Solutions 2011 SIEM vs Log Management - Data Security Solutions 2011
SIEM vs Log Management - Data Security Solutions 2011 Andris Soroka
 
Pros and Cons of Mobile Device Management
Pros and Cons of Mobile Device ManagementPros and Cons of Mobile Device Management
Pros and Cons of Mobile Device ManagementXperteks
 
Top 10 Reasons Why F5 Makes Sense
Top 10 Reasons Why F5 Makes SenseTop 10 Reasons Why F5 Makes Sense
Top 10 Reasons Why F5 Makes SenseF5 Networks
 
IBM InfoSphere Guardium overview
IBM InfoSphere Guardium overviewIBM InfoSphere Guardium overview
IBM InfoSphere Guardium overviewnazeer325
 
AIXpert - AIX Security expert
AIXpert - AIX Security expertAIXpert - AIX Security expert
AIXpert - AIX Security expertdlfrench
 
Implementing CSIRT based on some frameworks and maturity model
Implementing CSIRT based on some frameworks and maturity modelImplementing CSIRT based on some frameworks and maturity model
Implementing CSIRT based on some frameworks and maturity modelRakuten Group, Inc.
 
VMware vSphere technical presentation
VMware vSphere technical presentationVMware vSphere technical presentation
VMware vSphere technical presentationaleyeldean
 

What's hot (20)

Network access control (nac)
Network access control (nac)Network access control (nac)
Network access control (nac)
 
Fortinet FortiOS 5 Presentation
Fortinet FortiOS 5 PresentationFortinet FortiOS 5 Presentation
Fortinet FortiOS 5 Presentation
 
Zabbix 3.2 presentation June 2017
Zabbix 3.2 presentation June 2017Zabbix 3.2 presentation June 2017
Zabbix 3.2 presentation June 2017
 
Cloud Computing and Vertualization
Cloud Computing and VertualizationCloud Computing and Vertualization
Cloud Computing and Vertualization
 
Software Engineering
Software Engineering Software Engineering
Software Engineering
 
Guide to Risk Management Framework (RMF)
Guide to Risk Management Framework (RMF)Guide to Risk Management Framework (RMF)
Guide to Risk Management Framework (RMF)
 
Alphorm.com Formation VMware vSphere 7 : La Mise à Niveau
Alphorm.com Formation VMware vSphere 7 : La Mise à NiveauAlphorm.com Formation VMware vSphere 7 : La Mise à Niveau
Alphorm.com Formation VMware vSphere 7 : La Mise à Niveau
 
What is SIEM
What is SIEMWhat is SIEM
What is SIEM
 
Information security management best practice
Information security management best practiceInformation security management best practice
Information security management best practice
 
Zabbix construindo templates personalizados (zabbix-inventory)
Zabbix construindo templates personalizados  (zabbix-inventory)Zabbix construindo templates personalizados  (zabbix-inventory)
Zabbix construindo templates personalizados (zabbix-inventory)
 
ch02_2.ppt
ch02_2.pptch02_2.ppt
ch02_2.ppt
 
Introduction to SIEM.pptx
Introduction to SIEM.pptxIntroduction to SIEM.pptx
Introduction to SIEM.pptx
 
SIEM vs Log Management - Data Security Solutions 2011
SIEM vs Log Management - Data Security Solutions 2011 SIEM vs Log Management - Data Security Solutions 2011
SIEM vs Log Management - Data Security Solutions 2011
 
Pros and Cons of Mobile Device Management
Pros and Cons of Mobile Device ManagementPros and Cons of Mobile Device Management
Pros and Cons of Mobile Device Management
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Top 10 Reasons Why F5 Makes Sense
Top 10 Reasons Why F5 Makes SenseTop 10 Reasons Why F5 Makes Sense
Top 10 Reasons Why F5 Makes Sense
 
IBM InfoSphere Guardium overview
IBM InfoSphere Guardium overviewIBM InfoSphere Guardium overview
IBM InfoSphere Guardium overview
 
AIXpert - AIX Security expert
AIXpert - AIX Security expertAIXpert - AIX Security expert
AIXpert - AIX Security expert
 
Implementing CSIRT based on some frameworks and maturity model
Implementing CSIRT based on some frameworks and maturity modelImplementing CSIRT based on some frameworks and maturity model
Implementing CSIRT based on some frameworks and maturity model
 
VMware vSphere technical presentation
VMware vSphere technical presentationVMware vSphere technical presentation
VMware vSphere technical presentation
 

Similar to Zabbix 介紹

JNC WMS Solution
JNC WMS SolutionJNC WMS Solution
JNC WMS SolutionJncits Tsai
 
Jnc wms solution
Jnc wms solutionJnc wms solution
Jnc wms solutionJncits Tsai
 
Ncut csie 102學年度專題成果簡報
Ncut csie 102學年度專題成果簡報Ncut csie 102學年度專題成果簡報
Ncut csie 102學年度專題成果簡報PN Wu (小平)
 
阿里巴巴运维自动化的探索与规划
阿里巴巴运维自动化的探索与规划阿里巴巴运维自动化的探索与规划
阿里巴巴运维自动化的探索与规划mysqlops
 
阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划
阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划
阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划colderboy17
 
深入研究 Windows 系統服務 效能調校與故障排除
深入研究 Windows 系統服務    效能調校與故障排除深入研究 Windows 系統服務    效能調校與故障排除
深入研究 Windows 系統服務 效能調校與故障排除5045033
 
淘宝网架构变迁和挑战(Oracle架构师日)
淘宝网架构变迁和挑战(Oracle架构师日)淘宝网架构变迁和挑战(Oracle架构师日)
淘宝网架构变迁和挑战(Oracle架构师日)vanadies10
 
Solution apc 4.0
Solution apc 4.0Solution apc 4.0
Solution apc 4.0ahnlabchina
 
M P R Tech 2008 R T E
M P R Tech 2008  R T EM P R Tech 2008  R T E
M P R Tech 2008 R T Eandychang
 
大型系统的Java中间件实践q con北京
大型系统的Java中间件实践q con北京大型系统的Java中间件实践q con北京
大型系统的Java中间件实践q con北京vanadies10
 
Vcon90 Final
Vcon90 FinalVcon90 Final
Vcon90 Finalxobo
 
深入研究雲端應用程式平台-AppFabric
深入研究雲端應用程式平台-AppFabric深入研究雲端應用程式平台-AppFabric
深入研究雲端應用程式平台-AppFabricJohn Chang
 
构建ActionScript游戏服务器,支持超过15000并发连接
构建ActionScript游戏服务器,支持超过15000并发连接 构建ActionScript游戏服务器,支持超过15000并发连接
构建ActionScript游戏服务器,支持超过15000并发连接 Renaun Erickson
 
网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维guiyingshenxia
 
网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维colderboy17
 
2018 8 18_play_framework
2018 8 18_play_framework2018 8 18_play_framework
2018 8 18_play_frameworkLorn Jhu
 

Similar to Zabbix 介紹 (20)

JNC WMS Solution
JNC WMS SolutionJNC WMS Solution
JNC WMS Solution
 
Jnc wms solution
Jnc wms solutionJnc wms solution
Jnc wms solution
 
1~60
1~601~60
1~60
 
Ncut csie 102學年度專題成果簡報
Ncut csie 102學年度專題成果簡報Ncut csie 102學年度專題成果簡報
Ncut csie 102學年度專題成果簡報
 
阿里巴巴运维自动化的探索与规划
阿里巴巴运维自动化的探索与规划阿里巴巴运维自动化的探索与规划
阿里巴巴运维自动化的探索与规划
 
阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划
阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划
阿里巴巴 肖劲青 阿里巴巴运维自动化的探索与规划
 
深入研究 Windows 系統服務 效能調校與故障排除
深入研究 Windows 系統服務    效能調校與故障排除深入研究 Windows 系統服務    效能調校與故障排除
深入研究 Windows 系統服務 效能調校與故障排除
 
淘宝网架构变迁和挑战(Oracle架构师日)
淘宝网架构变迁和挑战(Oracle架构师日)淘宝网架构变迁和挑战(Oracle架构师日)
淘宝网架构变迁和挑战(Oracle架构师日)
 
Solution apc 4.0
Solution apc 4.0Solution apc 4.0
Solution apc 4.0
 
敦群學院-SharePoint精英計畫-系統開發-Day 3
敦群學院-SharePoint精英計畫-系統開發-Day 3敦群學院-SharePoint精英計畫-系統開發-Day 3
敦群學院-SharePoint精英計畫-系統開發-Day 3
 
Berserk js
Berserk jsBerserk js
Berserk js
 
M P R Tech 2008 R T E
M P R Tech 2008  R T EM P R Tech 2008  R T E
M P R Tech 2008 R T E
 
大型系统的Java中间件实践q con北京
大型系统的Java中间件实践q con北京大型系统的Java中间件实践q con北京
大型系统的Java中间件实践q con北京
 
Vcon90 Final
Vcon90 FinalVcon90 Final
Vcon90 Final
 
Java@taobao
Java@taobaoJava@taobao
Java@taobao
 
深入研究雲端應用程式平台-AppFabric
深入研究雲端應用程式平台-AppFabric深入研究雲端應用程式平台-AppFabric
深入研究雲端應用程式平台-AppFabric
 
构建ActionScript游戏服务器,支持超过15000并发连接
构建ActionScript游戏服务器,支持超过15000并发连接 构建ActionScript游戏服务器,支持超过15000并发连接
构建ActionScript游戏服务器,支持超过15000并发连接
 
网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维
 
网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维网易 李弈远 网易服务集成框架的构建与运维
网易 李弈远 网易服务集成框架的构建与运维
 
2018 8 18_play_framework
2018 8 18_play_framework2018 8 18_play_framework
2018 8 18_play_framework
 

Zabbix 介紹