How to monitor a remote Windows host using Nagios?
NsClient++ Configuration
Now lets go into the details and discover some more options.
Open C:NSClientNSC.INI in you favorite editor and make the following changes.
- Uncomment all the modules listed in the [modules] section, except CheckWMI.dll and RemoteConfiguration.dll
- Optionally require a password for clients by changing the ’password’ option in the [Settings] section.
- 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.
- Make sure the ’port’ option in the [NSClient] section is uncommented and set to ’12489’ (the default port).
Start the NSClient++ service with the following command:
nsclient++ /start
you can stop NSClient++ service with the following command:
nsclient++ /stop
but make sure the you have started the NSClient++ service. As log as you will start you will notice that Nagios Server has started collection of data from windows client.
Note: If you found that you nagios server can not collect data from windows client never forget to open NSClient ++ port on both windows and Nagios server which is “12489”
References
- http://www.nagios.org
- http://www.nagios.org/about/
- http://support.nagios.com/knowledgebase
- http://exchange.nagios.org/