How to Monitor openSUSE 15 with SNMP in Nagios XI

Picture of Ayoub Louragli
Ayoub Louragli
opensuse

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

  1. Go to Configure > Run a Configuration Wizard > Linux SNMP.
  2. Enter the openSUSE server’s IP and SNMP community string.
  3. Select the metrics you want (disk usage, processes, etc.).
  4. Adjust thresholds as needed.
  5. 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: