Getting SNMP on a Fedora 41 Workstation and Configuring in Nagios XI


Introduction
The Simple Network Management Protocol (SNMP) is widely used for monitoring devices on a network, including servers, routers, switches, and workstations. Fedora 41, a modern Linux distribution, comes with a robust package manager and system tools that make it easy to install SNMP. This guide will walk you through installing SNMP on a Fedora 41 workstation and configuring it for use with Nagios XI, a popular open-source network monitoring software.
By the end of this guide, you’ll be able to monitor your Fedora 41 workstation’s health, performance, and resources using SNMP and Nagios XI.
Prerequisites
Before starting the installation, ensure you have the following:
- A Fedora 41 workstation with root or sudo access.
- Nagios XI running and accessible in your network.
- Basic knowledge of Linux and network management.
Step 1: I Part 1: Install and Configure SNMP on Fedora 41
- Install SNMP Packages:
Open a terminal and install thenet-snmp
package
sudo dnf install net-snmp net-snmp-utils
- Configure SNMP:
Edit the SNMP configuration file
sudo nano /etc/snmp/snmpd.conf
- Define a Read-Only Community String (replace
public
with a secure community string):
rocommunity your_community_string
- Allow SNMP Access from Nagios XI Server. Add the IP address of your Nagios XI server. Replace
192.168.1.100
with the actual IP of your Nagios XI server.
rocommunity your_community_string 192.168.1.100
- Set the System Location and Contact:
syslocation "Your Location"
syscontact "Your Name <your.email@example.com>"
- Start and Enable SNMP Service to start on boot:
sudo systemctl start snmpd sudo systemctl enable snmpd
- Open SNMP Port in Firewall: Allow SNMP traffic through the firewall:
sudo firewall-cmd --add-service=snmp --permanent
sudo firewall-cmd --reload
- Test SNMP: Verify that SNMP is working by querying it locally:
snmpwalk -v 2c -c your_community_string localhost
Part 2: Configure the Fedora 41 Workstation in Nagios XI
1. Log into Nagios XI , hover over the gear icon and select “Configuration Wizards”.

2. Search “SNMP” in the search box above and select the Linux SNMP option shown in the picture below.

3. Fill in the necessary information then hit finish at the end or “finish with defaults”

Optional: Additional SNMP OIDs
You can monitor additional metrics by adding more services with different OIDs. For example:
- CPU Load:
.1.3.6.1.4.1.2021.10.1.3.1
- Memory Usage:
.1.3.6.1.4.1.2021.4.6.0
- Disk Usage:
.1.3.6.1.4.1.2021.9.1.7.1
Troubleshooting
- SNMP Not Responding: Ensure the SNMP service is running (
sudo systemctl status snmpd
) and the firewall allows SNMP traffic. - Incorrect Community String: Double-check the community string in
/etc/snmp/snmpd.conf
and Nagios XI. - Permissions: Ensure the Nagios XI server has network access to the Fedora workstation.
By following these steps, you should be able to monitor your Fedora 41 workstation using SNMP in Nagios XI. Let me know if you need further assistance!
Conclusion
You have successfully installed and configured SNMP on your Fedora 41 workstation and set it up for monitoring in Nagios XI. This setup allows Nagios XI to collect system metrics, such as CPU usage, memory usage, disk space, and more, from your Fedora workstation.
By utilizing SNMP and Nagios XI together, you can proactively monitor the health of your systems, reduce downtime, and ensure better network management.
Additional Resources
Visit Our Website: https://www.nagios.com
Visit Nagios Support: https://support.nagios.com/
Visit Nagios Exchange: https://exchange.nagios.org/
Share:
Related Articles
- Centralized Log Monitoring for AlmaLinux 9 with Nagios Log Server 2024R2: A Complete Guide
- Monitoring Pop!_OS 24.04 LTS with NCPA in Nagios XI: A Comprehensive Guide
- Monitoring Clear Linux with SNMP in Nagios XI: A Step-by-Step Guide
- Monitoring NixOS with SNMP in Nagios XI: A Step-by-Step Guide
- How to Send Logs from Kali Linux to Nagios Log Server