LibreNMS

On this page 8

LibreNMS is an open-source network monitoring system that automatically discovers routers, switches, servers and other devices, polls them mainly over SNMP, stores their performance data as time series and raises alerts when defined conditions are met. In networking, it belongs to the family of polling-based monitoring platforms and is widely used by internet service providers, universities and enterprises that need broad device coverage without licensing costs.

The project began in 2013 as a community fork of Observium, created when that project moved to a more restrictive licensing model. LibreNMS is released under the GNU General Public License version 3, is written mainly in PHP on the Laravel framework, and supports thousands of device operating systems through community-maintained discovery and polling definitions.

How LibreNMS discovers and polls devices

LibreNMS works in two separate cycles: discovery and polling. Discovery identifies what a device is and what it contains, such as interfaces, sensors, processors, storage and routing sessions, while polling collects the current values of those components at a fixed interval. By default, discovery runs every six hours and polling runs every five minutes, a 300-second step that matches the round-robin databases created for each metric.

Automatic network discovery is one of the defining features. Starting from a seed device, LibreNMS can follow neighbor information from LLDP, CDP, OSPF, BGP and ARP tables and add newly found devices that fall within permitted address ranges. Administrators usually restrict this with explicit network lists, because unrestricted discovery can add unwanted hosts or probe address space that belongs to other organizations.

The following table summarizes the main components of a typical installation and the role each one plays.

ComponentRoleTypical technology
Web interfaceDashboards, device pages, configurationPHP, Laravel, Nginx or Apache
DatabaseDevice inventory, ports, alerts, event logMySQL or MariaDB
Time-series storageHistorical metric values for graphsRRDtool, optionally RRDCached
Poller serviceRuns discovery and polling jobsPython dispatcher service
Scheduler and locksCoordinates distributed pollersRedis
Core components of a LibreNMS installation

Each polled value is written to an RRD file, a fixed-size database that consolidates older data into averages. This design keeps disk usage predictable, but it also means that fine-grained history is lost over time: five-minute samples are retained for a limited period and then aggregated into hourly and daily values.

Data sources and monitoring features

LibreNMS relies primarily on SNMP versions 1, 2c and 3, reading values defined in vendor and standard MIBs. SNMPv3 with authentication and encryption is the recommended choice on untrusted networks, because SNMPv2c sends its community string in clear text. Beyond SNMP, the platform can use ICMP reachability checks, agents on Linux and Windows hosts, application modules and syslog reception.

The table below lists the most common data sources and what each one contributes to the overall picture.

Data sourceWhat it providesTypical use
SNMP pollingInterface counters, CPU, memory, sensorsSwitches, routers, firewalls, printers
ICMP pingAvailability, response time, lossUp or down status for every device
SyslogDevice log messagesTroubleshooting and event correlation
SNMP trapsAsynchronous device notificationsLink changes, hardware faults
Unix agent and applicationsService and application metricsWeb servers, databases, mail servers
REST APIProgrammatic read and write accessAutomation and external tools
Main data sources used by LibreNMS

On top of these sources, LibreNMS provides port billing based on the 95th percentile, network maps built from discovered neighbors, inventory reports and integration with configuration backup tools such as Oxidized and RANCID. Metrics can also be exported to InfluxDB, Prometheus or Graphite when an organization wants longer retention or dashboards in another tool.

Alerting rules and notification transports

Alerting in LibreNMS is based on rules that query the database, built either in a graphical rule builder or as SQL-like expressions. A rule might fire when a port exceeds 80 percent utilization, when a temperature sensor crosses its threshold or when a BGP session leaves the established state. Rules can be mapped to specific devices, groups or locations, which prevents irrelevant alerts across a mixed estate.

Notifications are sent through alert transports, including email, Slack, Microsoft Teams, PagerDuty, Opsgenie, Telegram and generic webhooks. Alert templates control the message format, and settings such as delay, interval and maximum repetition limit noise. Device dependencies let operators suppress alerts for devices behind a failed upstream link, so a single outage does not produce dozens of messages.

