Nsclient++ is a very popular open-source agent for monitoring Microsoft environments ( http://www.nsclient.org/ ). As one of the first agents introduced with the Nagios success story, it has gained many improvements over the last years, becoming a reliable monitoring agent with extreme stability. This is also the reason, why this agent is still a principal strategy for the monitoring projects realized with NetEye. The open source agent provides access to system health information and performance values. In the same way, it is possible to extend its functionalities with additional instructions to support the remote execution of customized commands, such as the launch of Alyvix testcases. ( www.alyvix.com ).
In this post I would like to highlight the possibility of installing the agent via its native setup package. The advantage lays in the usage of Microsoft tools for preparing, deploying and upgrading the agent.
The msi package is available within the latest version of the Agents collection in the share on your NetEye appliance. Alternatively you can download it from the community page ( http://nsclient.org/download/). For its distribution it is copied to the NetEye-Share, from where it is possible to deploy it quickly to a remote Windows environment.
So what’s the news ? Installing the agent via msi we benefit of the Microsoft software deployment logic, by registering the agent within the operating system software registry. In this way it is even easier to check the currently installed version, update the distribution from a new package and finally: provide an approach for an automated package dirstribution.
The structure of the script could consist of the following instructions:
In order to make the script re-usable for various situations, some information can be defined as a variable within the install script:
Ready to go! Now lets bring all those information together. To simplify this task a sampe install-script and configuration file is provided here:
Copy them to the neteye share and identify a situation like this when connecting from a remote windows machine.
When running the install_neteyensclient.bat with elevated permissions ( „Run as Administrator“ ) the installation dialog should appear and install the agent.
Now the NSClient should be registered as service: „nscp“
Test the availability of the agent:
Downloads Script Example:
This .zip file contains a sample deployment .bat file and an nsclient.ini file you can use for customizing the default .ini configuration: MSI_Packages_install