centreon_ how to monitor your windows server using nsclient - unixmen.pdf

13
Centreon: How To Monitor Your Windows Server Using NSClient by anismaj Please share Introduction Centreon is an Open Source software package alternative toNagios Xi that lets you supervise all the infrastructure and applications comprising your information system. CES Standard is the Open and free version of the product. CentreonEnterprise Server (CES) includes all Centreon functions in a unique product. For more information, you can visit the website of Centreon, andcheck our article in this link . Purpose and Target Audience This article describes how to monitor Windows machines withCentreon using NSClient Agent. The NSClient++ agent can be obtained from direct download from the NSClient++ downloads page at http://nsclient.org/nscp/downloads. The NSClient++ agent must be installed on the target Windows machine and configured before Centreon can monitor system metrics, services, processes, or performance data on the target machine. This article is intended for use by Centreon Administrators who want to monitor Windows machines with Centreon. If you still didn’t install Centreon , check this article to see how to do that. Installing and Configuring NSClient On The Remote Windows Machine Before you can monitor a Windows machine using NSClient, you’ll need to install and configure the necessary NSClient software on the remote server. 1 Download the NSClient++ installer package to the target machine you wish to install it on. 2 Run the NSClient++ MSI installer package to initiate the installation. The welcome screen will 209 0 9 3 1 1

Upload: musa

Post on 10-Dec-2015

239 views

Category:

Documents


12 download

TRANSCRIPT

Page 1: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 1/13

Centreon: How To Monitor YourWindows Server Using NSClientby anismaj

Please share

IntroductionCentreon is an Open Source software package alternative toNagios Xi that lets you supervise allthe infrastructure and applications comprising your information system.

CES Standard is the Open and free version of the product. CentreonEnterprise Server (CES) includesall Centreon functions in a unique product.

For more information, you can visit the website of Centreon, andcheck our article in this link .

Purpose and Target AudienceThis article describes how to monitor Windows machines withCentreon using NSClient Agent.The NSClient++ agent can be obtained from direct download from the NSClient++ downloads pageat http://nsclient.org/nscp/downloads.

The NSClient++ agent must be installed on the target Windows machine and configuredbefore Centreon can monitor system metrics, services, processes, or performance data on thetarget machine.

This article is intended for use by Centreon Administrators who want to monitor Windows machineswith Centreon.

If you still didn’t install Centreon , check this article to see how to do that.

Installing and Configuring NSClient On TheRemote Windows MachineBefore you can monitor a Windows machine using NSClient, you’ll need to install and configure thenecessary NSClient software on the remote server.

1­ Download the NSClient++ installer package to the target machine you wish to install it on.

2­ Run the NSClient++ MSI installer package to initiate the installation. The welcome screen will

209 0 9 3 1 1

Page 2: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 2/13

appear. Click Next to continue to the next step.

3­ Once you have agreed to the License Agreement click Next to continue.

Page 3: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 3/13

4­ In the next step you will need to choose setup type that best suite to you. The type Typical is recommended for most users.

5­ You can make change in the path of the installation if you want that. Else no changes arerequired for a working installation of the NSClient. Click Next to continue.

Page 4: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 4/13

6­ In the next step you will need to configure the NSClient++ agent. These steps are important!Make sure you:

Enter the IP address of the Centeron server in the Allowed hosts box.

Enter a password in the NSClient password box that will be required for communicationbetween the Centeron server and the Windows machine.

Check the following boxes in the Modules to load section:

Enable common check plugins

Enable nsclient server (check_nt)

Click Next to continue.

Page 5: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 5/13

7­ Click the Install button on the next screen to start the installation.

8­ When the installation completes, click Finish to complete the setup.

Page 6: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 6/13

You should now have the NSClient++ windows monitoring agent installed on your target windowmachine.Now you need to run NSClient as service which means the Windows machine is ready tobe monitored with Centreon.

Test Your Agent Installation From TheCommand LineIt’s useful to be familiar with running your plugin from the command line, for both informational anddebugging purposes.Check_nt plugin is located in the /usr/local/nagios/libexecdirectory. Loginto your Centreon server, navigate to the plugins directory and run your plugin with the similarcommands:

./check_nt ‐H $HOSTADDRESS$ ‐p 12489 ‐s password ‐v CLIENTVERSION

If the communication between Centreon server and the remote machine you should get this resultas shown in the following example:

./check_nt ‐H 192.168.150.220 ‐v CLIENTVERSION ‐t 30 ‐s password ‐p 12489NSClient++ 0,4,1,102 2013‐07‐15

Configuring Centreon to Monitor the Windows

Page 7: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 7/13

HostOnce the installation of NSClient is done, it’s about time we start with the configuration of ourobjects.

Log into the web interface via : http://[SERVER_IP]/centreonand enter your login information.

Introduction to the web interface of CentreonCentreon web interface is made up of several menus, each menu has a specific function:

Stacks Image 16805

The Home menu enables access to the first home screen after logging in. It summaries thegeneral status of the supervision.

The Monitoring menu contains the status of all the supervised elements in real and delayedtime via the viewing of logs.

The Views menu serves to view and configured the performances graphics for each element inthe information system.

The Reporting menu serves to view, intuitively (via diagrams), the evolution of the supervisionon a given period.

The Configuration menu serves to configure all monitored objects and the supervisioninfrastructure.

The Administration menu serves to configure the Centreon web interface and to view thegeneral status of the servers.

Host configuration

Page 8: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 8/13

First step to do is to add the Windows host.

Go under « Configuration → Hosts → Add »:

In the general information, fill out the fields: :

Enter the information regarding the polling strategy:

Our host will then be checked every 5 minutes and an alert will be sent out 4 minutes after our hostgoes « DOWN » (2 check attempts with 1 check every 2 minutes will confirm its « HARD » state).The notification will be effective during the time period of 24 hours a day, 7 days a week.At last, the notification parameters are as follows:

Page 9: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20s… 9/13

Then, click on « Save ».

After you should see that has been add into Centreon.

Services configurationThe configuration of our host is now done; all we have left to do is add the definitions of ourservices. In order to do so,

Go to « Configuration → Services → Services by hosts → Add »:

Page 10: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20… 10/13

In order to create our service for checking the memory usage, enter the following:

In the « Relations » tab, select the host that was previously created, then click on « Save »:

Page 11: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20… 11/13

Follow the same procedure in order to create other services like CPU­Usage, Disk­Usage etc..

Generation of configuration filesOnce the hosts and services are created and properly configured, it is required to generate theconfiguration files through two steps:

• configuration testing;• configuration export.

Go to the « Configuration → Monitoring Engines → Generate » menu:

First, select the monitoring poller from the dropdown menu, check the first two check­boxes, andthen click on the « Export » button:

Page 12: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20… 12/13

If the output is the test is « Generating files… OK », then you can go to step #2. Otherwise, it isrequired to fix the problems which should be displayed in the console.

Now, check the two other check­boxes and click on the « Export » button again:

If the export process is successful, you should see the following displayed: “Restarting engine…OK”

Checking Host and Services Status

Page 13: Centreon_ How To Monitor Your Windows Server Using NSClient - Unixmen.pdf

8/1/2015 Centreon: How To Monitor Your Windows Server Using NSClient ­ Unixmen

data:text/html;charset=utf­8,%3Ch1%20style%3D%22margin%3A%200px%200px%2020px%3B%20font­family%3A%20'Source%20Sans%20Pro'%2C%20… 13/13

The results of the polling are visible in the « Monitoring → Hosts » or « Monitoring → Services »menus. First, our services and host have not been checked yet, so they appear with a« PENDING » status.

The screenshot below shows disk, cpu, memory, service, and process monitoring capabilities ofCentreon.

That’s all.

Congratulations! Enjoy your new Monitoring platform Centreon.