zabbix监控端口 zabbix默认端口

>Zabbix简介
官方网站:http://www.zabbix.com/
Zabbix 是企业级监控系统的开源解决方案,是一个基于 WEB 界面的分布式监控服务器 。
主要特点:
Zabbix 安装不配置简单,学习成本低,支持多语言(包括中文),免费开源,自动发现服务器与网络设备,分布式监视,良好的 WEB 界面交互等通知功能 。
Zabbix 主要监控服务器:CPU 负载、内存使用、磁盘使用、网络状态、端口监视、日志监视 。
Zabbix 运行机制
Zabbix Server 可以通过 SNMP,Zabbix agent,Ping,端口监视等方法监控服务器状态 。可以在 Linux,Solaris,HP-UX,AIX,FreeBSD,OpenBSD,OX X,Windows 多平台运行 。
Zabbix Agent 安装在被监控的服务器上,主要完成对内存,CPU,磁盘等信息收集 。
Agent [?e?d??nt] 代理人
Zabbix 运行过程图
Zabbix 运行过程图

zabbix监控端口 zabbix默认端口


(1)Agent 从服务器中收集相关数据,传送给 Zabbix Server
(2)Server 把数据存储到数据库中
(3)Server 把数据分析之后以 Web 页面,展示出来 。
zabbix-server 监听端口:10051 ; Agent 监控端口 10050。
服务端安装 Zabbix Server 和 Zabbix Agent 两个服务,客户端只安装 Zabbix Agent 一个服务 。
Zabbix 服务安装部署及监控配置
安装 LAMP 环境
我们需要先构建 LAMP 的环境,因为 Zabbix 通过 PHP 页面展示数据 。
1、安装 lamp 环境
yum -y install httpd mariadb mariadb-serveryum install centos-release-scl#安装官方扩展源yum -y install rh-php72#安装zabbix5.0所需rh-php-722、安装 zabbix 需要的 php 库
后续安zabbix5.0要求安装
安装 Zabbix-server
1、安装 zabbix yum 源
**注:**zabbix 官方源在中国无法使用,而且每个人网络环境无法保障,所以我们可以选择配置本地 yum源进行离线安装 。
xshell上传所需rpm包
zabbix监控端口 zabbix默认端口


清华大学镜像源下载,附地址:
https://mirrors.tuna.tsinghua.edu.cn/zabbix/
yum源
yum -y install https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm依次安装
依赖包装一下
yum install OpenIPMI OpenIPMI-libs OpenIPMI-modaliasunixODBC fping -y【zabbix监控端口 zabbix默认端口】rpm -ivh 这边不作详细描述
zabbix-agent #客户端zabbix-web #zabbix的web页面zabbix-server-mysql #服务器包zabbix-apache-conf #Apache conf.d下配置文件 ( 4.4装完web-mysql httpd配置文件下会有zabbix.conf 5.0的话需要单独安装)
server安装过程中会提示需要php依赖 。
zabbix-web-deps-scl 这个需要php扩展包若干 。
rh-php72-php-mysqlndrh-php72-php-bcmath rh-php72-php-fpm rh-php72-php-gd rh-php72-php-ldap rh-php72-php-mbstringyum -y install rh-php72-php-mysqlndyum -y install rh-php72-php-bcmath rh-php72-php-fpm rh-php72-php-gd rh-php72-php-ldap rh-php72-php-mbstring依赖解决之后 zabbix5.0所需六个包全部装好 。
配置Zabbix Server
启动数据库
systemctl restart mariadb.servicesystemctl enable mariadb.servicesystemctl stop firewalld && systemctl disable firewalld #关闭防火墙创建初始数据库
mysql -urootMariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;**注:**character set utf8:设置数据库的默认字符集编码为 utf8 ;collate utf_bin:是以二进制值比较,也就是区分大小写,collate 是核对的意思character [?k?r?kt??] 特征 ; collate [k??le?t] 核对,整理MariaDB [(none)]>grant all privileges on zabbix.* to zabbix@localhost identified by\'password\';**注:**创建 zabbix 用户,密码是 passwodMariaDB [(none)]> exit;

推荐阅读