Nagios-Windows Monitoring

NAGIOS SERVER

    • Navigate to /usr/local/nagios/etc/objects/windows.cfg edit the following areas,

define host{

use windows-server ; Inherit default values from a Windows server template (make sure you keep this line!)

host_name WINDOWS SERVER NAME

alias My Windows Server

address 192.168.1.2

}

define service{

use generic-service

host_name WINDOWS SERVER NAME

service_description NSClient++ Version

check_command check_nt!CLIENTVERSION

    • If password was inputted into the NSClient++ NSC.INI File go to the commands.cfg, and edit the check_nt command to reflect,

define command{

command_name check_nt

command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s PASSWORD -v $ARG1$ $ARG2$

}

    • On the nagios server run a sanity check,

/usr/lib/nagios/plugins/check_nrpe -H <IP> -c check_xenvm

    • Run config check before restarting nagios,

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

    • Navigate to nagios.cfg and uncomment,

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

REMOTE WINDOWS SERVER

    • Install NSClient++ addon, this feature will allow check_nt from nagios server to communicate to the NSClient++ on the windows server

http://sourceforge.net/projects/nscplus

    • Unzip the files to the C:/ directory on the Windows Server

    • On a CMD Prompt, change directory to the location of NSClient++

        • Run nsclient++ /install, this will register the NSClient++ system service

        • Run nsclient++ SysTray? install, this will Install the SysTray? (SysTray? case-sensitive)

    • Open services on Windows server and verify “ Allow service to interact with Desktop” is enabled/checked for NSClientpp service

    • Edit the NSC.INI file to reflect the following

        • [Modules] Uncomment all .dll except CheckWMI.dll, Remote Configuration.dll, and LUAScript.dll

        • [Setting] Optionally require a password for clients by changing the 'password' option

        • [Setting] Allowed_host – Add Nagios Server IP address

    • On CMD Prompt run, nsclient++ /start

    • If needed, navigate to NSClient++ on the C:/ and run the nstray.exe.