How to Monitor Manjaro using SNMP with Nagios XI

Picture of Steven Phan
Steven Phan
Manjaro Wallpaper_6_11zon

Monitoring a Manjaro system with SNMP using Nagios XI helps maintain system performance and reliability. It allows users to track key metrics like CPU, memory, disk space, and network traffic, enabling proactive issue identification and resolution. This ensures minimal downtime and efficient resource management. To monitor Manjaro using SNMP, this guide provides instructions on how to monitor Manjaro using SNMP with Nagios XI.

Prerequisites

Before you proceed, here is what you need:

  • Manjaro System
  • Administrative Privileges
  • Nagios XI Instance
  • Internet connection to download packages

Step 1: Install SNMP on Manjaro

Open up terminal and update your system.

sudo pacman -Syu

Install the SNMP daemon on your Manjaro system.

sudo pacman -S net-snmp

Start and enable the SNMP service to ensure it runs on boot.

sudo systemctl start snmpd
sudo systemctl enable snmpd

Step 2: Configure SNMP

Edit the SNMP configuration file to set up your community string and allow access from your Nagios XI server.

sudo nano /etc/snmp/snmpd.conf

If the file for SNMP doesn’t exist, you can do it manually by creating a new file for the following command.

sudo mkdir -p /etc/snmp

Add the following line to the configuration file. Change YourCommunityString with your chosen community string and NagiosServerIP with the IP address of your Nagios XI server.

rocommunity YourCommunityString NagiosServerIP

Here is an example of what a community string format would look like.

rocommunity Str0ngC0mmunity 192.168.x.x

Save the change with your SNMP configuration file and restart the SNMP service.

sudo systemctl restart snmpd

Step 3: Add Manjaro to Nagios XI

Open your web browser and log in to your Nagios XI interface.

XI Login 1
Nagios XI Login

Navigate to the Configuration menu and select Configuration Wizards.

XI Configure to Wizard 1
Configure > Configuration Wizards

Search for Linux SNMP and then select the Linux SNMP wizard from the list.

XI Wizard Page Linux SNMP 1
XI Wizard Page

Enter the required details for your Linux SNMP configurations:

  • The IP address of your Manjaro machine.
  • Enter the SNMP community string you configured earlier(e.g., public).
  • Select the services you want to monitor (e.g., CPU Load, Disk Usage, Memory Usage).
  • Configure any additional settings as needed.
XI Linux SNMP Configure Manjaro
Linux SNMP Wizard Configuration

Finish the wizard and apply the configuration.

Step 4: Verify Monitoring

After completing the wizard, verify that Nagios XI is receiving SNMP data from your Manjaro machine. By checking the Host and Service Status in the Nagios XI interface and ensuring that the status indicators are green, indicating successful monitoring.

XI Manjaro SNMP Status
Status Details for SNMP

Conclusion

By reading through this guide, you should be able to monitor your Manjaro system using SNMP with Nagios XI. This will enable you to monitor critical system metrics, allowing for timely issue resolution and efficient resource management, ultimately ensuring your system runs smoothly and reliably. If you have additional questions or other support-related questions, please visit us at our Nagios Support Forum, Nagios Knowledge Base, or Nagios Library.

Share: