How to Monitor openSUSE 15 with NCPA in Nagios XI


Monitoring openSUSE 15 with Nagios XI using the NCPA (Nagios Cross Platform Agent) is a simple and powerful method for collecting system metrics like CPU, memory, disk usage, and more. This guide walks through the installation and integration process using accurate instructions from the official NCPA documentation.
Step 1: Install NCPA on openSUSE 15
Option 1: Using Nagios Repository (Recommended)
- Add the Nagios repository for SUSE 15+ (available from https://repo.nagios.com).
- Run:
sudo zypper install ncpa
Option 2: Manual RPM Installation
- Run the following:
cd /tmp wget https://assets.nagios.com/downloads/ncpa3/ncpa-<version>.rpm sudo rpm -ivh ncpa-<version>.rpm
Step 2: Configure NCPA
1. Edit the configuration file:
sudo vi /usr/local/ncpa/etc/ncpa.cfg
2. Set a secure token by modifying:
community_string = Str0ngT0k3n
3. Save and exit (:wq
).
Step 3: Restart the NCPA Service
sudo systemctl restart ncpa
Step 4: Allow NCPA Port Through the Firewall
sudo firewall-cmd --zone=public --add-port=5693/tcp
sudo firewall-cmd --zone=public --add-port=5693/tcp --permanent
Step 5: Verify the NCPA Web Interface
1. Open a web browser and go to:
https://<openSUSE-IP>:5693
2. Accept any SSL warnings.
3. Log in using your configured token.
Step 6: Add the Host in Nagios XI
- Log in to Nagios XI.
- Navigate to Configure > Monitoring Wizard > NCPA.
- Enter your openSUSE IP and token.
- Select services (CPU, memory, etc.) to monitor.
- Complete the wizard to apply monitoring.
Final Tip
- NCPA listens on TCP port 5693.
- Use a strong token to prevent unauthorized access.
- The NCPA web interface includes built-in help and endpoint documentation.
Conclusion
By following this guide, you can successfully monitor openSUSE 15 with Nagios XI using NCPA. This setup allows you to track essential system metrics efficiently and receive alerts on performance issues. Regularly check Nagios XI dashboards to ensure accurate data collection and troubleshoot any connectivity issues by reviewing firewall rules and service statuses.
Share:
On this page
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