标签:运维监控 zabbix 3.0 cacti nagios
本次实验环境采用CentOS7.1,第一步安装zabbix的软件源
[root@martin ~]#rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
安装zabbix相关软件
[root@martin ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server –y
[root@martin ~]# systemctl start mariadb 启动数据库
创建zabbix数据库
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
做相关授权
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by ‘123456‘;
Query OK, 0 rows affected (0.00 sec)
[root@martin ~]# cd /usr/share/doc/zabbix-server-mysql-3.0.3/
导入zabbix数据库
[root@martin zabbix-server-mysql-3.0.3]# zcat create.sql.gz | mysql -uroot zabbix
[root@martin zabbix-server-mysql-3.0.3]#vim /etc/zabbix/zabbix_server.conf
编辑zabbix配置文件,配置如下参数,和上面创建数据库,授权用户名密码保持一致即可
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=123456
[root@martin ~]#systemctl start zabbix-server.service 启动zabbix服务
[root@martin ~]#s/etc/httpd/conf.d/zabbix.conf 在Apache配置目录下配置如下参数
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 always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai
[root@martin zabbix-server-mysql-3.0.3]#systemctl start httpd
http://172.16.80.139/zabbix/ 输入地址访问zabbix
Default username/password is Admin/zabbix.
本文出自 “martin” 博客,谢绝转载!
标签:运维监控 zabbix 3.0 cacti nagios
原文地址:http://huaxin.blog.51cto.com/903026/1786731