NSClient++ for MS Windows
Click the link above if you are not automatically redirected in 10 seconds.
Overview
Microsoft Windows™ servers can be monitored directly from GroundWork servers using a variety of methods (SNMP for example, or with WMIC). A popular method is to use the check_nrpe
plugin, and GroundWork Monitor 8 includes a set of plugins to use with this method. These plugins are written in visual basic, and can be extended to query and interact with the Windows systems so equipped. Note the Windows version of GDMA also uses these same plugins and several more, written in PowerShell which can similarly be added.
NRPE and NSClient++ offer SSLv3, which is a reasonably secure protocol for use in monitoring. We are not guaranteeing it can't be hacked, but at least the password data (required by some of the plugins if NSClient++ is not run as a service account) is not passed over the network unencrypted.
The following instructions will help you get NSClient++ set up and working with GroundWork Monitor 8.
Download NSClient++ and support files
- Download the latest version of NSClient++ to your Windows system:
https://nsclient.org/ - Download the GroundWork support files to your Windows system:
https://support8.gwos.com/gw/display/doc/Downloads > NSClient++ Windows Plugins
Install NSClient++
- Start the NSClient++ installation wizard by clicking the downloaded file and click Next.
- Select Monitoring Tool: Choose Generic and click Next.
- Choose Setup Type: Click Typical.
- NSClient++ Configuration:
- There is no need to set the Allowed Hosts or Password at this time as they will be configured in the
nsclient.ini
file later. - Modules to load (select the following):
- Enable common check plugins
- Enable NRPE server (
check_nrpe
), select Insecure legacy mode (required by oldcheck_nrpe
) - Enable Web server
- Click Next.
- There is no need to set the Allowed Hosts or Password at this time as they will be configured in the
- Click Install.
- NSClient is installed in the directory
C:\Program File\NSClient++
.
- NSClient is installed in the directory
Install GroundWork support files
- Unzip
nsclient++gw-support.zip
to a temporary location. - Copy
nsclient.ini
file to theNSClient++
directory and overwrite the existing file. Edit the
nsclient.ini
file and verify password, for example:password = nsclientgw
Edit
nsclient.ini
file and add the GroundWork system IP to the allowed hosts, for example of your GroundWork server is at192.268.1.2
:allowed hosts = 127.0.0.1,192.268.1.2
Copy
nrpescripts.ini
file to theNSClient++
directory.Copy contents of
VBS-Plugins
toNSClient++/scripts/lib
directory.Create DH key with this procedure, and save it to
nrpe_dh_2048.pem
file.DH key and Windows
Use this DH key file on all Windows systems that you want to monitor with NSClient++ from this server.
On the GroundWork system run the following command as
root
:openssl dhparam -C 2048
Copy and paste the output from the above command starting with:
-----BEGIN DH PARAMETERS----- until -----END DH PARAMETERS-----
to the following file on your Windows system:
c:\Program Files\NSClient++\security\nrpe_dh_2048.pem
Restart NSClient in Windows Services.
Stop start nscp
You can also type at a command prompt:
net stop nscp
net start nscp
- Navigate to the Windows Firewall (and any other intervening firewalls) to allow port
5666
from GroundWork system to monitored Windows system. Run the following commands on the GroundWork system to test NSClient++:
cd gw8 docker-compose exec nagios bash /usr/local/nagios/libexec/check_nrpe -t 60 -H (WindowsIP) /usr/local/nagios/libexec/check_nrpe -t 60 -H (WindowsIP) -c check_cpu /usr/local/nagios/libexec/check_nrpe -t 60 -H (WindowsIP) -c get_cpu -a "(WindowsIP)" "_Total" "80,90"
Where (WindowsIP) is the IP address of the Windows server you just installed on.
Uninstalling NSClient++
To uninstall NSClient++ run the install Wizard again and select uninstall or use the Windows uninstaller.
It is better to stop the NSClient++ before uninstalling and not be browsing in the NSClient++ directory or have any NSClient open files when uninstalling.
Related articles
There is no content with the specified labels