downloaded zabbix downloaded libiconv and compiled it edited configure script to make sure the correct libiconv is used
This does not seem to be necessary anymore in newer sources
if test -f /usr/include/iconv.h; then
found_iconv=“yes”
elif test -f /usr/local/include/iconv.h; then
to:
# if test -f /usr/include/iconv.h; then
# found_iconv=“yes”
# elif test -f /usr/local/include/iconv.h; then
if test -f /usr/local/include/iconv.h; then
then
./configure --enable-server --with-mysql --with-net-snmp --with-libcurl
right now compilation does not use correct dynamic paths (use crle for now on a 64bit system use -64)
crle -64 -u -l /usr/local/mysql/lib -l /usr/lib -l /opt/local/lib
edit /usr/local/etc/zabbix_server.conf
then run zabbix server manually
/usr/local/sbin/zabbix_server
then run zabbix server as a service
pkgin in manifold
mkdir /opt/local/smf
cd /opt/local/smf
manifold zabbix.xml
follow instructions
svcadm import zabbix.xml
When you change the default log location etc the zabbix user needs to be granted write permissions to those files
chown -R zabbix:zabbix /var/log
chown -R zabbix:zabbix /var/run
pkgin in apache-2.4.2nb2
pkgin in php-5.4.5nb1
pkgin in ap24-php54-5.4.5
pkgin in php54-bcmath-5.4.5
pkgin in php54-mbstring
pkgin in php54-sockets
pkgin in php-54-gd
pkgin in php54-mysql
cp -r /opt/local/zabbix-2.0.4/frontends/php/* /opt/local/share/httpd/htdocs
edit httpd.conf
vi /opt/local/etc/httpd/httpd.conf
add next to similar items
LoadModule php5_module lib/httpd/mod_php5.so
AddHandler application/x-httpd-php .php
edit /opt/local/etc/php.ini
Change timezone
date.timezone=Europe/Berlin # or whatever like UTC
Make sure extension_dir matches folder where e.g. bcmath.so is installed
extension_dir="/opt/local/lib/php/20120301"
Add all extensions.
extension=bcmath.so
extension=mbstring.so
extension=gd.so
extension=sockets.so
extension=gettext.so
extension=mysql.so