How To Install Observium On Centos 8 Apr 2026
firewall-cmd --permanent --add-service=http firewall-cmd --reload Open your browser: http://your_server_ip
dnf update -y Install Apache, PHP, MariaDB, and required utilities:
CREATE DATABASE observium CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost' IDENTIFIED BY 'your_strong_password'; FLUSH PRIVILEGES; EXIT; Populate the schema:
$config['db_user'] = 'observium'; $config['db_pass'] = 'your_strong_password'; $config['db_name'] = 'observium'; Create the database and user: how to install observium on centos 8
The Community Edition is limited to 100 devices. For more, consider Observium Professional. Also, plan to migrate to AlmaLinux 8 or Rocky Linux 8 before CentOS 8 becomes unsupported for security updates.
mkdir /opt/observium/logs,rrd chown -R apache:apache /opt/observium/logs,rrd Copy the default configuration:
nano /opt/observium/config.php Set the database credentials: rrd chown -R apache:apache /opt/observium/logs
systemctl enable --now httpd mariadb Run the secure installation and set a root password:
cp /opt/observium/config.php.default /opt/observium/config.php Edit config.php :
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* Update the system: and servers to monitor their health
date.timezone = "America/New_York" Then systemctl restart httpd chmod 4750 /usr/sbin/fping Conclusion You now have a fully functional Observium installation on CentOS 8. Start adding routers, switches, firewalls, and servers to monitor their health, bandwidth, and errors via SNMP.
mysql -u root -p Run these SQL commands (replace 'your_strong_password' ):