Building a monitoring system based on Nagios -- monitoring remote Windows Server

Source: Internet
Author: User

After sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.


Part 1: configure the monitored Windows Server


First, visit http://sourceforge.net/projects/nscplus/and download the NSClinent ++ of the License Server. The file I downloaded was named: NSCP-0.4.1.73-Win32.msi

Double-click the installer, select Complete Install, and select generate the instance configuration file. The other one will be OK after the next step.

Next, open NSClient. ini in the installation directory of nsclient ++, and add the IP address of the monitoring server to the end of the allowed hosts command. Pay attention to the Password following the Password command. The default value is 12489, which is used when the monitoring server connects to this Windows server.

OK. Start NSClient ++ from the Start Menu.


Part 2: configure the Monitoring Server


Step 1: Create a configuration file and add the HOST and SERVICE configurations to the configuration file just like adding a Linux server. We can copy windows. cfg that comes with Nagios, and replace the IP address and Host Name with the corresponding one.

Step 2: add the cmd_file command to/usr/local/nagios/etc/nagios. cfg to add the newly created configuration file to the end of the command;

Step 3: Modify/usr/local/nagios/etc/objects/command. cfg, add-s 'Password' to the end of the check_nt command, and enter the Password.

Step 4: restart Nagios.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.