Zabbix - cgi and mysql

From Alpine Linux
Revision as of 20:57, 3 November 2010 by Jbilyk (talk | contribs) (Initial draft version - not complete)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Jbilyk on 3 Nov 2010.)

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.