This is a grooving process before it was all manual but slowly we are getting a more “automated” installation process so hopefully this will keep improving in the future as well and some of the steps might go away.
NSClient++ comes with an interactive installer (MSI) which should preferably be used. There is also a command line option for registering (and de-registering) the service – for details refer to the manual installation guide. If you are using Windows NT4 there is some dependencies you need to install manually – for details refer to the NT4 Dependency guide.
Details on how to do silent installs and automated silent installs can be found at the Installation Guide page.
Thus to install the Client you simply click the MSI package (for your platform) and follow the wizard through. BUT after you have installed it still needs to be configured as follows.
Before you start NSClient++ you need to configure it by editing the configuration. The configuration is usually in a file called NSC.ini or nsclient.ini (depending on version). But where the configuration is actually stored can differ so the best way to make sure is to open the file called boot.ini which containes the order the file are loaded. It is also important top understand that configuration can include other configuration stores which means one file can for instance include the registry or some such. For details on the configuration options check the Reference Manual.
It is important to understand that out-of-the-box NSClient++ has no active configuration which means you NEED to be configured it before you can use it. This is for obviously because of security so no one will accidentally install this and get potential security issues on their servers.
The system tray has been removed in the 0.4.0 version it will not be added back instead we have the WEBUI in 0.4.3.
After you have installed NSClient++ you need to start it. As it is a normal Windows service you can either use the “net start” and “net stop” commands in the command line or you can use the Computer Manager’s Services node.
When you are starting and/or configuring your client you can use the “debug” mode which will be very helpful as you will see the debug log in “real time” when you play around with it. To start NSClient++ in test/debug mode use the following command:
nscp test
A windows firewall exception for NRPE and check_nt is installed (optional) if you have another firewall then the built-in one you might have to manually add exceptions to all incoming traafic if you wich to use check_nrpe and/or check_nt.
Firewall configuration should be pretty straight forward:
| Protocol | Source | Source port | Destination | Destination port | Comment |
|---|---|---|---|---|---|
| NRPE | nagios | <all> | client | 5666 | The nagios server initiates a call to the client on port 5666 |
| NSClient | nagios | <all> | client | 12489 | The nagios server initiates a call to the client on port 12489 |
| NSCA | client | <all> | nagios | 5667 | The client initiates a call to the nagios server on port 5667 |
| NRPE-proxy | client | <all> | remote-client | 5666 | The client initiates a call to the remote client on port 5666 |
All these ports can be changed – check your nsclient.ini.