安装zabbix
参考文章:
https://www.fosslinux.com/7705/how-to-install-and-configure-zabbix-on-centos-7.htm
issue :
Minimum required size of PHP post is 16M (configuration option “post_max_size”).
怎么解决:
vim /etc/php.ini
修改相关的值然后重启httpd
systemctl restart httpd.service
在centos上安装agent :
yum install -y zabbix-agent zabbix-sender
(如果有提示No package zabbix-agent available的话,
先执行yum -y install https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm)
查看下zabbix-agent 都安装了哪些文件,重要的是zabbix_agentd.conf 这个文件。
[root@zabbix ~]# rpm -ql zabbix-agent
/etc/logrotate.d/zabbix-agent
/etc/zabbix/zabbix_agentd.conf
/etc/zabbix/zabbix_agentd.d
/etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf
/usr/lib/systemd/system/zabbix-agent.service
/usr/lib/tmpfiles.d/zabbix-agent.conf
/usr/sbin/zabbix_agentd
/usr/share/doc/zabbix-agent-4.4.0
/usr/share/doc/zabbix-agent-4.4.0/AUTHORS
/usr/share/doc/zabbix-agent-4.4.0/COPYING
/usr/share/doc/zabbix-agent-4.4.0/ChangeLog
/usr/share/doc/zabbix-agent-4.4.0/NEWS
/usr/share/doc/zabbix-agent-4.4.0/README
/usr/share/man/man8/zabbix_agentd.8.gz
/var/log/zabbix
/var/run/zabbix
然后修改zabbix_agentd.conf这个文件:
Server=[zabbix server ip]
ServerActive=[zabbix server ip]
Hostname=[ Hostname of client system ]
配置完成之后,重启agent进程:
systemctl start zabbix-agent
添加开机启动:
systemctl enable zabbix-agent