LoginSignup
0
0

More than 5 years have passed since last update.

Zabbix インストール

Last updated at Posted at 2016-06-26

環境

  • CentOS Linux release 7.2.1511 (Core)
  • Zabbix 3.0
# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-web-japanese
# yum -y install zabbix-agent
# yum -y install zabbix-get
# mysql -uroot -p
MariaDB [(none)]> CREATE USER zabbix;
MariaDB [(none)]> CREATE DATABASE zabbix CHARACTER SET utf8;
MariaDB [(none)]> GRANT ALL PRIVILEGES on zabbix.* TO zabbix@localhost IDENTIFIED BY '';
MariaDB [(none)]> FLUSH PRIVILEGES;
# cd /usr/share/doc/zabbix-server-mysql-3.0.2/
# zcat create.sql.gz | mysql -uroot -p zabbix
# vi /etc/zabbix/zabbix_server.conf
DBPassword=
# vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Tokyo
  • Virtual Host
<VirtualHost *:80>
   ServerName zabbix.***.**
   DocumentRoot /usr/share/zabbix
   ErrorLog /home/logs/zabbix_error_log
   CustomLog /home/logs/zabbix_access_log common
   <Directory /usr/share/zabbix>
       AllowOverride All
       Require all granted
   </Directory>
   <Directory "/usr/share/zabbix">
       AuthType Basic
       AuthName "Zabbix Login"
       AuthUserFile /etc/httpd/conf/.htpasswd
       Require valid-user
       DirectoryIndex index.php
   </Directory>
</VirtualHost>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0