一、使用Zabbix Yum源安装
安装yum源
[[email protected] ~]# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
安装zabbix:
yum install zabbix-server-mysql zabbix-web-mysql
二、配置Zabbx服务
创建并初始化数据库:
[[email protected]_1 ~]# cd /usr/share/doc/zabbix-server-mysql-2.4.3/create/
[[email protected]_1 create]# mysql -uroot zabbix < schema.sql [[email protected]_1 create]# mysql -uroot zabbix < images.sql [[email protected]_1 create]# mysql -uroot zabbix < data.sql.sql
配置Zabbx server文件:
# vi /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix
启动Zabbix服务:
service zabbix-server restart
配置/etc/httpd/conf.d/zabbix.conf文件的php属性:
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
重启http服务:
[[email protected]_1 ~]# service httpd restart
时间: 2024-12-28 00:57:59