In the previous article, we discussed how to configure a Linux client host into the Nagios server. This article shows you how to configure Windows client with a Nagios server.
Before configuring the Windows client, will have to look into Nagios configuration file once. Because the Windows configuration file windows.cfg is by default disabled by Nagios configuration. We need to enable it to monitor Windows clients. Let’s see how to do it.
# vim /usr/local/nagios/etc/nagios.cfg
You can see in the above image that cfg_file=/usrlocal/nagios/etc/objects/windows.cfg file is commented. We need to uncomment that line and save the file.
After commenting the line it will look like above.
Now open windows.cfg file and configure the client host.
# cd /usr/local/nagios/etc/objects
# vim windows.cfg
Add your client host details like shown below.
Define client host services like in below
Note: Replace client-hostname and ip address with your host details and the hostname should match in everywhere.
Now restart Nagios service and log in to your Nagios server web URL and you can see your new Windows client in ‘windows hosts’ groups.
That’s it. You are ready to monitor your Windows clients as well.