# Experiment 5 – Network Monitoring Using LibreNMS

Objective: Monitor network devices using LibreNMS, analyze interface utilization, device uptime and interface status, and configure alerts for abnormal network conditions.

## 1. What is LibreNMS?

LibreNMS is an open-source network monitoring platform used to monitor routers, switches, servers and other network devices.

It uses SNMP to collect device information, monitor network traffic and detect interface problems.

## 2. What are the main features of LibreNMS?

- Automatic network device discovery.
- Interface traffic monitoring.
- Device uptime monitoring.
- Performance graphs and statistics.
- Alerting for network failures and high utilization.

## 3. How does LibreNMS monitor network devices?

LibreNMS primarily uses SNMP to communicate with network devices.

It periodically collects information such as CPU usage, memory, interface status, traffic counters and device uptime, then stores and displays the information through its web interface.

## 4. What is SNMP discovery?

SNMP discovery is the process of identifying and adding network devices to LibreNMS.

LibreNMS uses SNMP information to detect devices and retrieve their hardware, software and interface details.

## 5. What is device uptime?

Device uptime is the amount of time a device has been running since its last restart.

It helps administrators identify unexpected reboots and monitor device availability.

## 6. What is an interface in networking?

An interface is a connection point through which a device communicates with other devices on a network.

Examples include Ethernet ports, Wi-Fi interfaces and virtual network interfaces.

## 7. What is the difference between administrative status and operational status?

- Administrative status: Whether an interface is enabled or disabled through configuration.
- Operational status: Whether the interface is actually functioning and available for communication.

An interface can be administratively enabled but operationally down.

## 8. What is interface utilization?

Interface utilization is the percentage of available network bandwidth currently being used.

\\[ \text{Utilization} = \frac{\text{Current Throughput}}{\text{Interface Bandwidth}} \times 100 \\]

For example, if a 100 Mbps interface carries 60 Mbps traffic, utilization is 60%.

## 9. What are interface traffic counters?

Interface traffic counters measure the amount of data transferred through a network interface.

Important counters include:

- ifInOctets: Total incoming bytes.
- ifOutOctets: Total outgoing bytes.
- ifInErrors: Incoming packets with errors.
- ifOutErrors: Outgoing packets with errors.

These counters help analyze network traffic and identify communication problems.

## 10. What is the difference between LibreNMS and Zabbix?

- LibreNMS: Primarily focused on network device monitoring using SNMP and automatic device discovery.
- Zabbix: A broader infrastructure monitoring platform for servers, networks and applications.

Both provide graphs, performance monitoring and alerting.

## 11. What are network interface errors?

Interface errors are problems that occur during packet transmission or reception.

They can be caused by:

- Faulty network cables.
- Hardware problems.
- Duplex mismatches.
- Network congestion or transmission issues.

Increasing error counters indicate possible network problems.

## 12. What is an alert rule in LibreNMS?

An alert rule defines conditions under which LibreNMS generates notifications.

For example:

- Interface status becomes down.
- Network utilization exceeds 90%.
- Device becomes unavailable.

Alerts help administrators respond to problems quickly.

## 13. What is the difference between polling and discovery?

- Discovery: Identifies devices and their interfaces and updates device information.
- Polling: Periodically collects performance metrics from already discovered devices.

Discovery identifies what to monitor; polling collects monitoring data.

## 14. How would you identify abnormal network behaviour using LibreNMS?

I would examine interface utilization, incoming and outgoing traffic, error counters and operational status.

High bandwidth utilization, increasing errors or an interface going down may indicate network problems.

## 15. Why is LibreNMS useful for network administrators?

It provides centralized visibility into network devices, traffic and interface health. It helps detect failures, monitor bandwidth usage, identify abnormal behaviour and generate alerts before issues affect network performance.

## Last-minute revision

| Term        | Remember                     |
| ----------- | ---------------------------- |
| LibreNMS    | Network monitoring platform  |
| SNMP        | Collects device information  |
| Discovery   | Identifies network devices   |
| Polling     | Collects performance metrics |
| Uptime      | Time since last restart      |
| Interface   | Network connection point     |
| ifInOctets  | Incoming bytes               |
| ifOutOctets | Outgoing bytes               |
| ifInErrors  | Incoming errors              |
| ifOutErrors | Outgoing errors              |
| Utilization | Percentage of bandwidth used |
| Alert rule  | Detects abnormal conditions  |

Important for practical viva

Focus on:

1. LibreNMS architecture and purpose.
2. How SNMP is used in LibreNMS.
3. Discovery vs polling.
4. Interface administrative vs operational status.
5. Interface traffic counters.
6. Throughput and utilization calculations.
7. Alert rules and abnormal interface conditions.
8. LibreNMS vs Zabbix.

Based on Experiment 5 of your CS414 lab question bank.&#x20;

CS414_ITIMM_Lab_ESE.pdf
