Script para Upgrade de Zabbix 2.4.x para 2.4.5 (com CentOS 6.6 e MySQL)

wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz
tar xfzv zabbix-2.4.5.tar.gz
cd zabbix-2.4.5
./configure --enable-server --enable-agent --with-mysql --with-libcurl
make
cp /usr/local/etc/zabbix_agentd.conf .
cp /usr/local/etc/zabbix_server.conf .
cp /var/www/html/zabbix/conf/zabbix.conf.php .
service httpd stop
service zabbix_agentd stop
service zabbix_server stop
service mysqld stop
make install
rm -rf /var/www/html/zabbix/
mkdir /var/www/html/zabbix
cd frontends/php/
cp -a . /var/www/html/zabbix/
chown -R apache:apache /var/www/html/zabbix/
cd ..
cd ..
rm -f /usr/local/etc/zabbix_agentd.conf
rm -f /usr/local/etc/zabbix_server.conf
rm -f  /var/www/html/zabbix/conf/zabbix.conf.php
cp zabbix_agentd.conf /usr/local/etc/
cp zabbix_server.conf /usr/local/etc/
cp zabbix.conf.php /var/www/html/zabbix/conf
service mysqld start
service zabbix_server start
service zabbix_agentd start
service httpd start
service mysqld status
service zabbix_server status
service zabbix_agentd status
service httpd status
tail /tmp/zabbix_server.log

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.