LibreNMS sits among several tools with overlapping scope, and the right choice depends on what must be measured. It excels at broad SNMP-based device and interface monitoring, while flow analyzers, packet tools and latency probes answer different questions.

ToolPrimary focusLicensing modelMain difference from LibreNMS
LibreNMSSNMP device and interface monitoringOpen source, GPLv3Reference point
ObserviumSNMP device monitoringCommunity and paid editionsShared origin, different development model
PRTG Network MonitorSensor-based monitoringCommercial, licensed per sensorWindows-based, vendor support included
SmokePingLatency and packet loss over timeOpen sourceMeasures path quality, not device health
ntopngTraffic and flow analysisOpen source and commercialShows who talks to whom, not device inventory
WiresharkPacket capture and decodingOpen sourceDeep inspection of individual packets
How LibreNMS differs from neighboring tools

In practice, many teams combine LibreNMS with a flow collector for NetFlow, sFlow or IPFIX data and with a latency tool for jitter and round-trip time trends. LibreNMS reports that a link is saturated, while flow data explains which applications or hosts caused the saturation.

Deploying and scaling LibreNMS

A single LibreNMS server usually handles several hundred to a few thousand devices, depending on port counts, enabled modules, disk speed and polling interval. Storage input and output is often the first bottleneck, because every metric update writes to an RRD file. RRDCached batches these writes and is strongly recommended for any installation beyond a small lab.

Larger networks use distributed polling, in which several poller nodes share the work and write to a central database and RRD store. The table below shows how common situations translate into deployment choices.

SituationRecommended approachReason
Small office, under 100 devicesSingle server, default modulesLow load and simple maintenance
Campus with a few thousand portsSingle server with RRDCached and fast SSDReduces disk write pressure
Multi-site provider networkDistributed pollers coordinated through RedisSpreads load and polls close to devices
Need for one-minute resolutionShorter polling interval with resized RRD filesCaptures short traffic bursts
Long-term capacity planningExport metrics to a time-series databaseAvoids RRD consolidation loss
Deployment decisions for typical environments

Installation is commonly done on a Linux distribution or through the official Docker images. After installation, the built-in validation script checks permissions, database schema, scheduler status and poller health, and it should be run after every upgrade.

Limitations and common mistakes

LibreNMS is powerful but has clear limits that operators should plan for. The most frequent problems come from configuration choices rather than defects in the software.

  • Five-minute polling hides microbursts: a link can drop packets for seconds while its average utilization looks moderate.
  • Leaving SNMPv2c on open networks exposes community strings; restrict access with ACLs or use SNMPv3.
  • Unbounded auto-discovery can add thousands of unwanted hosts and overload pollers.
  • Missing alert dependencies turn one upstream failure into a flood of notifications.
  • Ignoring poller run time leads to gaps in graphs when a polling cycle takes longer than its interval.
  • Relying on RRD history for audits is risky, because consolidation removes detail from older data.

Support is community-based through documentation, forums and chat channels, so organizations that need contractual response times should budget internal expertise or third-party support.

The short version

LibreNMS is a free monitoring program that keeps an eye on the equipment that makes a network work. It regularly asks each router, switch and server how it is doing, draws charts from the answers and sends a message when something goes wrong.

Think of it as a building caretaker who checks every room on a fixed round, writes down the readings and calls someone when a pipe leaks. The key benefit is early warning: problems are noticed before users start complaining.

Where it makes a difference

A regional internet service provider operates about 1,200 devices across 40 points of presence. It deploys LibreNMS with a central database, RRDCached and four distributed pollers, one in each region, all polling over SNMPv3 every five minutes. Alert rules notify the on-call engineer when an uplink exceeds 85 percent utilization for fifteen minutes or when a BGP session drops.

One evening, LibreNMS reports a BGP session flapping on an aggregation router while the dependency settings suppress alerts for the twenty customer devices behind it. The engineer sees a rising error counter on the uplink port graph, replaces a faulty optical transceiver and restores service within thirty minutes. Over the following months, the 95th percentile billing reports also show which uplinks need upgrades before congestion affects customers.