On this page
- What is Observium good at?
- Which packages does Observium need?
- How do I download Observium and create its database?
- How do I configure Observium and build the schema?
- How do I serve the web interface privately?
- How do I add a server or network device?
- How do I schedule discovery, polling and cleanup?
- How do I update Observium and fix common problems?
- Questions
What is Observium good at?
Observium discovers a device over SNMP and then graphs everything it finds without manual setup: interfaces and their traffic, CPU, memory, storage, sensors, processes and protocol counters. It shines when you have routers, switches, firewalls or several Linux servers and want consistent long term graphs for all of them in one web interface.
The Community Edition is free and updated a few times a year; paid editions get faster updates and extra modules. It is not an alerting first tool like Zabbix or a log tool like Graylog, so many people pair it with those. For resource history of the VPS itself without installing anything, the console Usage graphs tab is already there.
A 2 GB plan handles a small set of devices; with dozens of devices or many ports, poller runs get longer, and 4 GB with NVMe storage keeps them inside the five minute window.
Which packages does Observium need?
Observium runs on Apache with mod_php, MariaDB or MySQL, rrdtool and the net-snmp tools. The unversioned PHP package names below resolve to PHP 8.3 on Ubuntu 24.04, 8.2 on Debian 12 and 8.4 on Debian 13:
sudo apt update
sudo apt install -y apache2 libapache2-mod-php php-cli php-mysql php-gd php-bcmath php-mbstring php-opcache php-curl php-apcu php-pear mariadb-server mariadb-client snmp fping rrdtool whois mtr-tiny ipmitool graphviz imagemagick python3-mysqldb python3-pymysql python-is-python3 wgetCheck the versions that were pulled in:
php -v
mariadb --version
rrdtool --version | head -n 1
apache2ctl -M | grep -i phpInstalling libapache2-mod-php switches Apache to the prefork module and enables PHP automatically; the last command should list a php_module. Enable URL rewriting, which Observium uses for its links:
sudo a2enmod rewriteHow do I download Observium and create its database?
Unpack the current Community release into /opt:
sudo mkdir -p /opt/observium
cd /opt
sudo wget https://www.observium.org/observium-community-latest.tar.gz
sudo tar zxf observium-community-latest.tar.gz
ls /opt/observiumCreate a database and a user. Open the MariaDB shell with sudo mariadb and run:
CREATE DATABASE observium DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'observium'@'localhost' IDENTIFIED BY 'UseALongRandomPassword';
GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost';
FLUSH PRIVILEGES;
EXIT;MariaDB listens only on localhost by default on Debian and Ubuntu, which is exactly what you want here. For tuning and backups of the database itself, the MariaDB guide goes further.
How do I configure Observium and build the schema?
Copy the sample configuration and set the database credentials:
cd /opt/observium
sudo cp config.php.default config.php
sudo nano config.php$config['db_extension'] = 'mysqli';
$config['db_host'] = 'localhost';
$config['db_user'] = 'observium';
$config['db_pass'] = 'UseALongRandomPassword';
$config['db_name'] = 'observium';Create the folders for graphs and logs, then let the discovery script build or upgrade the schema:
sudo mkdir -p /opt/observium/rrd /opt/observium/logs
sudo chown www-data:www-data /opt/observium/rrd /opt/observium/logs
sudo ./discovery.php -uThe schema step prints each database revision it applies. Then create your first administrator (level 10 is full admin):
sudo ./adduser.php admin UseAnotherLongPassword 10Restrict the config file, since it holds the database password: sudo chmod 640 config.php and sudo chown root:www-data config.php.
How do I serve the web interface privately?
Run Apache on a loopback port and publish it through a TLS proxy, so Observium is never served in plain HTTP on the public address. Change /etc/apache2/ports.conf to Listen 127.0.0.1:8080, then create the site:
sudo nano /etc/apache2/sites-available/observium.conf<VirtualHost 127.0.0.1:8080>
DocumentRoot /opt/observium/html/
ServerName observium.example.net
CustomLog /opt/observium/logs/access_log combined
ErrorLog /opt/observium/logs/error_log
<Directory "/opt/observium/html/">
AllowOverride All
Options FollowSymLinks MultiViews
Require all granted
</Directory>
</VirtualHost>sudo a2dissite 000-default
sudo a2ensite observium
sudo apache2ctl configtest
sudo systemctl restart apache2
curl -sI http://127.0.0.1:8080 | head -n 1For admin work only, an SSH tunnel is enough: ssh -N -L 8080:127.0.0.1:8080 deploy@198.51.100.24, then open http://127.0.0.1:8080. For regular access, point observium.example.net at the server and let Caddy terminate HTTPS with reverse_proxy 127.0.0.1:8080, as shown in the Caddy tutorial; Observium has its own login, and a basic_auth block in Caddy adds a second gate.
How do I add a server or network device?
Every device needs an SNMP agent that Observium can query. On a Linux server you want to watch (including the Observium host itself), install snmpd and allow read only access for one community string:
sudo apt install -y snmpd
sudo nano /etc/snmp/snmpd.confagentaddress udp:127.0.0.1:161
rocommunity ChangeThisCommunity 127.0.0.1
sysLocation Amsterdam rack A
sysContact ops@example.netsudo systemctl restart snmpd
snmpwalk -v2c -c ChangeThisCommunity 127.0.0.1 systemFor a remote server, set agentaddress udp:161, replace 127.0.0.1 in rocommunity with the Observium address, and open UDP 161 to that address only: sudo ufw allow from 198.51.100.24 to any port 161 proto udp (or a firewalld rich rule on Rocky and Alma). SNMP v2c sends the community in clear text, so on links that cross the internet prefer SNMPv3 with authentication and privacy, which Observium supports when adding a device.
Add the device and run a first discovery and poll:
cd /opt/observium
sudo ./add_device.php localhost ChangeThisCommunity v2c
sudo ./discovery.php -h all
sudo ./poller.php -h allHow do I schedule discovery, polling and cleanup?
Observium expects a poll every five minutes exactly; other intervals break the graphs. Create /etc/cron.d/observium:
33 */6 * * * root /opt/observium/observium-wrapper discovery >> /dev/null 2>&1
*/5 * * * * root /opt/observium/observium-wrapper discovery --host new >> /dev/null 2>&1
*/5 * * * * root /opt/observium/observium-wrapper poller >> /dev/null 2>&1
13 5 * * * root /opt/observium/housekeeping.php -ysel >> /dev/null 2>&1
47 4 * * * root /opt/observium/housekeeping.php -yrptb >> /dev/null 2>&1The first line rediscovers all devices four times a day, the second picks up newly added devices quickly, the third polls everything, and the housekeeping lines prune old event logs, RRD files and orphaned database rows. Because the file includes a user column, it only works in /etc/cron.d, not in a personal crontab. Wait ten minutes and the device page fills with graphs. The cron guide explains the time fields.
How do I update Observium and fix common problems?
To update the Community Edition, download the new tarball, unpack it over /opt/observium (your config.php, rrd and logs stay), and run sudo ./discovery.php -u to apply schema changes. Back up the database with mariadb-dump and the rrd folder first; the daily backups add-on gives you an extra copy outside the server.
- Device will not add: test with
snmpwalkfrom the Observium host. A timeout means a firewall or an agent bound to localhost only. - Gaps in graphs: a poller run took longer than five minutes. Check the timing on the Pollers page, then reduce devices or move to a plan with more vCPUs.
- Blank pages: read
/opt/observium/logs/error_logfor PHP errors, often a missing PHP extension. - Permission errors on RRD files: make sure
rrdstays owned bywww-dataafter manual runs.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Observium network monitoring
Does Observium send alerts?
Yes, it has alert checks and notification transports, although the Community Edition offers a smaller set. Many people add Uptime Kuma or Monit for quick service alerts.
Can I install Observium on Rocky Linux or AlmaLinux?
The project documents Red Hat family installs too, with different package names and SELinux steps. This guide covers Ubuntu and Debian, which are the most direct route.
How much disk do the graphs use?
Each graph is a fixed size RRD file, so disk use grows with the number of devices and ports, not with time. A small network usually needs well under a few gigabytes.
Is SNMP v2c safe to use?
Only on trusted paths with firewall rules limiting who can query. Over the internet, use SNMPv3 with authentication and encryption.
Can Observium monitor my VPS bandwidth?
Yes, the interface graphs show traffic in and out. Compare them with the monthly transfer of your plan, which the Usage graphs tab also shows.
How is it different from Cacti?
Both graph SNMP data with RRD files. Observium discovers and graphs most things automatically, while Cacti relies more on templates you choose.
More in Monitoring and logs
- Netdata real-time monitoring
- Uptime Kuma status page
- Prometheus and node_exporter
- Grafana dashboards
- Zabbix monitoring
- Nagios Core
- Beszel lightweight monitoring
- Loki and Alloy for central logs
- Cacti graphs with SNMP
- Monit for self-healing services
- btop, htop and other live monitors
- Central logs with rsyslog
- Rotate logs with logrotate
- Read logs with journalctl
- Graylog log management
- Vector log and metrics pipeline