How to Monitor DigitalOcean Droplets with Nagios XI Using NCPA
- Updated on

DigitalOcean Droplets offer a flexible and scalable platform for hosting cloud-based applications. However, without proper monitoring, performance bottlenecks, security risks, or unexpected outages can go unnoticed. By combining Nagios XI—a powerful monitoring solution—with the Nagios Cross-Platform Agent (NCPA), you can proactively track critical metrics like CPU, memory, disk usage, and network activity to maintain system health and reliability.
This guide provides a step-by-step process for setting up Nagios XI and NCPA to monitor your DigitalOcean Droplets, empowering you with real-time insights and centralized control.
Why Monitor DigitalOcean Droplets?
Monitoring is essential for ensuring the performance, security, and availability of your cloud infrastructure. With Nagios XI and NCPA, you can:
- Gain real-time visibility into system resources and network performance.
- Receive automated alerts to address issues before they impact users.
- Simplify management with a centralized, user-friendly dashboard.
Prerequisites
Before you begin, verify that you have the following:
- A DigitalOcean account with access to the Control Panel.
- A deployed Droplet running a compatible operating system:
- Windows Server
- Red Hat Enterprise Linux (RHEL) or CentOS
- Ubuntu or Debian
- SUSE Linux Enterprise Server (SLES)
- A functioning Nagios XI instance (installed on a separate server or VM).
- The NCPA agent installed on your target Droplet (see the NCPA Installation Guide for details).
- Basic familiarity with firewall configuration and SSH access.
Step 1: Deploy a DigitalOcean Droplet
If you don’t already have a Droplet, create one as follows:
- Log in to the DigitalOcean Control Panel.
- Click Create → Droplets and configure your instance:
- Select an operating system from the supported list.
- Choose a plan (CPU, memory, and storage) based on your needs.
- Add a firewall rule to allow TCP port 5693 for NCPA communication.
- Deploy the Droplet and note its public IP address.
Step 2: Install and Configure NCPA
The NCPA agent enables Nagios XI to collect system metrics from your Droplet securely.
Installation
- Refer to the NCPA Installation Guide to download and install NCPA on your Droplet.
- Start the NCPA Listener service:
- On Linux: sudo systemctl start ncpa_listener
- On Windows: Use the Services management tool.
- Edit the NCPA configuration file (/usr/local/ncpa/etc/ncpa.cfg on Linux or equivalent on Windows) to set a secure API token.
Verification
Test NCPA connectivity by accessing:
https://<droplet-ip>:5693/api
If the page loads successfully and prompts for the API token, NCPA is running correctly.
Step 3: Add the Droplet to Nagios XI
Use the NCPA Configuration Wizard in Nagios XI to integrate the Droplet.
1. Log in to the Nagios XI Web Interface.
2. Navigate to Configure → Configuration Wizards.

3. Select DigitalOcean Wizard and Enter the following details:
- Host Address/FQDN: Droplet IP or domain name.
- Port Number:
5693
(default). - API Token: Use the token created in Step 2.
4. Click Next to proceed.

Step 4: Configure Monitoring Parameters
Define which metrics Nagios XI will monitor and set alert thresholds:
- Assign a descriptive Host Name (e.g., “WebServer01”).
- Select key metrics to track:
- CPU Usage (%)
- Memory Usage (available/free)
- Disk Space (used/free)
- Network Traffic (inbound/outbound)
- Specify warning and critical thresholds (e.g., 80% and 90% for CPU).
- Click Next to continue.
Step 5: Finalize the Configuration
- Review your settings for accuracy.
- Click Finish to save and apply the configuration.
- Nagios XI will begin monitoring the Droplet.
- Verify the setup by navigating to Hosts → View Status Details for your Droplet.
Step 6: Confirm Monitoring
Ensure the system is functioning as expected:
- Check the Host Status in Nagios XI.
- Review metrics for CPU, memory, disk, and network performance.
- Adjust thresholds or notifications if necessary.
Troubleshooting Common Issues
If problems arise, try these solutions:
- NCPA not responding? Verify that port 5693 is open in the Droplet’s firewall and that the NCPA Listener service is active.
- No metrics in Nagios XI? Ensure the API token matches and the NCPA service is running.
- Host unreachable? Confirm the Droplet’s IP is correct and accessible from the Nagios XI server.
Next Steps
- Add additional Droplets by repeating this process.
- Customize NCPA for advanced monitoring needs.
- Consult the Nagios XI logs or Nagios Support Portal for further assistance.
With Nagios XI and NCPA in place, you now have a robust monitoring framework for DigitalOcean Droplets, ensuring optimal performance, security, and uptime.
Share:
Table of Contents
- Monitoring Office 365 Subscription Services with Nagios XI
- Step-by-Step: Monitoring Rackspace Cloud VMs with Nagios XI Using NCPA
- Monitoring Google Cloud VMs with Nagios XI Using NCPA: A Complete Guide
- How to Easily Monitor an Azure Cloud VM with Nagios XI Using NCPA
- Optimizing Amazon EC2 Performance: Monitoring with Nagios XI