How to Monitor openSUSE 15 with NCPA in Nagios XI

Picture of Ayoub Louragli
Ayoub Louragli
Junior Developer
OpenSUSE logo on a green gradient background.

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)

 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

  1. Log in to Nagios XI.
  2. Navigate to Configure > Monitoring Wizard > NCPA.
  3. Enter your openSUSE IP and token.
  4. Select services (CPU, memory, etc.) to monitor.
  5. 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: