cd /opt/observium ./discovery.php -u Create an Apache virtual host:
mkdir /opt/observium/logs,rrd chown -R apache:apache /opt/observium/logs,rrd Copy the default configuration:
dnf install -y epel-release dnf install -y httpd mariadb-server mariadb httpd php php-cli php-mysqlnd \ php-gd php-posix php-mbstring php-pear php-pear-CAS php-bcmath php-json \ php-snmp fping graphviz rrdtool subversion net-snmp-utils net-snmp \ python3-PyMySQL Enable and start services: how to install observium on centos 8
cp /opt/observium/config.php.default /opt/observium/config.php Edit config.php :
dnf update -y Install Apache, PHP, MariaDB, and required utilities: cd /opt/observium
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:
nano /opt/observium/config.php Set the database credentials: rrd chown -R apache:apache /opt/observium/logs
<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: