How to Setup Zorin OS for NCPA in Nagios XI

Monitoring a Zorin OS system with NCPA using Nagios XI can be used for maintaining performance and reliability. It allows tracking of key metrics such as CPU, memory, disk usage, and network traffic to proactively identify and resolve issues. This approach minimizes downtime and enhances resource management, ensuring optimal system health. This guide provides step-by-step instructions to set up Zorin OS for NCPA on Nagios XI, ensuring optimal system performance and reliability.
Prerequisites
Here are the requirements on what you need:
- Zorin OS device
- Administrative Privileges
- Nagios XI Instance
- Internet connection to download packages
Step 1: Install NCPA on Zorin OS
Download the NCPA package for your system from the Nagios NCPA website. Get the DEB Linux one, which Zorin OS is based on Debian.

Locate your NCPA file from your file manager.

Press the Run Anyway to continue with the installation.

Install the NCPA file from the installer.

Step 2: Configure NCPA
Open a terminal and use a text editor to edit the NCPA configuration file located at /usr/local/ncpa/etc/ncpa.cfg.
sudo nano/usr/local/ncpa/etc/ncpa.cfg
Find the [api] section and set your secure token in the community string and change mytoken to your desire token. The token is used for authentication between Nagios XI and the NCPA agent.
community_string = mytoken

Step 3: Start NCPA Service
After editing the configuration file, start and enable NCPA service to apply the changes.
sudo systemctl start ncpa
sudo systemctl enable ncpa
Step 4: Firewall Configuration
If your have firewall enable, you need to configure your firewall to allow traffic on port 5693
sudo ufw allow 5693/tcp
sudo ufw reload
After configuring the firewall, you can verify that the port is open.
sudo ufw status
Step 5: Accessing the NCPA Webpage
You can go to the NCPA webpage by going to a web browser and enter the following URL in the address bar, replacing NCPA_IP_Address with 0.0.0.0 or with the IP address of your Zorin OS machine. The port number is default at 5693.
https://<NCPA_IP_Address>:5693/
After getting to the webpage’s URL, a security warning for an unfamiliar site will show up.

Bypass this by pressing Advanced and continue to your webpage.
After that, you will see the NCPA login page. You will be prompted to enter the authentication token you set from your NCPA configuration file. Enter the token to access the web interface.

Once logged in, you can explore various sections of the NCPA web interface.

Step 6: Add Zorin OS Host to Nagios XI
Log in to your Nagios XI web interface.

Proceed to the menu from the left and select Configure > Configuration Wizards from the side menu.

Find the Linux Server wizard from the list to start your NCPA configuration process.

Enter the IP address of your Zorin OS machine and your token you set before for authentication between Nagios XI and NCPA. The port number defaults to 5693.

Review the configuration summary and click Finish to apply the configuration. Nagios XI will now start monitoring the Zorin OS host.
Step 7: Verify Monitoring
Once the configuration is applied, go to Home > Service Detail to view the status of the services being monitored on your Zorin OS host. Check that the checks are running correctly and the data is being collected.

Conclusion
This concludes the setup for configuring Zorin OS with NCPA on Nagios XI. Your system is now ready for comprehensive monitoring, allowing you to track key metrics and ensure optimal performance and reliability. With this setup, you can proactively identify and resolve issues, minimizing downtime and enhancing resource management. 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:
On this page
Related Articles
- How to Install Nagios Cross-Platform Agent (NCPA) on Apple Silicon macOS
- How to Monitor Manjaro using SNMP with Nagios XI
- How to Set Up SNMP Monitoring for Oracle Linux 9 in Nagios XI
- Comprehensive Guide to Monitoring Oracle Linux 9 with NCPA in Nagios XI
- Setting Up SNMP on Arch Linux 2023 for Seamless Monitoring with Nagios XI