How to Monitor openSUSE 15 with SNMP in Nagios XI

Ayoub Louragli

Monitoring openSUSE 15 using SNMP in Nagios XI is a powerful way to track system health and performance metrics without installing additional agents. This guide covers SNMP setup on openSUSE and integrating it with Nagios XI.
Step 1: Install SNMP on openSUSE 15
As root, run:
sudo zypper install net-snmp net-snmp-tools
Step 2: Configure SNMP v2c Access
1. Backup the default configuration:
sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.bak
2. Replace the configuration with:
echo 'rocommunity Str0ngC0mmunity <Nagios-XI-IP>' | sudo tee /etc/snmp/snmpd.conf
3. Restart SNMP:
sudo systemctl restart snmpd.service
Step 3: Open Firewall Port 161/UDP
sudo firewall-cmd --zone=public --add-port=161/udp
sudo firewall-cmd --zone=public --add-port=161/udp --permanent
Step 4: Enable SNMP on Boot
sudo systemctl enable snmpd.service
Step 5: Test SNMP Connectivity
From your Nagios XI server:
cd /usr/local/nagios/libexec
./check_snmp_storage.pl -H <openSUSE-IP> -C Str0ngC0mmunity -m "^/$" -w 2 -c 4
You should receive disk usage output. If not, review SNMP and firewall settings.
Step 6: Use the Linux SNMP Wizard in Nagios XI
- Go to Configure > Run a Configuration Wizard > Linux SNMP.
- Enter the openSUSE server’s IP and SNMP community string.
- Select the metrics you want (disk usage, processes, etc.).
- Adjust thresholds as needed.
- Finish the wizard to apply the configuration.
Final Notes
- openSUSE uses the same net-snmp tools as other Linux distributions.
- Port 161/UDP must be open to receive SNMP queries.
- SNMP v3 setup is also supported if stronger security is required.
Conclusion
By configuring SNMP on openSUSE 15 and integrating it with Nagios XI, you gain detailed visibility into system performance without installing additional agents. Regularly reviewing Nagios XI dashboards and refining SNMP configurations ensures optimal monitoring and proactive issue resolution.
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