Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › Apache

How to Install Observium on Ubuntu for Network Monitoring

By Freedom251 Team · · 11 min read

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Observium on a supported Ubuntu release (20.04, 22.04, 24.04 or 26.04), then install the matching PHP packages, Apache, MySQL or MariaDB, Net-SNMP, fping and RRDTool. Initialize the database and Observium configuration before opening the browser interface, serve /opt/observium/html through Apache with PHP and mod_rewrite, create an administrator, add an SNMP device, and schedule the poller every five minutes (300 seconds).

Choose a supported Ubuntu and Observium edition

Observium’s installation guide lists Ubuntu 20.04, 22.04, 24.04 and 26.04 as compatible. Use the newest release available for your deployment unless another application in the same server requires an older one. Your PHP package, Apache PHP module and command examples must all match that Ubuntu release.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Observium edition Distribution method Update approach Best fit
Community Edition Tarball Download and replace releases manually Small installations and users who want the freely distributed edition
Subscription Edition, stable train SVN checkout Automated updates from the stable train Subscribers prioritising predictable updates
Subscription Edition, current train SVN checkout More frequent changes through the current train Subscribers who need the newest changes and can test updates

Subscribers who want automated updates are generally directed to the stable train. Community users download the latest tarball. The operating-system choice does not change the edition’s database, Apache or polling requirements.

Check the server before installing

Use a clean Ubuntu server or a host where you control Apache, PHP and the database. Observium can run on a single host with the default Apache site, but a dedicated virtual host is easier to isolate from other web applications.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
  • Use one of the supported Ubuntu releases listed above.
  • Have root or sudo access.
  • Reserve a stable hostname or IP address for the monitoring server.
  • Ensure the server can reach monitored devices over SNMP and can resolve their hostnames if you plan to use DNS names.
  • Choose an SNMP version and credential policy before adding devices. The examples below use SNMPv2c and a community string.
  • Plan persistent storage for the RRD files. Every graph depends on those files remaining writable by Apache.

Observium’s requirements specify Apache newer than 2.4, PHP 8.2 or newer, MySQL newer than 8.0.12 or MariaDB newer than 10.3, Net-SNMP newer than 5.8, RRDTool newer than 1.7.2 and fping newer than 3.8. Verify the versions supplied by your selected Ubuntu release before proceeding.

Automated installation versus a manual installation

Automated script

The vendor script is the quickest route because it installs the operating-system packages and performs the standard setup for you. Run it only on a server where you are comfortable allowing a script to change package, database and web-server configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo bash <(wget -qO- https://www.observium.org/observium_installscript.sh)

If wget is not installed, use the equivalent curl form:

sudo bash <(curl -Ls https://www.observium.org/observium_installscript.sh)

Read the script’s prompts and review the resulting configuration. You still need to confirm the web interface, create your first administrator and add devices. If the script selects a PHP version that does not meet the current requirement, stop and correct the package selection before continuing.

Manual installation

A manual installation takes longer but makes every package, directory, database grant and Apache setting visible. It is useful when you have configuration-management standards, need a dedicated virtual host, or want to control when a subscription checkout moves between trains.

  1. Create the application directory: sudo mkdir -p /opt/observium.
  2. For Community Edition, download the current tarball from Observium and extract its contents into /opt/observium. For Subscription Edition, check out the stable or current SVN train supplied with your subscription.
  3. Continue with the dependency, database, configuration and Apache steps below.

Do not mix a Community tarball with subscription update commands. Keep the installation method and update method consistent so that files and database revisions stay aligned.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install the complete dependency set

Update package metadata first:

sudo apt update

The exact PHP package suffix depends on Ubuntu. The following example uses PHP 8.3; replace every 8.3 suffix with the supported PHP version available for your release, and use the same suffix later when enabling the Apache PHP module.

sudo apt install -y apache2 mysql-server mysql-client 
  php8.3 php8.3-cli php8.3-mysql php8.3-gd php8.3-bcmath 
  php8.3-mbstring php8.3-curl php8.3-apcu php8.3-snmp 
  snmp snmpd fping rrdtool graphviz imagemagick 
  python3-mysqldb subversion wget curl

On a release where php8.3 is not an available package, do not install an older PHP merely to make the command succeed. Select a PHP 8.2-or-newer package set supported for that Ubuntu release, then substitute its module name in the command and in a2enmod.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
Component Purpose in Observium Minimum stated requirement
Apache Serves the web interface and executes PHP Newer than 2.4
PHP and modules Runs the application, database queries, graph pages and SNMP integration 8.2 or newer
MySQL or MariaDB Stores devices, users, sensors, events and configuration MySQL newer than 8.0.12 or MariaDB newer than 10.3
Net-SNMP and utilities Provides SNMP polling tools and libraries Newer than 5.8
RRDTool Stores time-series data used by graphs Newer than 1.7.2
fping Performs fast reachability checks during polling Newer than 3.8
Graphviz and ImageMagick Supports topology and image-generation features Packages supplied by Ubuntu
Python MySQL connector Supports Observium helper and wrapper scripts Packages supplied by Ubuntu

Check the installed versions before moving on:

php -v
apache2 -v
mysql --version
snmpget --version
rrdtool --version
fping -v

If a command reports an older version than the stated requirement, resolve the repository or package choice now. A later web-interface failure is often only a symptom of an incompatible PHP or database package.

Create the Observium database

Open the database client as an administrator and create a dedicated database and login. Use a long, unique password; the same value will be placed in config.php.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo mysql
CREATE DATABASE observium CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'observium'@'localhost' IDENTIFIED BY 'replace-with-a-long-random-password';
GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost';
FLUSH PRIVILEGES;
EXIT;

The account is limited to the local host because the application and database are installed together. If you intentionally place the database on another host, use a narrowly scoped account and an allowed host rather than opening the grant to every address.

Configure Observium and initialize its schema

Change to the installation directory and copy the supplied configuration template:

cd /opt/observium
sudo cp config.php.default config.php
sudo nano config.php

Set the database connection values in the file:

$config['db_host'] = 'localhost';
$config['db_user'] = 'observium';
$config['db_pass'] = 'replace-with-a-long-random-password';
$config['db_name'] = 'observium';

Save the file with permissions that prevent unrelated users from reading the database password. Then build or update the database schema:

sudo ./discovery.php -u

The initialization command may report SQL revision errors that the installation guide considers acceptable during this step. Read the output: a completed revision update and a returned shell prompt indicate that the schema process finished; a connection-authentication error means the credentials or database grant are wrong.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Create the directories used for logs and RRD data, and make the RRD directory writable by Apache:

sudo mkdir logs
sudo mkdir rrd
sudo chown www-data:www-data rrd

Keep the logs directory inside the Observium tree. If you later move the RRD directory to another volume, preserve ownership and update the configuration so pollers and Apache point to the same location.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord | 6.35mm Jack, Durable Design, Stage and Home Studio Use, Low Noise Shielded Electric Cord for Bass, Keyboard, Amp, Mixer
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Configure Apache to serve the web interface

Observium’s web root is /opt/observium/html, not the application directory itself. Serving the parent directory exposes files that should remain private, including configuration and scripts.

Use the default Apache site

For a single-purpose monitoring host, edit the default virtual host and set its document root to the Observium HTML directory. The directory block must permit Observium’s rewrite rules and allow requests:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<VirtualHost *:80>
    ServerName observium.example.invalid
    DocumentRoot /opt/observium/html

    <Directory /opt/observium/html>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php
    </Directory>
</VirtualHost>

Replace the example server name with the monitoring host’s real DNS name. If you keep the distribution’s default site, make sure it does not still point at /var/www/html.

Use a dedicated virtual host

A dedicated file keeps Observium isolated when the server hosts other sites:

sudo nano /etc/apache2/sites-available/observium.conf

Put the virtual-host block above in that file, then enable it and optionally disable the unused default site:

sudo a2ensite observium.conf
sudo a2dissite 000-default.conf

Do not disable a site that another application still needs. The important settings are the Observium document root, AllowOverride All, Require all granted and DirectoryIndex index.php.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable the correct Apache modules

Apache’s event MPM cannot be used with the standard PHP module. Disable event MPM, enable prefork, enable the PHP module that matches the installed package, and enable rewrite:

sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo a2enmod php8.3
sudo a2enmod rewrite
sudo apache2ctl configtest
sudo apache2ctl restart

Replace php8.3 with your installed PHP module, such as the version selected for Ubuntu 20.04, 22.04, 24.04 or 26.04. Run apache2ctl configtest before restarting; correct any syntax error it reports instead of restarting a broken configuration.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Create the first administrator

From /opt/observium, create an administrator with access level 10. The command takes a username, password and numeric level:

cd /opt/observium
sudo ./adduser.php monitor-admin 'use-a-unique-password' 10

Use a password that is different from the database password. Open the Observium host in a browser and sign in with this account. If the page is blank or Apache downloads PHP source instead of executing it, check that the PHP module suffix matches the installed version and that mpm_prefork is enabled.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Add the first SNMP device

Enable SNMP on the router, switch, server or other device before adding it. Confirm that the device permits queries from the Observium server and that the community string is correct. Add an SNMPv2c device with:

sudo ./add_device.php device.example.invalid 'community-string' v2c

Use an IP address when DNS is unreliable. A hostname is preferable when the address can change and DNS is maintained correctly. The command creates the device record; it does not replace the device-side SNMP access control.

For a quick connectivity check, query the device from the Observium host with Net-SNMP:

snmpget -v2c -c 'community-string' device.example.invalid 1.3.6.1.2.1.1.1.0

A returned system description confirms that the server can reach SNMP and authenticate. A timeout usually indicates routing, firewall or SNMP access-list problems; an authorization error usually indicates the community string or SNMP version is wrong.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Run initial discovery and polling

Discovery learns interfaces, sensors, storage and other objects. Polling then collects current measurements and writes time-series data:

sudo ./discovery.php -h all
sudo ./poller.php -h all

Run discovery first. The first poll can take longer because RRD files are created and many sensors are queried. Refresh the web interface after the commands finish and check that the device status, interfaces and graphs appear.

Schedule the five-minute poller

Observium operates on a fixed poller frequency of five minutes, or 300 seconds. Configure /etc/cron.d/observium so the poller-wrapper runs at that interval; do not choose a one-minute or fifteen-minute interval and expect the application to behave normally.

sudo nano /etc/cron.d/observium

A typical cron entry for an installation in /opt/observium is:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
*/5 * * * * root /opt/observium/poller-wrapper.py 4

The */5 field starts the wrapper every five minutes. Keep the command path and worker argument consistent with the wrapper installed by your Observium edition. Cron files require six fields before the command: minute, hour, day of month, month, day of week and user.

After saving the file, verify that the cron daemon is running and inspect the Observium logs after the next five-minute boundary. A manually successful poll does not prove that cron can execute it; cron needs the correct absolute path, executable permissions and a working environment.

Maintain updates and permissions

Subscription Edition

Apply Subscription Edition updates frequently: at least monthly, and preferably once or twice per week or daily when automated SVN updates are used. Update during a maintenance window, run the supplied update process for the selected SVN train, and then run the schema update command if the release requests it.

Community Edition

Community Edition is distributed as a tarball, so review each release, extract it into the intended application directory and preserve config.php, the logs directory and the rrd directory. Reapply www-data ownership to rrd after replacing files if necessary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Routine checks

  • Confirm PHP remains at version 8.2 or newer after Ubuntu security updates.
  • Check that the database service starts after a reboot.
  • Verify that /opt/observium/rrd is writable by www-data.
  • Review discovery and poller output for devices that stop responding.
  • Back up the database, config.php, and the RRD directory before major upgrades.

Troubleshoot the common installation failures

Symptom Likely cause What to check
Apache shows the default page The virtual host still points to the distribution document root Confirm DocumentRoot /opt/observium/html, enable the intended site and reload Apache
PHP source downloads or appears as text The PHP Apache module is missing or its version does not match Check php -v, enable the matching phpX.Y module and keep mpm_prefork enabled
Every route except the home page returns 404 Rewrite rules are not being read Enable mod_rewrite and set AllowOverride All for /opt/observium/html
discovery.php -u cannot connect Wrong database password, missing database, or insufficient grant Compare config.php with the SQL user and test mysql -u observium -p observium
Graphs remain empty The poller has not run, RRD is unwritable, or the device is not responding Run poller.php -h all manually, check www-data ownership and inspect poller output
SNMP device shows as unreachable Routing, firewall, access-list, credential or version mismatch Run an equivalent snmpget from the Observium host and correct the device-side SNMP settings
Cron produces no data Invalid cron syntax, wrong wrapper path or a stopped cron service Validate the six-field entry, use absolute paths and inspect system and Observium logs

Single host or dedicated Apache virtual host?

Approach Advantages Trade-offs
Default Apache virtual host Few files and quick setup on a monitoring-only server Less isolation if another site is later added
Dedicated virtual host Clear hostname, separate configuration and safer coexistence with other sites Requires an additional site file and deliberate enable/disable steps

Both approaches must serve only /opt/observium/html, permit the application’s rewrite rules and execute the matching PHP module. The choice changes Apache organisation, not Observium’s polling behaviour.

Installation checklist

  • Ubuntu is 20.04, 22.04, 24.04 or 26.04.
  • PHP is 8.2 or newer and its package suffix is used consistently in Apache.
  • Apache, the database server and client, Net-SNMP, SNMP utilities, fping, RRDTool, Graphviz, ImageMagick, APCu and the required PHP modules are installed.
  • The observium database and local database user exist with a strong password.
  • config.php contains the same credentials and ./discovery.php -u completed.
  • /opt/observium/html is the Apache document root, with mod_rewrite and mpm_prefork enabled.
  • The first administrator was created with level 10.
  • An SNMP device responds to a test query, then discovery and polling complete.
  • /etc/cron.d/observium runs the poller-wrapper every five minutes (300 seconds).

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

ApacheLinuxMySQLNetwork MonitoringObserviumSNMPUbuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.