<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jatencio</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jatencio"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Jatencio"/>
	<updated>2026-04-30T22:46:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Zabbix_-_cgi_and_mysql&amp;diff=4968</id>
		<title>Zabbix - cgi and mysql</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Zabbix_-_cgi_and_mysql&amp;diff=4968"/>
		<updated>2011-02-08T13:10:04Z</updated>

		<summary type="html">&lt;p&gt;Jatencio: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:monitoring]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Zabbix Monitoring Solution ==&lt;br /&gt;
&lt;br /&gt;
The purpose of this document is to assist in installing the Zabbix server software and Zabbix agent on the Alpine Linux operating system. Instructions on how to configure and use Zabbix - as well as many useful tutorials - can be found at http://www.zabbix.com.&lt;br /&gt;
&lt;br /&gt;
{{Note|Currently, Zabbix will only work as expected when running on an Alpine Linux system updated from the latest snapshots of the Edge repository. It will be properly supported with the next major version stable release (Alpine 2.2).}}&lt;br /&gt;
&lt;br /&gt;
== Install Lighttpd, and PHP ==&lt;br /&gt;
&lt;br /&gt;
{{:Setting Up Lighttpd With FastCGI}}&lt;br /&gt;
&lt;br /&gt;
== Configure PostgreSQL ==&lt;br /&gt;
&lt;br /&gt;
Setup and configure PostgreSQL:&lt;br /&gt;
&lt;br /&gt;
 apk add postgresql postgresql-client &lt;br /&gt;
 /etc/init.d/postgresql setup&lt;br /&gt;
 /etc/init.d/postgresql start&lt;br /&gt;
 rc-update add postgresql&lt;br /&gt;
&lt;br /&gt;
== Install Zabbix ==&lt;br /&gt;
&lt;br /&gt;
 apk add zabbix zabbix-pgsql zabbix-webif zabbix-setup&lt;br /&gt;
&lt;br /&gt;
Now we need to set up the zabbix database. Substitute &#039;*********&#039; in the example below for a real password:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psql –U postgres&lt;br /&gt;
postgres=# create user zabbix with password &#039;*********&#039;;&lt;br /&gt;
postgres=# create database zabbix owner zabbix;&lt;br /&gt;
postgres=# \q&lt;br /&gt;
cd /usr/share/zabbix/create/schema/&lt;br /&gt;
cat postgresql.sql | psql -U zabbix zabbix&lt;br /&gt;
cd ..&lt;br /&gt;
cd data/&lt;br /&gt;
cat data.sql | psql -U zabbix zabbix&lt;br /&gt;
cat images_pgsql.sql | psql -U zabbix zabbix&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a softlink for the Zabbix web-frontend files:&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/share/webapps/zabbix /var/www/localhost/htdocs/zabbix&lt;br /&gt;
&lt;br /&gt;
Edit PHP configuration to satisfy some zabbix requirements. Edit /etc/php/php.ini and configure the following values at least:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Max_execution_time = 600&lt;br /&gt;
Expose_php = off&lt;br /&gt;
Date.timezone = &amp;lt;insert your timezone here&amp;gt;&lt;br /&gt;
post_max_size = 32M&lt;br /&gt;
upload_max_filesize = 16M&lt;br /&gt;
max_input_time = 600&lt;br /&gt;
memory_limit = 256M&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure the following entries in /etc/zabbix/zabbix_server.conf, where DBPassword is the password chosen for the database above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DBName=zabbix&lt;br /&gt;
&lt;br /&gt;
# Database user&lt;br /&gt;
&lt;br /&gt;
DBUser=zabbix&lt;br /&gt;
&lt;br /&gt;
# Database password&lt;br /&gt;
# Comment this line if no password used&lt;br /&gt;
&lt;br /&gt;
DBPassword=*********&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start Zabbix server:&lt;br /&gt;
&lt;br /&gt;
 rc-update add zabbix-server&lt;br /&gt;
 /etc/init.d/zabbix-server start&lt;br /&gt;
&lt;br /&gt;
You should now be able to browse to the Zabbix frontend: http://yourservername/zabbix.&lt;br /&gt;
&lt;br /&gt;
Follow the setup instructions to configure Zabbix, supplying the database information used above.&lt;br /&gt;
&lt;br /&gt;
Finally, Zabbix requires special permissions to use the fping binary.&lt;br /&gt;
&lt;br /&gt;
 chmod u+s /usr/sbin/fping&lt;br /&gt;
