Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

Monitoring

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.

  1. Uncomment all the modules listed in the [modules] section, except CheckWMI.dll and RemoteConfiguration.dll
  2. Optionally require a password for clients by changing the ’password’ option in the [Settings] section.
  3. 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.
  4. 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

  1. http://www.nagios.org
  2. http://www.nagios.org/about/
  3. http://support.nagios.com/knowledgebase
  4. http://exchange.nagios.org/

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest