[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Table of Contents
Zabbix
Zabbix is an open source network monitoring application capable of monitoring network devices, servers, databases and web services on a wide variety of operating systems.
Website: www.zabbix.com
Prerequisites
Installation
Zabbix is available at zabbix_agentd (SBo), zabbix_proxy (SBo), zabbit_server (SBo)
1) Create the zabbix user and group
root@darkstar# groupadd -g 228 zabbix root@darkstar# useradd -d /dev/null -s /bin/false -u 228 -g 228 zabbix
3) Install the necessary version of Zabbix from SBOPKG/Slackbuilds
4) Create the MySQL database
4a) On your MySQL server, connect with full privileges:
root@darkstar# mysql -u root -p
4b) Create the zabbix database & user:
mysql> create database zabbix character set utf8; mysql> use mysql; mysql> grant all on zabbix.* to zabbix@localhost identified by '<zabbix_password>'; mysql> flush privileges; mysql> quit
4c) On your Zabbix server, connect to the new database, create the schema & add initial data:
root@darkstar# cd /usr/share/zabbix_server/create root@darkstar# mysql -u zabbix -p <zabbix_password> mysql> use zabbix; mysql> source schema/mysql.sql; mysql> source data/data.sql; mysql> source data/images_mysql.sql; mysql> quit
5) Configure PHP:
5a) Zabbix requires some parameters in /etc/httpd/php.ini to be altered:
post_max_size = 16M (Default = 8M) max_execution_time = 300 (Default = 30) max_input_time = 300 (Default = 60) date.timezone = America/Chicago (Default = blank) ***NOTE*** the ";" in front of date.timezone MUST be removed
5b) Enable PHP in /etc/httpd/httpd.conf:
- ADD: index.php to the “DirectoryIndex index.html” line.
- UNCOMMENT: “Include /etc/httpd/mod_php.conf” line.
root@darkstar# /etc/rc.d/rc.httpd restart
6) Edit the zabbix_server configuration file (/etc/zabbix/zabbix_server.conf):
DBUser=zabbix (Default is "root" and it's not a good idea) DBPassword=<zabbix_password> (Change as defined above)
7) Make /etc/rc.d/rc.zabbix_server executable:
root@darkstar# chmod +x /etc/rc.d/rc.zabbix_server
8) Start the Zabbix server
root@darkstar# /etc/rc.d/rc.zabbix_server start
The Zabbix server can be accessed via a web browser at http://your_server/zabbix/
Follow the setup instructions.
USER: Admin PASS: zabbix