&lt;br /&gt;
== Install Zabbix Agent on Monitored Servers ==&lt;br /&gt;
&lt;br /&gt;
Zabbix can monitor almost any operating system, including Alpine Linux hosts. Complete the following steps to install the Zabbix agent on Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
{{Note|Support to allow zabbix-agentd to view running processes on Alpine Linux has been added since linux-grsec-2.6.35.9-r2. Please ensure you have that kernel installed prior to attempting to run zabbix-agentd.}}&lt;br /&gt;
&lt;br /&gt;
Ensure that the readproc group exists (support added since alpine-baselayout-2.0_rc1-r1), by adding the following line to /etc/group:&lt;br /&gt;
&lt;br /&gt;
 readproc:x:30:zabbix&lt;br /&gt;
&lt;br /&gt;
Install the agent package:&lt;br /&gt;
&lt;br /&gt;
 apk add zabbix-agent&lt;br /&gt;
&lt;br /&gt;
Edit the /etc/zabbix/zabbix_agentd.conf file and configure at least the following option:&lt;br /&gt;
&lt;br /&gt;
 Server=&amp;lt;ip or hostname of zabbix server&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start the zabbix-agent:&lt;br /&gt;
&lt;br /&gt;
 rc-update add zabbix-agentd&lt;br /&gt;
 /etc/init.d/zabbix-agentd start&lt;/div&gt;</summary>
		<author><name>Jatencio</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=4967</id>
		<title>Setting Up Lighttpd With FastCGI</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=4967"/>
		<updated>2011-02-08T12:53:28Z</updated>

		<summary type="html">&lt;p&gt;Jatencio: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Install packages:&lt;br /&gt;
 apk add lighttpd php-common php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap php-pdo php-pdo_pgsql&lt;br /&gt;
 php-soap php-xmlrpc php-posix php-mcrypt php-gettext&lt;br /&gt;
&#039;&#039;&#039;Configure Lighttpd&#039;&#039;&#039;&lt;br /&gt;
 vi /etc/lighttpd/lighttpd.conf&lt;br /&gt;
Uncomment line:&lt;br /&gt;
 include &amp;quot;mod_fastcgi.conf&amp;quot;&lt;br /&gt;
Start lighttpd service and add to needed runlevel&lt;br /&gt;
 /etc/init.d/lighttpd start &amp;amp;&amp;amp; rc-update add lighttpd default&lt;/div&gt;</summary>
		<author><name>Jatencio</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=4966</id>
		<title>Setting Up Lighttpd With FastCGI</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=4966"/>
		<updated>2011-02-08T12:39:44Z</updated>

		<summary type="html">&lt;p&gt;Jatencio: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Install packages:&lt;br /&gt;
 apk add lighttpd php-common php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap php-pdo php-pdo_pgsql php-soap php-xmlrpc php-posix php-mcrypt php-gettext&lt;br /&gt;
&#039;&#039;&#039;Configure Lighttpd&#039;&#039;&#039;&lt;br /&gt;
 vi /etc/lighttpd/lighttpd.conf&lt;br /&gt;
Uncomment line:&lt;br /&gt;
 include &amp;quot;mod_fastcgi.conf&amp;quot;&lt;br /&gt;
Start lighttpd service and add to needed runlevel&lt;br /&gt;
 /etc/init.d/lighttpd start &amp;amp;&amp;amp; rc-update add lighttpd default&lt;/div&gt;</summary>
		<author><name>Jatencio</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Zabbix_-_cgi_and_mysql&amp;diff=4963</id>
		<title>Zabbix - cgi and mysql</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Zabbix_-_cgi_and_mysql&amp;diff=4963"/>
		<updated>2011-02-08T11:56:20Z</updated>

		<summary type="html">&lt;p&gt;Jatencio: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:monitoring]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Zabbix Monitoring Solution ==&lt;br /&gt;
&lt;br /&gt;
The purpose of this document is to assist in installing the Zabbix server software and Zabbix agent on the Alpine Linux operating system. Instructions on how to configure and use Zabbix - as well as many useful tutorials - can be found at http://www.zabbix.com.&lt;br /&gt;
&lt;br /&gt;
{{Note|Currently, Zabbix will only work as expected when running on an Alpine Linux system updated from the latest snapshots of the Edge repository. It will be properly supported with the next major version stable release (Alpine 2.2).}}&lt;br /&gt;
&lt;br /&gt;
== Install Lighttpd, and PHP ==&lt;br /&gt;
&lt;br /&gt;
{{:Setting Up Lighttpd With FastCGI}}&lt;br /&gt;
&lt;br /&gt;
== Configure PostgreSQL ==&lt;br /&gt;
&lt;br /&gt;
Setup and configure PostgreSQL:&lt;br /&gt;
&lt;br /&gt;
 apk add postgresql postgresql-client &lt;br /&gt;
 /etc/init.d/postgresql setup&lt;br /&gt;
 /etc/init.d/postgresql start&lt;br /&gt;
 rc-update add postgresql&lt;br /&gt;
