Nagios client for Windows Machine:
Edit the main Nagios Core config file in Nagios Server.
# vi /usr/local/nagios/etc/nagios.cfg
Remove the leading pound (#) sign from the following line in the main configuration file:
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg(Appear By default)
We can change directory
Installing the Windows Agent in Windows Client machine
1. Download the latest stable version of the NSClient++ addon from http://sourceforge.net/projects/nscplus
2. Unzip the NSClient++ files into a new C:\NSClient++ directory
3. Open a command prompt and change to the C:\NSClient++ directory
4. Register the NSClient++ system service with the following command:
5. Install the NSClient++ systray with the following command (‘SysTray’ is case-sensitive):
6. Open the services manager and make sure the NSClientpp service is allowed to interact with the desktop (see the ‘Log On’ tab of the services manager). If it isn’t already allowed to interact with the desktop, check the box to allow it to.
7. Edit the NSC.INI file (located in the C:\NSClient++ directory) and make the following changes:
i. Uncomment all the modules listed in the [modules] section, except for CheckWMI.dll and RemoteConfiguration.dll
ii. Optionally require a password for clients by changing the ‘password’ option in the [Settings] section.
iii. Uncomment the ‘allowed_hosts’ option in the [Settings] section. Add the IP address of the Nagios server to this line, or leave it blank to allow all hosts to connect.
iv. Make sure the ‘port’ option in the [NSClient] section is uncommented and set to ‘12489’ (the default port).
8. Start the NSClient++ service with the following command:
9. Success! The Windows server can now be added to the Nagios Core monitoring configuration .
165 total views, 1 views today