Here is my procedure to migrate from 1.6.2 to 1.8 using Webstack 1.5 on Solaris 10
Install the packages:
Curl-7
Fping-2
Libssh2
Openssl
Install Webstack v1.5
Test mysql and apache2
svcadm enable –s sun-mysql51
svcadm enable –s sun-apache22
Enable mysql 64
svccfg –s sun-mysql51:default setprop sun-mysql51/enable_64bit=true
Create one link to the next library:
/usr/local/lib/libmysqlclient.so.16 -> /opt/webstack/mysql/5.1/lib/mysql/libmysqlclient.so.16
Upgrade the mysql BD from 1.6.2 to 1.8 according to the Zabbix 1.8 manual.
Compile Zabbix 1.8
./configure --prefix /herramientas/monitoreo/zabbix --enable-server --with-mysql=/opt/webstack/mysql/5.1/bin/mysql_config --with-libcurl --with-net-snmp --with-ssh2
Delete from the file /opt/webstack/mysql/5.1/bin/mysql_config the options not recognized by the gcc compiler (there are 5 or 6 of such options).
configure:9461: checking for mysql_config
configure:9492: result: /opt/webstack/mysql/5.1/bin/mysql_config
configure:9607: checking for main in -lmysqlclient
configure:9636: gcc -o conftest -g -O2 -I/opt/webstack/mysql/5.1/include/mysql -xarch=v8 -W2,-xwrap_int -W0,-Lt -m32 -I/usr/sfw/include -I/BUILD_ARE
A/workspace/webstack1.5/label/solaris-sparc-sws14/mysql51/../wslibs/misc -DHAVE_RWLOCK_T -DUNIV_SOLARIS -L/opt/webstack/mysql/5.1/lib/mysql con
ftest.c -lmysqlclient -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
gcc: language arch=v8 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to conftest
Copy the frontend to /var/opt/webstack/apache2/2.2/htdocs
Edit the file /etc/opt/webstack/php/5.2/php.ini
< max_execution_time = 300 ; Maximum execution time of each script, in seconds
< memory_limit = 256M ; Maximum amount of memory a script may consume (128MB)
< post_max_size = 256M
< date.timezone =America/Mexico_City
< mbstring.func_overload = 2
Configue zabbix on the web interface and copy the file zabbix.conf.php to the path /var/opt/webstack/apache2/2.2/htdocs/conf/
Done.
Works fine, as always.
Greetings.
Install the packages:
Curl-7
Fping-2
Libssh2
Openssl
Install Webstack v1.5
Test mysql and apache2
svcadm enable –s sun-mysql51
svcadm enable –s sun-apache22
Enable mysql 64
svccfg –s sun-mysql51:default setprop sun-mysql51/enable_64bit=true
Create one link to the next library:
/usr/local/lib/libmysqlclient.so.16 -> /opt/webstack/mysql/5.1/lib/mysql/libmysqlclient.so.16
Upgrade the mysql BD from 1.6.2 to 1.8 according to the Zabbix 1.8 manual.
Compile Zabbix 1.8
./configure --prefix /herramientas/monitoreo/zabbix --enable-server --with-mysql=/opt/webstack/mysql/5.1/bin/mysql_config --with-libcurl --with-net-snmp --with-ssh2
Delete from the file /opt/webstack/mysql/5.1/bin/mysql_config the options not recognized by the gcc compiler (there are 5 or 6 of such options).
configure:9461: checking for mysql_config
configure:9492: result: /opt/webstack/mysql/5.1/bin/mysql_config
configure:9607: checking for main in -lmysqlclient
configure:9636: gcc -o conftest -g -O2 -I/opt/webstack/mysql/5.1/include/mysql -xarch=v8 -W2,-xwrap_int -W0,-Lt -m32 -I/usr/sfw/include -I/BUILD_ARE
A/workspace/webstack1.5/label/solaris-sparc-sws14/mysql51/../wslibs/misc -DHAVE_RWLOCK_T -DUNIV_SOLARIS -L/opt/webstack/mysql/5.1/lib/mysql con
ftest.c -lmysqlclient -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
gcc: language arch=v8 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to conftest
Copy the frontend to /var/opt/webstack/apache2/2.2/htdocs
Edit the file /etc/opt/webstack/php/5.2/php.ini
< max_execution_time = 300 ; Maximum execution time of each script, in seconds
< memory_limit = 256M ; Maximum amount of memory a script may consume (128MB)
< post_max_size = 256M
< date.timezone =America/Mexico_City
< mbstring.func_overload = 2
Configue zabbix on the web interface and copy the file zabbix.conf.php to the path /var/opt/webstack/apache2/2.2/htdocs/conf/
Done.
Works fine, as always.
Greetings.