NSClient++ is a monitoring agent similar to NRPE to work on Windows systems. It is originally developed to work with Nagios. But, now it can be work with various tools like Naemon, op5, Iciniga etc.
In the last articles, we knew about the installation of Nagios core and Nagios XI on CentOS7 and RHEL 7. In this article, we will be known about the adding a Windows host to Nagios monitoring server by using the NSClient plugin.
Client Side Configuration
Download the latest version of NSClient from their official site. Once Download completes install it by double click on the program. The latest stable release version is 0.5.0.62. Download the 32 or 64 bit depends on the system architecture.
Choose the generic service click on Next.
choose the typical configuration.
Add IP address of nagios server at allowed hosts and create a password. Enable all the modules like NSCA client, Webserver, nsclient server, NRPE server and common plugins.
Once the installation completes, Open the services on the control panel.Then find and open nsclient++ service properties, make sure that service start at boot time Then check allow the system to interact with desktop under local system account on logon tab.
Allow the NSClient application through firewall.
Server side configuration
First make sure that Nagios core is installed and then Now create configuration files for remote hosts separately. The sample configuration file for Windows hosts is available in /usr/local/nagios/etc/objects directory. copy that file to /usr/local/nagios/etc/ directory.
#cp -f /usr/local/nagios/etc/objects/windows.cfg /usr/local/nagios/etc/windowsserver1.cfg
Now edit the file and change all the instances of Hostname to the remote system name and address to remote system IP address.
Now edit the nagios configuration file and add entry for linuxserver1.conf file and add the entry for windowsserver1.conf file
Now restart the Nagios service as follows
#systemctl restart nagios
Now access the Nagios web interface by using URL Address: http://ip-address of server/nagios
Now check the hostsand services list
Check the system individual information and option for system
Explore all the options to know more about the windows monitoring, if you want to join this discussion, feel free to leave a comment!