Zabbix - cgi and mysql
This material is work-in-progress ... Do not follow instructions here until this notice is removed. |
Install Zabbix and prerequisites
apk add zabbix lighttpd php php-sqlite
Add php support to lighttpd (uncomment this line in /etc/lighttpd/lighttpd.conf):
include "mod_fastcgi.conf"
Save and exit editor. Create a softlink for the Zabbix web files:
ln -s /usr/share/webapps/zabbix /var/www/localhost/htdocs/zabbix
Configure /etc/zabbix/zabbix_server.conf.
Set permissions on /etc/zabbix/zabbix_zabbix.conf:
chmod a+r /etc/zabbix/zabbix_server.conf
Start Zabbix server.
TO BE CONTINUED
A few things to fix so far (either in apk or this page):
Add a default path to sqlite db in /etc/zabbix/zabbix_server.conf Fix paths in /usr/share/webapps/zabbix/config.php, especially in the includes.