安装前说明
- 数据库版本必须是8.0.30及以上
- PHP版本必须8.0.0 - 8.3.X
- 如果为 MySQL/MariaDB 启用了二进制日志记录,则需要超级用户特权或设置变量/配置参数 log_bin_trust_function_creators=1
- proxy版本兼容性
Server version |
Current proxy version |
Outdated proxy version |
Unsupported proxy version |
6.4 |
6.4 |
6.0, 6.2 |
Older than 6.0; newer than 6.4 |
7.0 |
7.0 |
6.0, 6.2, 6.4 |
Older than 6.0; newer than 7.0 |
7.2 |
7.2 |
7.0 |
Older than 7.0; newer than 7.2 |
- Windows XP注意事项
- 在32位的 Windows XP 上,不要使用比6.0. x 更新的 Zabbix 代理;
- 在 Windows XP/Server 2003上,不要使用比 Zabbix 4.0.x 更新的代理模板。较新的模板使用英语性能计数器,只有在 WindowsVista/Server2008之后才支持。
编译安装Zabbix7
# wget https://cdn.zabbix.com/zabbix/sources/release_candidates/7.0/zabbix-7.0.0rc1.tar.gz
# tar -zxf zabbix-7.0.0rc1.tar.gz
# cd zabbix-7.0.0rc1/
# yum -y install net-snmp-devel libssh2-devel OpenIPMI-devel libevent-devel \
java-1.8.0-openjdk-devel openldap-devel libcurl-devel unixODBC-devel
# yum localinstall libmodbus-devel-3.0.8-1.el7.x86_64.rpm
# yum localinstall libmodbus-3.0.8-1.el7.x86_64.rpm
# wget https://go.dev/dl/go1.20.1.linux-amd64.tar.gz
# tar -zxf go1.20.1.linux-amd64.tar.gz
# mv go /usr/local/go
# export GOROOT=/usr/local/go
# export PATH=$GOROOT/bin:$PATH
# source /etc/profile
# go version
# go env -w GOPROXY=https://goproxy.cn,direct
# ./configure --prefix=/usr/local/zabbix \
--enable-server \
--enable-agent \
--enable-agent2 \
--enable-webservice \
--with-mysql \
--enable-ipv6 \
--with-net-snmp \
--with-libcurl \
--with-libxml2 \
--with-openipmi \
--enable-java \
--with-ldap \
--enable-proxy \
--with-openssl \
--with-unixodbc \
--with-ssh2 \
--with-libmodbus
# make && make install
设置随系统服务启动
# cat /usr/lib/systemd/system/zabbix-server.service
[Unit]
Description=Zabbix Server
After=syslog.target
After=network.target
After=mysql.service
After=mysqld.service
After=mariadb.service
After=postgresql.service
After=pgbouncer.service
After=postgresql-9.4.service
After=postgresql-9.5.service
After=postgresql-9.6.service
After=postgresql-10.service
After=postgresql-11.service
After=postgresql-12.service
After=postgresql-13.service
After=postgresql-14.service
After=postgresql-15.service
After