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 ncpaOption 2: Manual RPM Installation
- Run the following:
cd /tmp wget https://assets.nagios.com/downloads/ncpa3/ncpa-<version>.rpm sudo rpm -ivh ncpa-<version>.rpmStep 2: Configure NCPA
1. Edit the configuration file:
sudo vi /usr/local/ncpa/etc/ncpa.cfg2. Set a secure token by modifying:
community_string = Str0ngT0k3n3. Save and exit (:wq).
Step 3: Restart the NCPA Service
sudo systemctl restart ncpaStep 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 --permanentStep 5: Verify the NCPA Web Interface
1. Open a web browser and go to:
https://<openSUSE-IP>:56932. 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.




