How to add windows client to Nagios monitoring.

How to add windows client to Nagios monitoring. post thumbnail image

In the previous article, we discussed how to configure linux client host into the Nagios server. This article shows you how to configure windows client with 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 comment the line it will look like this.

Now open windows.cfg file and configure client host.

# cd /usr/local/nagios/etc/objects
# vim windows.cfg

Add you client host details like showing below.

Define client host services like in below

Note: Replace client-hostname and ip address with your host details and hostname should match in everywhere.

Now restart nagios service and login 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.

Related Post

Enable SSL on your website in UbuntuEnable SSL on your website in Ubuntu

To enable SSL on your website first you need to install SSL on your server. Install SSL Certificates 1. First edit ssl file in apache2 directory. root@Linoide:~# vim /etc/apache2/sites-available/default-ssl.conf Add these lines: <VirtualHost> ServerAdmin webmaster@localhost DocumentRoot /var/www/html Servername Serveralias </VirtualHost> Change your SSL file location on these lines