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

Monitoring all Elements of Your Database Operations With Zabbix
Monitoring all Elements of Your Database Operations With ZabbixMonitoring all Elements of Your Database Operations With Zabbix
Monitoring all Elements of Your Database Operations With ZabbixZabbix
 
Zabbix monitoring in 5 pictures
Zabbix monitoring in 5 pictures  Zabbix monitoring in 5 pictures
Zabbix monitoring in 5 pictures Nicola Mauri
 
Zabbix
ZabbixZabbix
ZabbixTensor
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationRevelation Technologies
 
Présentation de Zabbix - Zabbix Lyon - ZUG
Présentation de Zabbix - Zabbix Lyon - ZUGPrésentation de Zabbix - Zabbix Lyon - ZUG
Présentation de Zabbix - Zabbix Lyon - ZUGZabbix User Group
 
Zabbix, garder un oeil toujours ouvert
Zabbix, garder un oeil toujours ouvertZabbix, garder un oeil toujours ouvert
Zabbix, garder un oeil toujours ouvertLook a box
 
Modernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdf
Modernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdfModernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdf
Modernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdfAmazon Web Services
 
ABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon KinesisABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon KinesisAmazon Web Services
 
Monitoramento Enterprise com Zabbix+RHEL
Monitoramento Enterprise com Zabbix+RHELMonitoramento Enterprise com Zabbix+RHEL
Monitoramento Enterprise com Zabbix+RHELAlessandro Silva
 
AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...
AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...
AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...Amazon Web Services
 
[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어
[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어
[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어NHN FORWARD
 
Monitoring Oracle Database Instances with Zabbix
Monitoring Oracle Database Instances with ZabbixMonitoring Oracle Database Instances with Zabbix
Monitoring Oracle Database Instances with ZabbixGerger
 
Building a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStackBuilding a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStackAnimesh Singh
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueSachin-QA
 
Single Sign On using ADFS.pptx
Single Sign On using ADFS.pptxSingle Sign On using ADFS.pptx
Single Sign On using ADFS.pptxAlireza Vafi
 
Oracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsOracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsJames Bayer
 
Introduction to Kafka and Zookeeper
Introduction to Kafka and ZookeeperIntroduction to Kafka and Zookeeper
Introduction to Kafka and ZookeeperRahul Jain
 

What's hot (20)

Monitoring all Elements of Your Database Operations With Zabbix
Monitoring all Elements of Your Database Operations With ZabbixMonitoring all Elements of Your Database Operations With Zabbix
Monitoring all Elements of Your Database Operations With Zabbix
 
Zabbix monitoring in 5 pictures
Zabbix monitoring in 5 pictures  Zabbix monitoring in 5 pictures
Zabbix monitoring in 5 pictures
 
Zabbix
ZabbixZabbix
Zabbix
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c Administration
 
Présentation de Zabbix - Zabbix Lyon - ZUG
Présentation de Zabbix - Zabbix Lyon - ZUGPrésentation de Zabbix - Zabbix Lyon - ZUG
Présentation de Zabbix - Zabbix Lyon - ZUG
 
Zabbix, garder un oeil toujours ouvert
Zabbix, garder un oeil toujours ouvertZabbix, garder un oeil toujours ouvert
Zabbix, garder un oeil toujours ouvert
 
Modernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdf
Modernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdfModernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdf
Modernizing applications with Amazon EKS - MAD304 - Santa Clara AWS Summit.pdf
 
Weblogic
WeblogicWeblogic
Weblogic
 
ABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon KinesisABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
 
Monitoramento Enterprise com Zabbix+RHEL
Monitoramento Enterprise com Zabbix+RHELMonitoramento Enterprise com Zabbix+RHEL
Monitoramento Enterprise com Zabbix+RHEL
 
AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...
AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...
AWS re:Invent 2016: DNS Demystified: Getting Started with Amazon Route 53, fe...
 
[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어
[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어
[2018] NHN 모니터링의 현재와 미래 for 인프라 엔지니어
 
Monitoring Oracle Database Instances with Zabbix
Monitoring Oracle Database Instances with ZabbixMonitoring Oracle Database Instances with Zabbix
Monitoring Oracle Database Instances with Zabbix
 
Building a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStackBuilding a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStack
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
 
Test plan
Test planTest plan
Test plan
 
Single Sign On using ADFS.pptx
Single Sign On using ADFS.pptxSingle Sign On using ADFS.pptx
Single Sign On using ADFS.pptx
 
Introduction to weblogic
Introduction to weblogicIntroduction to weblogic
Introduction to weblogic
 
Oracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsOracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic Concepts
 
Introduction to Kafka and Zookeeper
Introduction to Kafka and ZookeeperIntroduction to Kafka and Zookeeper
Introduction to Kafka and Zookeeper
 

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 介紹