Zabbix Proxy

 

         Zabbix經過proxy能高效地監控分佈式IT架構,用於解決大量主機的跨機房監控問題。node

                   Zabbix Proxy負責收集本地區域的數據,而後將數據統一發送給Zabbix Server; mysql

                   配置示例:web

                            1.安裝mysql、zabbix-agent、zabbix-proxy(4.0沒有這個包)、zabbix-proxy-mysql;sql

                            2.爲Zabbix proxy建立數據庫及受權;數據庫

                                     mysql>create database zabbix_proxy character set utf8;vim

                                     mysql>grant all on zabbix_proxy.* to zbxuser@'182.168.80.%' identified by 'zbxpass';架構

                                     mysql>flush privileges;分佈式

                            3.導入schema;ide

                                     zcat /usr/share/doc/zabbix-server-mysql*/schema.sql.gz | mysql -uzbxuser -p zbxpass學習

                            4.配置Zabbix proxy:

                                     vim /etc/zabbix/zabbix_proxy.conf

                                               Server=192.168.80.128         指定Zabbix server的地址;

                                               HostName=node3.guowei.com   指定主機名;

                                               DSHost=192.168.80.130         指定數據庫地址;

                                               DBName=zabbix_proxy

                                               DBUser=zbxuser

                                               DBPassword=zbxpass

                                               HeartbeatFrequency=60         指定proxy探測server狀態的時間間隔;

                                               ConfigFrequency=3600           指定proxy到server拉取配置的時間間隔;

                                               DataSenderFrequency=1         指定proxy向server傳輸數據的時間間隔;

                            5.啓動zabbix proxy

                                     systemctl start zabbix-proxy.service

                            6.在web端配置proxy

                                     建立proxy

 

 

                                     使用proxy

                                               例子:建立主機時,就會出現下面的內容;

 

         Zabbix Database須要用到的空間:

                   Zabbix中每條歷史數據大約爲50Bytes;

                   歷史數據=天數*每秒鐘處理的數據量*24*3600*50Bytes

                   例子:     =90*1000(條)*24*3600*50

                  Zabbix中每條趨勢數據大約爲128Bytes;

                   趨勢數據=天數*監控項*128Bytes

                            以天爲單位;

                   Zabbix中每條事件數據大約爲130Bytes

                   事件數據=天數*24*3600*130Bytes

                            假設爲每秒一個;

 

    注:根據馬哥視頻作的學習筆記,若有錯誤,歡迎指正;侵刪

相關文章
相關標籤/搜索