日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Zabbix的客户端安装教程

發(fā)布時間:2025/4/16 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Zabbix的客户端安装教程 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Zabbix的客戶端安裝教程

  • 一、Zabbix客戶端及其它相關(guān)介紹
  • 二、Zabbix客戶端安裝步驟
  • 三、測試安裝結(jié)果

一、Zabbix客戶端及其它相關(guān)介紹

1.zabbix是一個基于WEB界面的提供分布式系統(tǒng)監(jiān)視以及網(wǎng)絡(luò)監(jiān)視功能的企業(yè)級的開源解決方案
2.zabbix由2部分構(gòu)成,zabbix server與可選組件zabbix agent。
3.Zabbix_Agent:zabbix-agent為客戶端軟件,用于采集各監(jiān)控項目的數(shù)據(jù),并把采集的數(shù)據(jù)傳輸給zabbix-proxy或zabbix-server。
4.zabbix server:可以通過SNMP,zabbix agent,ping,端口監(jiān)視等方法提供對遠程服務(wù)器/網(wǎng)絡(luò)狀態(tài)的監(jiān)視,數(shù)據(jù)收集等功能,它可以運行在Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X等平臺上。

二、Zabbix客戶端安裝步驟

1.開通10050端口用于和Zabbix-server通信

[root@control ~]# firewall-cmd --permanent --add-port=10050/tcp success [root@control ~]# firewall-cmd --reload success

2.SELINUX關(guān)閉

[root@control ~]# setenforce 0 [root@control ~]# getenforce Permissive [root@control ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config [root@control ~]# grep SELINUX /etc/selinux/config # SELINUX= can take one of these three values: SELINUX=disabled # SELINUXTYPE= can take one of these three values: SELINUXTYPE=targeted

3.安裝Zabbix-agent

[root@control ~]# yum -y install https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/8/x86_64/zabbix-agent2-5.0.9-1.el8.x86_64.rpm Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. AppStream 0.0 B/s | 0 B 00:00 BaseOS 0.0 B/s | 0 B 00:00 Failed to synchronize cache for repo 'AppStream', ignoring this repo. Failed to synchronize cache for repo 'BaseOS', ignoring this repo. Last metadata expiration check: 0:57:08 ago on Thu 06 May 2021 12:01:05 AM CST. zabbix-agent2-5.0.9-1.el8.x86_64.rpm 2.7 MB/s | 5.4 MB 00:02 Dependencies resolved. ==================================================================================================================================================================Package Arch Version Repository Size ================================================================================================================================================================== Installing:zabbix-agent2 x86_64 5.0.9-1.el8 @commandline 5.4 MTransaction Summary ================================================================================================================================================================== Install 1 PackageTotal size: 5.4 M Installed size: 18 M Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transactionPreparing : 1/1 Running scriptlet: zabbix-agent2-5.0.9-1.el8.x86_64 1/1 Installing : zabbix-agent2-5.0.9-1.el8.x86_64 1/1 Running scriptlet: zabbix-agent2-5.0.9-1.el8.x86_64 1/1 Verifying : zabbix-agent2-5.0.9-1.el8.x86_64 1/1 Installed products updated.Installed:zabbix-agent2-5.0.9-1.el8.x86_64 Complete!

4.安裝zabbix-sender

[root@control ~]# yum -y install https://repo.huaweicloud.com/zabbix/zabbix/5.0/rhel/8/x86_64/zabbix-sender-5.0.9-1.el8.x86_64.rpm Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. AppStream 0.0 B/s | 0 B 00:00 BaseOS 0.0 B/s | 0 B 00:00 Failed to synchronize cache for repo 'AppStream', ignoring this repo. Failed to synchronize cache for repo 'BaseOS', ignoring this repo. Last metadata expiration check: 0:58:44 ago on Thu 06 May 2021 12:01:05 AM CST. zabbix-sender-5.0.9-1.el8.x86_64.rpm 281 kB/s | 364 kB 00:01 Dependencies resolved. ==================================================================================================================================================================Package Arch Version Repository Size ================================================================================================================================================================== Installing:zabbix-sender x86_64 5.0.9-1.el8 @commandline 364 kTransaction Summary ================================================================================================================================================================== Install 1 PackageTotal size: 364 k Installed size: 1.6 M Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transactionPreparing : 1/1 Installing : zabbix-sender-5.0.9-1.el8.x86_64 1/1 Running scriptlet: zabbix-sender-5.0.9-1.el8.x86_64 1/1 Verifying : zabbix-sender-5.0.9-1.el8.x86_64 1/1 Installed products updated.Installed:zabbix-sender-5.0.9-1.el8.x86_64 Complete!

5.配置/etc/zabbix/zabbix.agentd.conf

Server=192.168.200.129### Option: ListenPort # Agent will listen on this port for connections from the server. # # Mandatory: no # Range: 1024-32767 # Default: # ListenPort=10050### Option: ListenIP # List of comma delimited IP addresses that the agent should listen on. # First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks. # # Mandatory: no # Default: # ListenIP=0.0.0.0### Option: StatusPort # Agent will listen on this port for HTTP status requests. # # Mandatory: no # Range: 1024-32767 # Default: # StatusPort=##### Active checks related### Option: ServerActive # List of comma delimited IP:port (or DNS name:port) pairs of Zabbix servers and Zabbix proxies for active checks. # If port is not specified, default port is used. # IPv6 addresses must be enclosed in square brackets if port for that host is specified. # If port is not specified, square brackets for IPv6 addresses are optional. # If this parameter is not specified, active checks are disabled. # Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1] # # Mandatory: no # Default: # ServerActive=ServerActive=192.168.200.129### Option: Hostname # Unique, case sensitive hostname. # Required for active checks and must match hostname as configured on the server. # Value is acquired from HostnameItem if undefined. # # Mandatory: no # Default: # Hostname=Hostname=192.168.200.129

6.啟動服務(wù)

[root@control ~]# systemctl enable --now zabbix-agent2.service Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent2.service → /usr/lib/systemd/system/zabbix-agent2.service.

三、測試安裝結(jié)果

1.服務(wù)端添加被監(jiān)控主機


總結(jié)

以上是生活随笔為你收集整理的Zabbix的客户端安装教程的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。