Nagios - Monitoring remote Windows host Using NSClient++

From open-voip.org

Jump to: navigation, search

NDClient++ installation

Install the NSClient++ on the remote Windows (192.168.0.107):

download and install windows client (note 32 or 64 bit): http://sourceforge.net/projects/nscplus/files/nscplus/NSClient%2B%2B%200.3.7/NSClient%2B%2B-0.3.7-Win32.msi/download

Install the setup file. In order to avoid exception on the windows firewall, do not install the "Firewall exception" module. In the allowed hosts section in the installation wizard, enter the nagios IP:

File:nagios_windows_installation.JPG

configure the windows client: NSC.ini in C:\Program Files\NSClient++

  • [modules]
  • ’password’ option in the [Settings]
  • ’allowed_hosts’ option in the [Settings]
  • ’port’ option in the [NSClient]

Configure the Nagios to support Windows Monitoring

First, we should add allow Windows hosts monitoring on the Nagios(192.168.0.148). Note it should be done for the first windows host only. Edit the following file:

 vi /usr/local/nagios/etc/nagios.cfg

and un-remark the the following line (remove the "#"):

 cfg_file=/usr/local/nagios/etc/objects/windows.cfg

Add Host

edit the following file:

 vi /usr/local/nagios/etc/objects/windows.cfg

At the "HOST DEFINITIONS" part add/change the host definition to:

 define host{
       use             windows-server  ; Inherit default values from a template
       host_name       winserver       ; The name we're giving to this host
       alias           My Windows Server       ; A longer name associated with the host
       address         192.168.0.107   ; IP address of the host
       }

restart nagios

 /etc/ini.t/nagios restart

Now you can see the new windows host at the nagios web.

Personal tools