真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

CentOS7.7yum方式安裝配置Zabbix4.0LTS詳解(九)

十一、使用Zabbix Proxy模式添加Linux主機(jī):

站在用戶(hù)的角度思考問(wèn)題,與客戶(hù)深入溝通,找到香洲網(wǎng)站設(shè)計(jì)與香洲網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶(hù)體驗(yàn)好的作品,建站類(lèi)型包括:成都做網(wǎng)站、網(wǎng)站制作、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、域名申請(qǐng)、虛擬空間、企業(yè)郵箱。業(yè)務(wù)覆蓋香洲地區(qū)。

1、Zabbix Proxy分布式監(jiān)控簡(jiǎn)單說(shuō)明:

Zabbix Proxy收集各個(gè)Zabbix Agent的數(shù)據(jù),并將收集到的數(shù)據(jù)統(tǒng)一匯報(bào)給Zabbix Server

2、sh-proxy節(jié)點(diǎn)部署和zabbix-server節(jié)點(diǎn)一致的MySQL 5.7

3、sh-proxy節(jié)點(diǎn)創(chuàng)建zabbix_proxy數(shù)據(jù)庫(kù)和'zbxproxy'@'192.168.0.%'用戶(hù),并授權(quán)'zbxproxy'@'192.168.0.%'用戶(hù)遠(yuǎn)程管理:

# mysql -uroot -p

mysql> create database zabbix_proxy character set utf8 collate utf8_bin;

mysql> create user 'zbxproxy'@'192.168.0.%' identified by '123456';

mysql> grant all on zabbix_proxy.* to 'zbxproxy'@'192.168.0.%';

mysql> flush privileges;

4、sh-proxy節(jié)點(diǎn)安裝zabbix-proxy-mysql軟件包:# yum -y install zabbix-proxy-mysql

5、sh-proxy節(jié)點(diǎn)導(dǎo)入schema.sql文件,初始化zabbix_proxy數(shù)據(jù)庫(kù):

# zcat /usr/share/doc/zabbix-proxy-mysql-4.0.14/schema.sql.gz | mysql -uzbxproxy -h292.168.0.121 -p zabbix_proxy

6、sh-proxy節(jié)點(diǎn)修改zabbix_proxy.conf配置文件:

# cd /etc/zabbix

# cp zabbix_proxy.conf{,.bak}

# vim zabbix_proxy.conf

修改前

修改后

# ProxyMode=0

ProxyMode=0

Server=127.0.0.1

Server=192.168.0.120

# ServerPort=10051

ServerPort=10051

Hostname=Zabbix proxy

Hostname=sh-proxy

# ListenPort=10051

ListenPort=10051

# LogType=file

LogType=file

LogFile=/var/log/zabbix/zabbix_proxy.log

保持默認(rèn)

# DBHost=localhost

DBHost=192.168.0.121

DBName=zabbix_proxy

保持默認(rèn)

DBUser=zabbix

DBUser=zbxproxy

# DBPassword=

DBPassword=123456

# DBSocket=

DBSocket=/var/lib/mysql/mysql.sock

# DBPort=

DBPort=3306

# HeartbeatFrequency=60

HeartbeatFrequency=60

# ConfigFrequency=3600

ConfigFrequency=3600

# DataSenderFrequency=1

DataSenderFrequency=1

# ListenIP=0.0.0.0

ListenIP=192.168.0.121

ExternalScripts=/usr/lib/zabbix/externalscripts

保持默認(rèn)

# AllowRoot=0

AllowRoot=0

# User=zabbix

User=zabbix

7、sh-proxy節(jié)點(diǎn)啟動(dòng)Zabbix Proxy:

# systemctl start zabbix-proxy

# systemctl status zabbix-proxy

# ps aux | grep zabbix_proxy

# ss -tunlp | grep -w 10051

# tail -100 /var/log/zabbix/zabbix_proxy.log

8、配置開(kāi)機(jī)自啟:# systemctl enable zabbix-proxy

9、node-122節(jié)點(diǎn)修改zabbix_agentd.conf配置文件,將參數(shù)Server和ServerActive的值修改為sh-proxy節(jié)點(diǎn)所對(duì)應(yīng)的IP:

# vim /etc/zabbix/zabbix_agentd.conf

修改前

修改后

