Guides‎ > ‎NRPE‎ > ‎Installing NRPE Client / Agent‎ > ‎Windows‎ > ‎

0.4.x

Download NSClient++ 0.4.x

These downloads are for the current stable version 0.4.1.105
  • I strongly recommend using 0.4.1.105
    • Newer versions such as 0.4.2.x and 0.4.3.x are under heavy development and a lot is changing, the way commands are executed are vastly different and it does not all consistently work
    • I am not complaining about what the developer is doing as I believe in the long run it will be a better product, I am just pointing out that the newer versions have caused me more headaches than I would have liked


Install NSClient++

  • Run the installer
  • The welcome page appears
  • Click Next
  • Tick the box I accept the terms in the License Agreement
  • Click Next
  • Click Custom
  • Accept the default ini file location
  • Click Next
  • Tick the box Install sample configuration
  • Tick the box Allow users to write config file
  • Click Next
  • Allowed hosts, type the IP Address of your Nagios Core host, for example:
    • 192.168.142.129
  • NSClient Password
    • This can be left blank, it is not used with NRPE
  • Modules to load (tick the following):
    • Enable common check plugins
    • Enable NRPE server (check_nrpe)
    • Enable WMI checks
  • Click Next
  • Click Install
  • Wait for NSClient++ to install
  • When finished click Finish


Configure NSClient++

There are a couple of final settings to change in the config file.

  • Open a command prompt
  • Type cd "\Program Files\NSClient++\" and press Enter
  • Type nscp settings --activate-module NRPEServer --add-defaults and press Enter
  • This may prompt you for permission
  • Type nscp settings --path /settings/NRPE/server --key "allow arguments" --set true and press Enter
  • This may prompt you for permission
  • Type nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true and press Enter
  • This may prompt you for permission
  • IF this is NSClient++ 0.4.3 onwards
    • Type nscp settings --path /settings/NRPE/server --key insecure --set true and press Enter
    • This may prompt you for permission


Start NSClient++

  • Open the Run dialog (Windows Key + R)
  • Type services.msc and press Enter
  • This opens the services management console
  • Find NSClient++ service
  • Right click it and select Restart
  • Wait for the service to start
  • Close the services manangement console when service is started


Test NSClient++

This will test that the NSClient++ is properly installed and listening on port 5666. The following command is executed on a Nagios Core server and the computer running NSClient++ has the ip address 192.168.142.1.
  • Type /usr/local/nagios/libexec/check_nrpe -H 192.168.142.1 and press Enter
  • You should receive a response like:
    • I (0,4,1,105 2014-04-28) seem to be doing fine...
  • This confirms that NSClient++ is working