Created
December 18, 2012 05:07
-
-
Save artifactsauce/4325222 to your computer and use it in GitHub Desktop.
Install zabbix version 2.0 package from EPEL to CentOS 6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm | |
/usr/bin/yum install -y zabbix20-server-mysql zabbix20-web-mysql mysql-server | |
/sbin/chkconfig zabbix-server on | |
/sbin/chkconfig mysqld on | |
MYSQL_ROOT_PASSWORD='ADMNPASS' | |
MYSQL_ZBBX_PASSWORD='ZBBXPASS' | |
/usr/bin/mysqladmin -u root create zabbix --default-character-set=utf8 | |
echo "GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY '${MYSQL_ZBBX_PASSWORD}';FLUSH PRIVILEGES;" | mysql -u root | |
/usr/bin/mysql -u root zabbix < /usr/share/zabbix-mysql/schema.sql | |
/usr/bin/mysql -u root zabbix < /usr/share/zabbix-mysql/images.sql | |
/usr/bin/mysql -u root zabbix < /usr/share/zabbix-mysql/data.sql | |
/usr/bin/mysqladmin -u root password $MYSQL_ROOT_PASSWORD | |
/usr/bin/mysqladmin -u root -h host.example.com password $MYSQL_ROOT_PASSWORD | |
sed -i -e '/^;date.timezone/s/;//' /etc/php.ini | |
sed -i -e '/^date.timezone/s/=/= Asia\/Tokyo/' /etc/php.ini | |
sed -i -e '/^post_max_size/s/8/16/' /etc/php.ini | |
sed -i -e '/^max_execution_time/s/30/300/' /etc/php.ini | |
sed -i -e '/^max_input_time/s/60/300/' /etc/php.ini | |
service httpd start |
EPEL is offering 2.0 packages for EL 5 and 6:
http://blog.zabbix.com/zabbix-2-0-packages-for-rhel-centos-sl/1893/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good stuff! thanks