学习目标:
了解、掌握zabbix的搭建和操作
学习内容:
1、zabbix介绍
- Zabbix 是由 Alexei Vladishev 开发的⼀种⽹络监视、管理系统,基于 Server-Client
架构。可⽤于监视各种⽹络服务、服务器和⽹络机器等状态。 - 使⽤各种 Database-end 如 MySQL, PostgreSQL, SQLite, Oracle 或 IBM DB2
储存资料。Server 端基于 C语⾔、Web 管理端 frontend 则是基于 PHP 所 制作的。 - 在客户端如 UNIX, Windows 中安装 Zabbix Agent 之后,可监视 CPU Load、⽹络使⽤状况、硬盘容量等各种状态。⽽就算没有安装 Agent 在监视对象中,Zabbix 也可以经 SNMP、TCP、ICMP、利⽤ IPMI、SSH、telnet 对⽬标进⾏监视。
- Zabbbix⾃带的Item⾜够满⾜普通⼩公司的监控需求,对于⼤公司也可以设定⾃定义的Item,⾃动⽣成报表,也有API可以和其他系统集成。
zabbix监控的优势
zabbix可以满足理想化的监控系统需求:
- ⽀持⾃定义监控脚本,提供需要输出的值即可
- zabbix存储的数据库表结构稍有复杂但是逻辑清晰
- zabbix存在模板的概念,可以⽅便的将⼀组监控项进⾏部署
- zabbix每⼀个item也就是监控项,都可以看到历史记录,且web界⾯友好
- zabbix有强⼤的Trigger(触发器)定义规则,可以定义复杂的报警逻辑
- zabbix提供了ack报警确认机制
- zabbix⽀持邮件,短信,微信等告警
- zabbix在触发告警后,可以远程执⾏系统命令
- zabbix有原⽣的PHP绘图模块
zabbix专有词汇了解
- zabbix server,服务端,收集数据,写⼊数据
- zabbix agent,部署在被监控的机器上,是⼀个进程,和zabbix server进⾏交互,以及负责执⾏命令
- Host,服务器的概念,指zabbix监控的实体,服务器,交换机等
- Hosts,主机组
- Applications,应⽤
- Events,事件
- Media,发送通知的通道
- Remote command,远程命令
- Template,模板
- Item,对于某⼀个指标的监控,称之为Items,如某台服务器的内存使⽤状况,就是⼀个item监控项
- Trigger,触发器,定义报警的逻辑,有正常,异常,未知三个状态
- Action,当Trigger符合设定值后,zabbix指定的动作,如发个邮件给自己,说服务器有问题了
zabbix程序组件
- Zabbix_server,服务端守护进程
- Zabbix_agentd,agent守护进程
- zabbix_proxy,代理服务器
- zabbix_database,存储系统,mysql,pgsql
- Zabbix_web,web GUI图形化界⾯
- Zabbix_get,命令⾏⼯具,测试向agent发起数据采集请求
- Zabbix_sender,命令⾏⼯具,测试向server发送数据
- Zabbix_java_gateway,java⽹关
2、zabbix 5.0的安装实操
5.0 版本对基础环境的要求有⼤的变化,最⼤的就是对 php 版本的要求,最低要求
7.2.0 版本,对 php 扩展组件版本也有要求,详⻅官⽹⽂档
https://www.zabbix.com/documentation/current/manual/installatio
n/requirements
准备好⼀台linux服务器,ip地址,设置
[root@zabbix_server ~]# ifconfig eth0 | awk 'NR==2{print $0}' |awk -F ' ' '{print $2}'
172.28.102.129
[root@zabbix_server ~]# hostname
zabbix_server
关闭防火墙selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
[root@zabbix_server selinux]# grep '^SELINUX' config
SELINUX=disabled
systemctl disable --now firewalld
zabbix服务端安装配置
官方文档链接:
https://www.zabbix.com/download?zabbix=5.0&os_distribution=red_hat_enterprise_linux&os_version=7&db=mysql&ws=apache
安装步骤:
- 获取zabbix官方源
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
安装完成后可以在yum仓库看到
[root@zabbix_server yum.repos.d]# ll
total 28
-rw-r--r-- 1 root root 675 Apr 20 09:00 CentOS-Base.repo
-rw-r--r-- 1 root root 998 Dec 11 2018 CentOS-SCLo-scl.repo
-rw-r--r-- 1 root root 971 Oct 29 2018 CentOS-SCLo-scl-rh.repo
-rw-r--r-- 1 root root 230 Apr 20 09:00 epel.repo
-rw-r--r-- 1 root root 1358 Sep 5 2021 epel.repo.rpmnew
-rw-r--r-- 1 root root 1457 Sep 5 2021 epel-testing.repo
-rw-r--r-- 1 root root 893 Apr 20 14:55 zabbix.repo
[root@zabbix_server yum.repos.d]# pwd
/etc/yum.repos.d
- 更换zabbix.repo源,默认是zabbix官方的,此处更改为阿里云的源,这⼀步很重要
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
此时再进文件查看确认是否更改完成
[root@zabbix_server yum.repos.d]# cat zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-frontend]
name=Zabbix Official Repository frontend - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/frontend
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-debuginfo]
name=Zabbix Official Repository debuginfo - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/debuginfo/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
gpgcheck=1
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/non-supported/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1
- 清空yum缓存,下载zabbix服务器
yum clean all
- 安装zabbix server和agent
yum install zabbix-server-mysql zabbix-agent -y
- 安装 Software Collections,便于后续安装⾼版本的 php,默认 yum 安装的 php 版本为 5.4过低。SCL(Software
Collections)可以让你在同⼀个操作系统上安装和使⽤多个版本的软件,⽽不会影响整个系统的安装包。软件包会安装在/opt/rh⽬录下,为了避免系统⼴泛冲突,/opt/rh包安装在⽬录中,例如,这允许你在CentOS7机器上安装Python3.5,⽽不会删除或⼲扰Python 2.7. /etc/opt/rh/软件包的所有配置⽂件都存储在⽬录中相应的⽬录中,SCL包提供了定义使⽤所包含应⽤程序所需的环境变量的shell脚本,例如,PATH,LD_LIBRARY_PATH和MANPATH,这些脚本存储在⽂件系统中,作为/opt/rh/package-name/enable 。
yum install centos-release-scl -y
- 修改zabbix前端源
vim /etc/yum.repos.d/zabbix.repo
[zabbix-frontend]
name=Zabbix Official Repository frontend - $basearch
baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$b
asearch/frontend
enabled=1 # 修改这⾥
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
- 安装zabbix前端环境,且是安装到scl环境下
yum install zabbix-web-mysql-scl zabbix-nginx-conf-scl -y
- 安装zabbix所需的数据库,直接⽤centos7⾃带的mariadb,当然也可以使用mysql,根据个人喜好
yum install mariadb-server -y
- 启动数据库,且配置开机启动
systemctl enable --now mariadb
Created symlink from /etc/systemd/system/multiuser.target.wants/mariadb.service to
/usr/lib/systemd/system/mariadb.service.
[root@zabbix_server rh]# systemctl status mariadb
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2022-04-20 15:09:24 CST; 1 weeks 0 days ago
Main PID: 4386 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─4386 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─4552 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --sock...
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: MySQL manual for more instructions.
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: Please report any problems at http://mariadb.org/jira
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: The latest information about MariaDB is available at http://mariadb.org/.
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: You can find additional information about the MySQL part at:
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: http://dev.mysql.com
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: Consider joining MariaDB's strong and vibrant community:
Apr 20 15:09:22 zabbix_server mariadb-prepare-db-dir[4298]: https://mariadb.org/get-involved/
Apr 20 15:09:22 zabbix_server mysqld_safe[4386]: 220420 15:09:22 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Apr 20 15:09:22 zabbix_server mysqld_safe[4386]: 220420 15:09:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Apr 20 15:09:24 zabbix_server systemd[1]: Started MariaDB database server.
[root@zabbix_server rh]# netstat -luntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 7098/zabbix_agentd
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 8951/zabbix_server
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 24373/snmpd
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 7093/php-fpm: maste
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 4552/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7151/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1062/sshd
tcp6 0 0 :::10050 :::* LISTEN 7098/zabbix_agentd
tcp6 0 0 :::10051 :::* LISTEN 8951/zabbix_server
tcp6 0 0 :::80 :::* LISTEN 7151/nginx: master
tcp6 0 0 :::23 :::* LISTEN 4225/xinetd
udp 0 0 127.0.0.1:323 0.0.0.0:* 510/chronyd
udp 0 0 0.0.0.0:68 0.0.0.0:* 769/dhclient
udp 0 0 0.0.0.0:161 0.0.0.0:* 24373/snmpd
udp6 0 0 ::1:323 :::* 510/chronyd
- 初始化mariadb,设置root密码,
mysql_secure_installation
注意:初始化的时候根据提示自行设置即可
- 使⽤root⽤户登录mariadb,建⽴zabbix数据库,这⾥的编码设置,⾮常重要,否则zabbix⽆法安装
[root@zabbix_server rh]# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 122429
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> create user zabbix@localhost identified by 'password';
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
- 使⽤以下命令导⼊ zabbix 数据库,zabbix 数据库⽤户为 zabbix,密 码为password
[root@zabbix_server zabbix-server-mysql-5.0.22]# ll
total 3220
-rw-r--r-- 1 root root 98 Apr 4 15:54 AUTHORS
-rw-r--r-- 1 root root 1221176 Apr 4 15:54 ChangeLog
-rw-r--r-- 1 root root 17990 Apr 4 15:54 COPYING
-rw-r--r-- 1 root root 2035660 Apr 4 17:17 create.sql.gz
-rw-r--r-- 1 root root 282 Apr 4 15:54 double.sql
-rw-r--r-- 1 root root 52 Apr 4 15:54 NEWS
-rw-r--r-- 1 root root 1317 Apr 4 15:54 README
[root@zabbix_server zabbix-server-mysql-5.0.22]# pwd
/usr/share/doc/zabbix-server-mysql-5.0.22
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p password
- 修改 zabbix server 配置⽂件/etc/zabbix/zabbix_server.conf ⾥的数据库密码
[root@zabbix_server zabbix-server-mysql-5.0.22]# grep '^DBPassword' /etc/zabbix/zabbix_server.conf
DBPassword=cm146688
- 修改 zabbix 的 php 配置⽂件 /etc/opt/rh/rh-php72/phpfpm.d/zabbix.conf
⾥的时区,同时add nginx to listen.acl_users directive.
[root@zabbix_server php-fpm.d]# pwd
/etc/opt/rh/rh-php72/php-fpm.d
[root@zabbix_server php-fpm.d]# cat zabbix.conf
[zabbix]
user = apache
group = apache
listen = /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock
listen.acl_users = apache,nginx
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
pm.max_requests = 200
php_value[session.save_handler] = files
php_value[session.save_path] = /var/opt/rh/rh-php72/lib/php/session/
php_value[max_execution_time] = 300
php_value[memory_limit] = 128M
php_value[post_max_size] = 16M
php_value[upload_max_filesize] = 2M
php_value[max_input_time] = 300
php_value[max_input_vars] = 10000
php_value[date.timezone] = Asia/shanghai
- 为Zabbix前端配置PHP编辑配置文件
/etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf,取消注释并设置“监听”和“server_name”指令。
-rw-r--r-- 1 root root 1976 Apr 20 16:45 zabbix.conf
[root@zabbix_server conf.d]# pwd
/etc/opt/rh/rh-nginx116/nginx/conf.d
[root@zabbix_server conf.d]# head zabbix.conf
server {
listen 80;
server_name 121.199.37.143;
root /usr/share/zabbix;
index index.php;
location = /favicon.ico {
log_not_found off;
- 启动Zabbix server和agent进程,启动Zabbix server和agent进程,并为它们设置开机自启
# systemctl restart zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm
# systemctl enable zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm
[root@zabbix_server conf.d]# netstat -luntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 7098/zabbix_agentd
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 8951/zabbix_server
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 24373/snmpd
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 7093/php-fpm: maste
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 4552/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7151/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1062/sshd
tcp6 0 0 :::10050 :::* LISTEN 7098/zabbix_agentd
tcp6 0 0 :::10051 :::* LISTEN 8951/zabbix_server
tcp6 0 0 :::80 :::* LISTEN 7151/nginx: master
tcp6 0 0 :::23 :::* LISTEN 4225/xinetd
udp 0 0 127.0.0.1:323 0.0.0.0:* 510/chronyd
udp 0 0 0.0.0.0:68 0.0.0.0:* 769/dhclient
udp 0 0 0.0.0.0:161 0.0.0.0:* 24373/snmpd
udp6 0 0 ::1:323 :::* 510/chronyd
[root@zabbix_server conf.d]# ps -ef |grep zabbix
apache 635 7093 0 06:48 ? 00:00:07 php-fpm: pool zabbix
apache 698 7093 0 06:49 ? 00:00:07 php-fpm: pool zabbix
root 769 1 0 Apr20 ? 00:00:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf /var/run/dhclient-eth0.pid -H zabbix_server eth0
apache 2203 7093 0 07:10 ? 00:00:06 php-fpm: pool zabbix
apache 3180 7093 0 07:24 ? 00:00:06 php-fpm: pool zabbix
zabbix 7098 1 0 Apr20 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 7099 7098 0 Apr20 ? 00:01:41 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
zabbix 7100 7098 0 Apr20 ? 00:01:00 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
zabbix 7102 7098 0 Apr20 ? 00:00:58 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
zabbix 7103 7098 0 Apr20 ? 00:01:00 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
zabbix 7104 7098 0 Apr20 ? 00:00:29 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
apache 8859 7093 0 08:48 ? 00:00:03 php-fpm: pool zabbix
zabbix 8951 1 0 Apr20 ? 00:00:00 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
zabbix 8958 8951 0 Apr20 ? 00:02:35 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.061144 sec, idle 60 sec]
zabbix 8961 8951 0 Apr20 ? 00:00:56 /usr/sbin/zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.003740 sec during 5.003824 sec]
zabbix 8962 8951 0 Apr20 ? 00:00:00 /usr/sbin/zabbix_server: alerter #1 [sent 0, failed 0 alerts, idle 92088.460456 sec during 92089.031978 sec]
zabbix 8963 8951 0 Apr20 ? 00:00:00 /usr/sbin/zabbix_server: alerter #2 [sent 0, failed 0 alerts, idle 163009.573346 sec during 163010.308618 sec]
zabbix 8965 8951 0 Apr20 ? 00:00:00 /usr/sbin/zabbix_server: alerter #3 [sent 0, failed 0 alerts, idle 223368.426447 sec during 223370.111448 sec]
zabbix 8966 8951 0 Apr20 ? 00:01:18 /usr/sbin/zabbix_server: preprocessing manager #1 [queued 0, processed 6 values, idle 5.002074 sec during 5.002358 sec]
zabbix 8967 8951 0 Apr20 ? 00:00:23 /usr/sbin/zabbix_server: preprocessing worker #1 started
zabbix 8968 8951 0 Apr20 ? 00:00:04 /usr/sbin/zabbix_server: preprocessing worker #2 started
zabbix 8969 8951 0 Apr20 ? 00:00:02 /usr/sbin/zabbix_server: preprocessing worker #3 started
zabbix 8970 8951 0 Apr20 ? 00:00:31 /usr/sbin/zabbix_server: lld manager #1 [processed 0 LLD rules, idle 5.003922sec during 5.003994 sec]
zabbix 8971 8951 0 Apr20 ? 00:00:06 /usr/sbin/zabbix_server: lld worker #1 [processed 1 LLD rules, idle 119.041556 sec during 119.054872 sec]
zabbix 8972 8951 0 Apr20 ? 00:00:06 /usr/sbin/zabbix_server: lld worker #2 [processed 1 LLD rules, idle 120.018963 sec during 120.032706 sec]
zabbix 8974 8951 0 Apr20 ? 00:00:13 /usr/sbin/zabbix_server: housekeeper [deleted 5043 hist/trends, 0 items/triggers, 0 events, 0 sessions, 0 alarms, 0 audit items, 0 records in 0.166681 sec, idle for 1 ho
zabbix 8976 8951 0 Apr20 ? 00:00:30 /usr/sbin/zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.000457 sec, idle 59 sec]
zabbix 8977 8951 0 Apr20 ? 00:00:37 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000534 sec, idle 5 sec]
zabbix 8979 8951 0 Apr20 ? 00:00:14 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000505 sec, idle 60 sec]
zabbix 8980 8951 0 Apr20 ? 00:01:44 /usr/sbin/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.000017 sec, idle 1 sec]
zabbix 8982 8951 0 Apr20 ? 00:01:44 /usr/sbin/zabbix_server: history syncer #2 [processed 0 values, 0 triggers in 0.000015 sec, idle 1 sec]
zabbix 8983 8951 0 Apr20 ? 00:01:47 /usr/sbin/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.000022 sec, idle 1 sec]
zabbix 8984 8951 0 Apr20 ? 00:01:46 /usr/sbin/zabbix_server: history syncer #4 [processed 1 values, 0 triggers in 0.001406 sec, idle 1 sec]
zabbix 8985 8951 0 Apr20 ? 00:01:05 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000725 sec, idle 3 sec]
zabbix 8986 8951 0 Apr20 ? 00:00:16 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000015 sec, idle 5 sec]
zabbix 8987 8951 0 Apr20 ? 00:00:37 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000017 sec, idle 1 sec]
zabbix 8988 8951 0 Apr20 ? 00:00:29 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000384 sec, idle 5 sec]
zabbix 8990 8951 0 Apr20 ? 00:01:04 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000014 sec, idle 1 sec]
zabbix 8991 8951 0 Apr20 ? 00:01:02 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000017 sec, idle 1 sec]
zabbix 8994 8951 0 Apr20 ? 00:01:03 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000022 sec, idle 1 sec]
zabbix 8995 8951 0 Apr20 ? 00:01:01 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000024 sec, idle 1 sec]
zabbix 8996 8951 0 Apr20 ? 00:01:04 /usr/sbin/zabbix_server: poller #5 [got 1 values in 0.004507 sec, idle 3 sec]
zabbix 8997 8951 0 Apr20 ? 00:00:16 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000015 sec, idle 5 sec]
zabbix 8998 8951 0 Apr20 ? 00:00:21 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000747 sec, waiting for connection]
zabbix 8999 8951 0 Apr20 ? 00:00:21 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000589 sec, waiting for connection]
zabbix 9001 8951 0 Apr20 ? 00:00:21 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000601 sec, waiting for connection]
zabbix 9002 8951 0 Apr20 ? 00:00:21 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000721 sec, waiting for connection]
zabbix 9003 8951 0 Apr20 ? 00:00:21 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000694 sec, waiting for connection]
zabbix 9005 8951 0 Apr20 ? 00:00:22 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000021 sec, idle 5 sec]
zabbix 9006 8951 0 Apr20 ? 00:03:03 /usr/sbin/zabbix_server: alert syncer [queued 0 alerts(s), flushed 0 result(s) in 0.000702 sec, idle 1 sec]
apache 9957 7093 0 09:02 ? 00:00:03 php-fpm: pool zabbix
apache 16322 7093 0 10:22 ? 00:00:00 php-fpm: pool zabbix
root 18889 12919 0 10:51 pts/0 00:00:00 grep --color=auto zabbix
apache 31681 7093 0 06:28 ? 00:00:07 php-fpm: pool zabbix
apache 32182 7093 0 06:35 ? 00:00:07 php-fpm: pool zabbix
apache 32215 7093 0 06:35 ? 00:00:07 php-fpm: pool zabbix
apache 32520 7093 0 06:40 ? 00:00:07 php-fpm: pool zabbix
- 查看进程启动都正常,说明安装成功。接下来便是访问zabbix前台界面
nginx方式安装,访问url是: http://+server端ip
apach方式安装,访问url是: http://+server端ip/zabbix
访问zabbix入口
1、检查组件是否正常
2、输⼊配置数据库 zabbix ⽤户的密码
3、安装信息细节
4、成功安装
登录账号为 Admin,密码:zabbix,注意⼤⼩写
5、zabbix首页