PidFile=/var/run/zabbix/zabbix_agentd.pid

保持默認(rèn)

# LogType=file

LogType=file

LogFile=/var/log/zabbix/zabbix_agentd.log

保持默認(rèn)

LogFileSize=0

保持默認(rèn)

# EnableRemoteCommands=0

EnableRemoteCommands=1

Server=127.0.0.1

Server=192.168.0.121

# ListenPort=10050

ListenPort=10050

# ListenIP=0.0.0.0

ListenIP=192.168.0.122

ServerActive=127.0.0.1

ServerActive=192.168.0.121

Hostname=Zabbix server

Hostname=node-122

# AllowRoot=0

AllowRoot=0

# User=zabbix

User=zabbix

Include=/etc/zabbix/zabbix_agentd.d/*.conf

保持默認(rèn)

# UnsafeUserParameters=0

UnsafeUserParameters=1

10、node-122節(jié)點(diǎn)重啟Zabbix Agent:# systemctl restart zabbix-agent

11、sh-proxy節(jié)點(diǎn)重啟Zabbix Proxy:# systemctl restart zabbix-proxy

12、sh-proxy節(jié)點(diǎn)使用zabbix-get進(jìn)行取值測(cè)試:

# yum -y install zabbix-get

# zabbix_get -s 192.168.0.122 -k system.uname

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

13、Zabbix Web新增proxy:

Administration --> Proxies --> Create proxy --> Add

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

14、Zabbix Web修改node-122節(jié)點(diǎn)“Monitored by proxy”的值為sh-proxy:

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

15、查看node-122節(jié)點(diǎn)最新監(jiān)控?cái)?shù)據(jù):

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

16、sh-proxy節(jié)點(diǎn)安裝zabbix-agent軟件包:# yum -y install zabbix-agent

17、sh-proxy節(jié)點(diǎn)修改zabbix_agentd.conf配置文件:

# cd /etc/zabbix

# cp zabbix_agentd.conf{,.bak}

# vim zabbix_agentd.conf

修改前

修改后

PidFile=/var/run/zabbix/zabbix_agentd.pid

保持默認(rèn)

# LogType=file

LogType=file

LogFile=/var/log/zabbix/zabbix_agentd.log

保持默認(rèn)

LogFileSize=0

保持默認(rèn)

# EnableRemoteCommands=0

EnableRemoteCommands=1

Server=127.0.0.1

Server=192.168.0.121

# ListenPort=10050

ListenPort=10050

# ListenIP=0.0.0.0

ListenIP=192.168.0.121

ServerActive=127.0.0.1

ServerActive=192.168.0.121

Hostname=Zabbix server

Hostname=sh-proxy

# AllowRoot=0

AllowRoot=0

# User=zabbix

User=zabbix

Include=/etc/zabbix/zabbix_agentd.d/*.conf

保持默認(rèn)

# UnsafeUserParameters=0

UnsafeUserParameters=1

說(shuō)明:Server和ServerActive參數(shù)中配置的不是Zabbix Server的IP,而是Zabbix Proxy自己的IP

18、sh-proxy節(jié)點(diǎn)啟動(dòng)Zabbix Agent:

# systemctl start zabbix-agent

# systemctl status zabbix-agent

# ps aux | grep zabbix_agent

# ss -tunlp | grep -w 10050

# tail -100 /var/log/zabbix/zabbix_agentd.log

19、配置開(kāi)機(jī)自啟:# systemctl enable zabbix-agent

20、sh-proxy節(jié)點(diǎn)重啟Zabbix Proxy:# systemctl restart zabbix-proxy

21、Zabbix Web添加sh-proxy節(jié)點(diǎn):

Configuration --> Hosts --> Create host --> Add

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

22、sh-proxy節(jié)點(diǎn)鏈接Linux監(jiān)控模板:

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

23、查看sh-proxy節(jié)點(diǎn)最新監(jiān)控?cái)?shù)據(jù):

CentOS 7.7 yum方式安裝配置Zabbix 4.0 LTS詳解(九)

?

?


本文標(biāo)題:CentOS7.7yum方式安裝配置Zabbix4.0LTS詳解(九)
文章來(lái)源:http://weahome.cn/article/ipeods.html

其他資訊

在線咨詢(xún)

微信咨詢(xún)

電話(huà)咨詢(xún)

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部