How To Install Observium On Centos 8 Apr 2026

cd /opt/observium ./discovery.php -u Create an Apache virtual host:

firewall-cmd --permanent --add-service=http firewall-cmd --reload Open your browser: http://your_server_ip

echo '33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1' > /etc/cron.d/observium echo '*/5 * * * * root /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1' >> /etc/cron.d/observium Allow HTTP/HTTPS: how to install observium on centos 8

httpd -t systemctl restart httpd Add the Observium polling cron job:

systemctl enable --now httpd mariadb Run the secure installation and set a root password: cd /opt/observium

$config['db_user'] = 'observium'; $config['db_pass'] = 'your_strong_password'; $config['db_name'] = 'observium'; Create the database and user:

<VirtualHost *:80> ServerName observium.yourdomain.com DocumentRoot /opt/observium/html <Directory /opt/observium/html> Options FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog /var/log/httpd/observium_error.log CustomLog /var/log/httpd/observium_access.log combined </VirtualHost> Test config and restart Apache: $config['db_pass'] = 'your_strong_password'

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:

mkdir /opt/observium/logs,rrd chown -R apache:apache /opt/observium/logs,rrd Copy the default configuration: