Observium Installation Guide.
Observium Installation Guide.
System Requirements
• Operating System: Ubuntu 22.04
• Memory: Minimum 2 GB RAM (4 GB recommended)
• CPU: Minimum 2 CPU cores
• Storage: Minimum 50 GB free disk space
• Network Access: Access to the network devices you want to monitor (such as
switches, routers, etc.)
Bash
bash
bash
bash
bash
sudo mysql_secure_installation
This script will prompt you to set a root password and disable anonymous users. Answer the
prompts as follows:
Observium requires PHP and several PHP extensions. Install them with the following
command:
bash
sudo apt install php php-mysql php-cli php-gd php-common php-xml php-
mbstring php-curl php-zip php-snmp -y
bash
cd /opt
wget http://www.observium.org/observium-community-latest.tar.gz
bash
bash
mv observium /opt/observium
bash
2. Create the Observium Database and User: Enter these commands one at a time in
the MariaDB shell:
sql
5. Configure Observium
1. Navigate to the Observium Directory:
bash
cd /opt/observium
cp config.php.default config.php
3. Edit the Configuration File: Open config.php to add your database details:
bash
nano config.php
o Find the lines for database settings and enter the details you created in Step 4:
php
Copy code
$config['db_host'] = 'localhost';
$config['db_user'] = 'observium';
$config['db_pass'] = 'your_password_here';
$config['db_name'] = 'observium';
bash
./discovery.php -u
bash
apache
Copy code
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /opt/observium/html/
ServerName observium.local
<Directory /opt/observium/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/observium_error.log
CustomLog ${APACHE_LOG_DIR}/observium_access.log combined
</VirtualHost>
bash
cd /opt/observium
./adduser.php admin your_password_here 10
bash
cd /opt/observium
./add_device.php <device_name> <snmp_community> v2c
sudo crontab -e
bash