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

Picture of Johnny Mengistu
Johnny Mengistu
Fedora 41 -2

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:

  1. A Fedora 41 workstation with root or sudo access.
  2. Nagios XI running and accessible in your network.
  3. Basic knowledge of Linux and network management.

Step 1: I Part 1: Install and Configure SNMP on Fedora 41

  1. Install SNMP Packages:
    Open a terminal and install the net-snmp package
sudo dnf install net-snmp net-snmp-utils
  1. Configure SNMP:
    Edit the SNMP configuration file
sudo nano /etc/snmp/snmpd.conf
  1. Define a Read-Only Community String (replace public with a secure community string):
rocommunity your_community_string
  1. 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
  1. Set the System Location and Contact:
syslocation "Your Location"
syscontact "Your Name <your.email@example.com>"
  1. Start and Enable SNMP Service to start on boot:
sudo systemctl start snmpd sudo systemctl enable snmpd
  1. Open SNMP Port in Firewall: Allow SNMP traffic through the firewall:
sudo firewall-cmd --add-service=snmp --permanent
sudo firewall-cmd --reload
  1. 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”.

Config Wiz 1
Config Wizards

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

Linux SNMP Wiz
Linux SNMP Wiz

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

Linux Config Wiz
Linux Config Wiz

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: