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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post