How To Install Observium On Centos 8 Official
httpd -t systemctl restart httpd Add the Observium polling cron job:
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:
dnf update -y Install Apache, PHP, MariaDB, and required utilities: how to install observium on centos 8
<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:
cd /opt svn update --set-depth empty https://svn.observium.org/svn/observium/trunk observium If svn is missing: dnf install -y subversion Set permissions: httpd -t systemctl restart httpd Add the Observium
cd /opt/observium ./discovery.php -u Create an Apache virtual host:
cp /opt/observium/config.php.default /opt/observium/config.php Edit config.php : 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: