CentOS6環境にzabbix2.0です。
mysql5.5も試したかったので、remiリポジトリ使ってます。
ベースは以下を参考に。
http://kodai74.blogspot.jp/2012/05/zabbix-siarpm.html
まずはzabbixを動かすのに必要な環境をインストール&設定。
yum -y install mysql mysql-server nginx php php-fpm php-devel php-cli php-xml php-mysql php-mbstring php-gd --enablerepo=remi chkconfig php-fpm on /etc/init.d/php-fpm start chkconfig nginx on /etc/init.d/nginx start chkconfig mysqld on /etc/init.d/mysqld start mysqladmin -u root password 'password' vi /etc/nginx/conf.d/default.conf ------------------- location / { root /var/www/html; index index.html index.htm; } location ~ \.php$ { root /var/www/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } ------------------- /etc/init.d/nginx restart
zabbixのインストール。
rpmはコチラから。
yum install curl net-snmp unixODBC OpenIPMI-libs php-bcmath php-gd php-mbstring php-mysql php-xml vlgothic-p-fonts dejavu-sans-fonts --enablerepo=remi wget www.kodai74.net/packages/non-supported/rhel/6/x86_64/fping-2.4b2-16.el6.x86_64.rpm wget www.kodai74.net/packages/non-supported/rhel/6/x86_64/iksemel-1.4-2.el6.x86_64.rpm wget www.kodai74.net/packages/non-supported/rhel/6/x86_64/libssh2-1.4.0-2.el6.x86_64.rpm rpm -ivh fping-2.4b2-16.el6.x86_64.rpm iksemel-1.4-2.el6.x86_64.rpm libssh2-1.4.0-2.el6.x86_64.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-2.0.2-1.el6.x86_64.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-agent-2.0.2-1.el6.x86_64.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-server-2.0.2-1.el6.x86_64.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-server-mysql-2.0.2-1.el6.x86_64.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-web-2.0.2-1.el6.noarch.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-web-japanese-2.0.2-1.el6.noarch.rpm wget www.kodai74.net/packages/zabbix/zabbix-2.0/rhel/6/x86_64/zabbix-web-mysql-2.0.2-1.el6.noarch.rpm rpm -ivh zabbix*
mysqlの準備。
vi /etc/my.cnf --------------- [mysqld] innodb_file_per_table --------------- /etc/init.d/mysqld restart mysql -uroot -p mysql> create database zabbix character set utf8; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password'; mysql> exit mysql -ppassword -uroot zabbix < /usr/share/doc/zabbix-server-mysql-2.0.2/create/schema.sql mysql -ppassword -uroot zabbix < /usr/share/doc/zabbix-server-mysql-2.0.2/create/images.sql mysql -ppassword -uroot zabbix < /usr/share/doc/zabbix-server-mysql-2.0.2/create/data.sql vi /etc/zabbix/zabbix_server.conf ----- DBPassword=password ----- service zabbix-server start service zabbix-agent start
phpの設定変更
vi /etc/php.ini -------- post_max_size = 32M max_execution_time = 300 max_input_time = 300 date.timezone = Asia/Tokyo -------- /etc/init.d/php-fpm restart ln -s /usr/share/zabbix /var/www/html/zabbix
nginxのおかげなのか、
zabbix2.0のおかげなのか、
mysql5.5のおかげなのか
管理画面が軽くなった(気がする。。。)