Zabbix Proxy

 

         Zabbix通过proxy能高效地监控分布式IT架构,用于解决大量主机的跨机房监控问题。

                   Zabbix Proxy负责收集本地区域的数据,然后将数据统一发送给Zabbix Server; 

                   配置示例:

                            1.安装mysql、zabbix-agent、zabbix-proxy(4.0没有这个包)、zabbix-proxy-mysql;

                            2.为Zabbix proxy创建数据库及授权;

                                     mysql>create database zabbix_proxy character set utf8;

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

                                     mysql>flush privileges;

                            3.导入schema;

                                     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

Zabbix Proxy Zabbix Proxy

 

                                     使用proxy

                                               例子:创建主机时,就会出现下面的内容;

Zabbix Proxy 

         Zabbix Database需要用到的空间:

                   Zabbix中每条历史数据大约为50Bytes;

                   历史数据=天数*每秒钟处理的数据量*24*3600*50Bytes

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

                  Zabbix中每条趋势数据大约为128Bytes;

                   趋势数据=天数*监控项*128Bytes

                            以天为单位;

                   Zabbix中每条事件数据大约为130Bytes

                   事件数据=天数*24*3600*130Bytes

                            假设为每秒一个;

 

    注:根据马哥视频做的学习笔记,如有错误,欢迎指正;侵删

上一篇:STM32F103的DAC功能完成波形输出,用示波器观察波形,并用蜂鸣器或手机耳机收听输出声音效果、感受歌曲的音质差异。


下一篇:Music Problem