&lt;br /&gt;
== Install Zabbix ==&lt;br /&gt;
&lt;br /&gt;
 apk add zabbix zabbix-pgsql zabbix-webif zabbix-setup&lt;br /&gt;
&lt;br /&gt;
Now we need to set up the zabbix database. Substitute &#039;*********&#039; in the example below for a real password:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
psql –U postgres&lt;br /&gt;
postgres=# create user zabbix with password &#039;*********&#039;;&lt;br /&gt;
postgres=# create database zabbix owner zabbix;&lt;br /&gt;
postgres=# \q&lt;br /&gt;
cd /usr/share/zabbix/create/schema/&lt;br /&gt;
cat postgresql.sql | psql -U zabbix zabbix&lt;br /&gt;
cd ..&lt;br /&gt;
cd data/&lt;br /&gt;
cat data.sql | psql -U zabbix zabbix&lt;br /&gt;
cat images_pgsql.sql | psql -U zabbix zabbix&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a softlink for the Zabbix web-frontend files:&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/share/webapps/zabbix /var/www/localhost/htdocs/zabbix&lt;br /&gt;
&lt;br /&gt;
Edit PHP configuration to satisfy some zabbix requirements. Edit /etc/php/php.ini and configure the following values at least:&lt;br /&gt;
&lt;br /&gt;
apk fix --reinstall php-common&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Max_execution_time = 600&lt;br /&gt;
Expose_php = off&lt;br /&gt;
Date.timezone = &amp;lt;insert your timezone here&amp;gt;&lt;br /&gt;
post_max_size = 32M&lt;br /&gt;
upload_max_filesize = 16M&lt;br /&gt;
max_input_time = 600&lt;br /&gt;
memory_limit = 256M&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure the following entries in /etc/zabbix/zabbix_server.conf, where DBPassword is the password chosen for the database above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DBName=zabbix&lt;br /&gt;
&lt;br /&gt;
# Database user&lt;br /&gt;
&lt;br /&gt;
DBUser=zabbix&lt;br /&gt;
&lt;br /&gt;
# Database password&lt;br /&gt;
# Comment this line if no password used&lt;br /&gt;
&lt;br /&gt;
DBPassword=*********&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start Zabbix server:&lt;br /&gt;
&lt;br /&gt;
 rc-update add zabbix-server&lt;br /&gt;
 /etc/init.d/zabbix-server start&lt;br /&gt;
&lt;br /&gt;
You should now be able to browse to the Zabbix frontend: http://yourservername/zabbix.&lt;br /&gt;
&lt;br /&gt;
Follow the setup instructions to configure Zabbix, supplying the database information used above.&lt;br /&gt;
&lt;br /&gt;
Finally, Zabbix requires special permissions to use the fping binary.&lt;br /&gt;
&lt;br /&gt;
 chmod u+s /usr/sbin/fping&lt;br /&gt;
&lt;br /&gt;
== Install Zabbix Agent on Monitored Servers ==&lt;br /&gt;
&lt;br /&gt;
Zabbix can monitor almost any operating system, including Alpine Linux hosts. Complete the following steps to install the Zabbix agent on Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
{{Note|Support to allow zabbix-agentd to view running processes on Alpine Linux has been added since linux-grsec-2.6.35.9-r2. Please ensure you have that kernel installed prior to attempting to run zabbix-agentd.}}&lt;br /&gt;
&lt;br /&gt;
Ensure that the readproc group exists (support added since alpine-baselayout-2.0_rc1-r1), by adding the following line to /etc/group:&lt;br /&gt;
&lt;br /&gt;
 readproc:x:30:zabbix&lt;br /&gt;
&lt;br /&gt;
Install the agent package:&lt;br /&gt;
&lt;br /&gt;
 apk add zabbix-agent&lt;br /&gt;
&lt;br /&gt;
Edit the /etc/zabbix/zabbix_agentd.conf file and configure at least the following option:&lt;br /&gt;
&lt;br /&gt;
 Server=&amp;lt;ip or hostname of zabbix server&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start the zabbix-agent:&lt;br /&gt;
&lt;br /&gt;
 rc-update add zabbix-agentd&lt;br /&gt;
 /etc/init.d/zabbix-agentd start&lt;/div&gt;</summary>
		<author><name>Jatencio</name></author>
	</entry>
</feed>