Share this post
Nyi Set
Table of Contents
Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA)
|
Nyi Set
![](https://library.nagios.com/wp-content/uploads/2025/02/A-person-sitting-at-a-desk-looking-at-a-Windows-10-computer-screen.-The-screen-displays-the-default-Windows-10-wallpaper.webp)
This guide walks you through installing the Nagios Cross-Platform Agent (NCPA) on Windows 10. NCPA is designed to streamline and standardize agent-based monitoring across multiple operating systems, making it easier to monitor your infrastructure.
Active vs Passive
NCPA can be used for both Active and Passive monitoring:
- Active Monitoring: Nagios initiates and schedules checks at regular interval.
- Passive Monitoring: NCPA submits check results to Nagios without requiring direct polling.
The NCPA installer may prompt you for settings for active and passive. Active is the most common method
used. If you are not using passive monitoring then you do not need to configure those settings.
Prerequisites
Before beginning the installation, ensure the following requirements are met:
- A system running Windows 10
- Administrator privileges
- A stable internet connection
- A working Nagios XI instance to receive and process monitoring data
Step 1: Download the Nagios Cross-Platform Agent (NCPA) Package
To download the latest NCPA package for Windows, visit:
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 1 Nagios NCPA download page](https://library.nagios.com/wp-content/uploads/2025/02/NCPA-downloads-page-1024x477.png)
Step 2: Install the NCPA Package
There are two methods for installing the NCPA package:
- Graphical Installation: A user-friendly, step-by-step installation wizard.
- Silent Installation: An unattended installation using command-line options, ideal for automation and scripting.
Graphical Installation
- Navigate to the folder where the NCPA installer was downloaded.
- Double-click the installer file to start the installation process.
- When the welcome screen appears, Click Next on the welcome screen.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 2 NCPA Installation wizard welcome page.](https://library.nagios.com/wp-content/uploads/2025/02/NCPA-Welcome.png)
An example of the welcome page of NCPA installer.
- Read and accept the license agreement by clicking I Agree.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 3 NCPA License page](https://library.nagios.com/wp-content/uploads/2025/02/NCPA-License-page.png)
- The configuration screen for API configuration will appear.
- Token: The only required setting to configure; used by your Nagios server to authenticate with NCPA.
- Bind IP:
0.0.0.0
(default) – Listens on all IPv4 addresses on the Windows machine. - Port:
5693
(default) – Used for communication with the NCPA agent.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 4 API configuration page of NCPA installer](https://library.nagios.com/wp-content/uploads/2025/02/NCPA-token-page.png)
- Click Next and proceed to the configuration screen for Passive checks.
- To enable passive checks, check the Send passive checks over NRDP box.
- Provide the following NRDP settings:
- URL: This is the URL on your Nagios Host that accepts passive check results to be submitted
- NRDP Token: This is the token you will be using when passing NCPA passive checks to Nagios for NRDP to accept the check. This is separate from the token that was provided for active checks.
- Hostname: The name of the host that the passive checks will be associated with in Nagios.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 5 NCPA passive 1](https://library.nagios.com/wp-content/uploads/2025/02/NCPA-passive-1.png)
- In Nagios XI, the URL and NRDP Token are configured under: Admin > Check Transfers > Inbound Transfers.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 6 inbound check transfer](https://library.nagios.com/wp-content/uploads/2025/02/inbound-check-transfer--1024x481.png)
- Click Next and proceed and continue with Passive checks.
- The Passive Service Checks screen will appear, displaying the default checks that will be executed and sent to your Nagios server.
- You can modify these checks if needed. The Passive Service Checks screen will appear, displaying the default checks that will be executed and sent to your Nagios server. You can modify these checks if needed.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 7 ncpa hostname 1](https://library.nagios.com/wp-content/uploads/2025/02/ncpa-hostname-1.png)
- Click Next and proceed and You will be presented with the install location.
- Change the destination folder if required.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 8 ncpa install](https://library.nagios.com/wp-content/uploads/2025/02/ncpa-install.png)
- Click the Install button to install NCPA and Once the installation is complete, click Finish.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 9 ncpa install finish](https://library.nagios.com/wp-content/uploads/2025/02/ncpa-install-finish.png)
Silent Installation
The installer also supports a silent install, which allows system administrators to easily manage their network
workstations without disrupting the workflow of the office. The following arguments currently supported.
- /S: Initiates a silent installation.
- /D: (Optional) Installation directory; must be the last argument and an absolute path (no quotes).
- /TOKEN: The token that will be used to access the agent’s API and web interface
- /IP: IP address to bind to (
0.0.0.0
for all IPv4,::
for IPv6). - /PORT: Port to bind to (default: 5693).
- /NRDPURL: Nagios server URL for submitting passive check results.
- /NRDPTOKEN: Authentication token for NRDP (separate from active check token).
- /NRDPHOSTNAME: Hostname associated with passive checks in Nagios.
Here is an example command :
ncpa-2.1.6.exe /S /TOKEN='Str0ngT0k3n' /NRDPURL='http://10.25.5.12/nrdp/'
/NRDPTOKEN='NRDP_T0k3n' /NRDPHOSTNAME='S1601'
Step 3: Configure Firewall (if enabled)
A firewall rule needs to be created on your Windows machine to allow incoming traffic to NCPA on TCP Port
5693
To change the firewall settings, select Start and type firewall in the search dialog box and open Windows
Firewall with Advanced Security.
Then click Inbound Rules in the left hand panel.
In the right panel, click New Rule.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 10 firewall1v](https://library.nagios.com/wp-content/uploads/2025/02/firewall1v.png)
Afterwards Select Port and click Next.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 11 firewall2v](https://library.nagios.com/wp-content/uploads/2025/02/firewall2v.png)
Then Select TCP and select Specified local ports and type 5693 in the field. Afterwards, click Next.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 12 firewall3v](https://library.nagios.com/wp-content/uploads/2025/02/firewall3v.png)
Afterwards, Select Allow the connection and click Next.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 13 firewall4v](https://library.nagios.com/wp-content/uploads/2025/02/firewall4v.png)
Make any changes to where the rule should apply and click Next.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 14 firewall5v 1](https://library.nagios.com/wp-content/uploads/2025/02/firewall5v-1.png)
Give the rule a Name and click Finish to create the rule.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 15 firewall6v](https://library.nagios.com/wp-content/uploads/2025/02/firewall6v.png)
Step 4: Test NCPA
To ensure that the installation was successful and NCPA is now listening, try accessing the web interface of
the agent. In order to do this you will need to know:
- The IP Address of the machine you installed NCPA on
- The token / community_string you configured NCPA to use
Open a web browser and connect to the NCPA web interface using the following URL:
https://<NCPA IP Address>:5693/
You’ll see a security warning—this is normal. NCPA uses self-signed certificates to encrypt communication. Your browser flags it because it doesn’t recognize the certificate. Click Advanced and Add Exception (or Proceed to xxx) to continue to the NCPA page.
More information on certificates is explained in the Understanding Certificate Warnings KB article.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 16 ncpa check](https://library.nagios.com/wp-content/uploads/2025/02/ncpa-check.png)
You will then be shown the NCPA login page.
Type the token in the field and then click the Log In button.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 17 ncpa2](https://library.nagios.com/wp-content/uploads/2025/02/ncpa2.png)
Once you log in you will be placed on the Dashboard page with a summary of the NCPA version and machine it is running on.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 18 ncpacheck3](https://library.nagios.com/wp-content/uploads/2025/02/ncpacheck3.png)
Now that NCPA is ready to be monitored by Nagios, proceed to the Configuring Nagios section.
Configuring Nagios XI
To monitor your Windows system with Nagios XI and the NCPA agent:
- Go to the Nagios XI dashboard.
- Open the NCPA Wizard: Configure > Run a Monitoring Wizard > NCPA.
- Enter the Windows server’s IP address and API token.
- Complete the wizard and apply the configuration changes.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 19 ncpa wizard](https://library.nagios.com/wp-content/uploads/2025/02/ncpa-wizard-1024x525.png)
Verify Monitoring Setup
After completing the wizard, Nagios XI should display the monitored host and its services:
- Navigate to the Service Status page to confirm that the system is being monitored and Nagios XI is receiving data.
![Step-by-Step Guide: Installing and Monitoring Windows 10 with Nagios Cross-Platform Agent(NCPA) 20 verify](https://library.nagios.com/wp-content/uploads/2025/02/verify--1024x534.png)
Troubleshooting Tips
- Issue: NCPA agent not starting.
- Solution: Verify that the token and port configurations are correct.
- Issue: Passive checks not received by Nagios.
- Solution: Ensure the NRDP URL and token match the Nagios server settings.
- Issue: Firewall blocking NCPA communication.
- Solution: Allow traffic on port
5693
.
- Solution: Allow traffic on port
Conclusion
Congratulations! You’ve successfully installed and configured the Nagios Cross Platform Agent on Windows. For further assistance, visit the Nagios Support Forum or the Nagios Knowledge Base.