Sie sind auf Seite 1von 16

System Center Operations Manager 2007

Tarek Online!

System Center Operation manager 2007


Monitoring Windows Service using Operations manager 2007

Friday , 27 July 2007 Version: 1.00

Prepared by: Tarek Ismail Mohamed Infrastructure Consultant Management Solution Consultant Tarek_877@hotmail.com

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 1- 16

System Center Operations Manager 2007

Tarek Online!

Table of Contents
1. 2. 3. 4. OVERVIEW .................................................................................................. 3 BASIC SERVICE MONITOR UNIT MONITORS . ERROR! BOOKMARK NOT DEFINED. BASIC SERVICE MONITOR WALKTHROUGH ................................................. 4 CONFIGURE DIAGNOSTIC AND RECOVERY TASKS ....................................... 9

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 2- 16

System Center Operations Manager 2007

Tarek Online!

1. Overview
Monitoring windows services with operations manager 2007 provide us with great tool to monitor our servers, and detect any service problems Diagnostic and recovery tasks are available to analyze the system automatically when the service stopped without and administrators action to troubleshoot the problem. Operations manager has the ability to start the service automatically and run any suitable recovery task to cover this failure. You can create a Windows services unit monitor that you can use to generate an alert, run diagnostic tasks , and run recovery Tasks. The tasks can be configure to run manually or automatically The diagnostic tasks can be configured to run only commands The recovery tasks can be used to run a script or commands The task can only target the monitored objects only, and cannot target others This guide will discuss how to monitor windows services by example, configure diagnostic tasks, and configure the recovery tasks.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 3- 16

System Center Operations Manager 2007

Tarek Online!

2. Basic service monitor walkthrough


In this walkthrough we will create a basic service monitor unit monitor with the following criteria: Service name: DNS Client service Monitor target: Agent When the service was stopped the health state will be change to be critical This service monitor is related to the configuration of the monitored target. The health state will be changed to healthy when the service will be started manually or by using On authoring pane ,expand management pack object, and choose monitors Right-click on monitors and choose created monitor, then choose Unit Monitor. Expand windows services, then basic service monitor Select a Management Pack from the Select destination management pack list, and click Next.

In General properties screen, type the mane of the monitor and a description Choose agent as monitor target, and configuration as a parent monitor. Ensure that the monitor is enabled checkbox was selected, and then click Next.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 4- 16

System Center Operations Manager 2007

Tarek Online!

In Service name screen, click () to browse the computers and select the required monitored service, then click Next.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 5- 16

System Center Operations Manager 2007

Tarek Online!

On configure Health screen, configure the health state to be critical when the service is not running, and healthy when the service is running.

On Configure Alerts Screen, choose generate alerts for this monitor, and configure the alerts settings, then click Create.

Now, the basic setting for service monitor unit was configured, testing the monitor will be in the next steps, but what is the action we will take if the service stopped, diagnostic and recovery task will be used to improve the monitor unit.
Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt Page 6- 16

System Center Operations Manager 2007

Tarek Online!

On one of the Agent computers, stop the client DNS service. From the monitoring pane in operations console, check for alert with configured alert name. The alert was generated due to the service was stopped. On general tab of alert properties, you can get the alert source computer and the severity of this alert, age, and the alert status.

On History tab, you can add a history comment and view the alert history in details.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 7- 16

System Center Operations Manager 2007

Tarek Online!

On alert context tab, you can get all collect the property value of any property like service state, service type, start mode, error control, service name , and We can use the property to be displayed in the alert description to be available when the notification was configured.

The healthy state on the agent was changed from healthy to critical; we will start the service manually again, and check the health explorer to view the status of this monitor and the healthy history.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 8- 16

System Center Operations Manager 2007

Tarek Online!

3. Configure diagnostic and recovery tasks


What after monitor service availability? Is this the only function of Operations manager with windows services? No, Operations manager 2007 provides the administrator with great tools to monitor the service and do some diagnostic actions when the service become down. You can automate this process create a preconfigured tasks to be run when the service stopped. We will create a simple diagnostic task to run the IPConfig /all on the monitored target if the service stopped. On Diagnostic and recovery tab, click Add under configure diagnostic tasks area.

On select diagnostic task type screen, choose run command and click Next.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 9- 16

System Center Operations Manager 2007

Tarek Online!

On diagnostic Task Name and Description screen , type the name for the task, description , select critical as the Health state which the diagnostic task will run for it, choose to run diagnostic automatically, then click Next.

On configure command line Execution setting screen, type the full path to the command as %windir%\System32\ipconfig.exe and the parameter as \all The working directory type % Windir% and the task timeout will be 30 seconds, and then click Create to create the task.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 10- 16

System Center Operations Manager 2007

Tarek Online!

The task was listed now in configure diagnostic tasks area, the task can be reconfigured by click on Edit, deleted be click remove.

To start to create another task by click Add, choose Run command and click Next.

On diagnostic task name and description screen, type the diagnostic name as Ping DNS server, and choose critical as the health state which the diagnostic task will run for it. Choose Run diagnostic automatically, then click Next

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 11- 16

System Center Operations Manager 2007

Tarek Online!

On configure command line Execution setting screen, type the full path to the command as %windir%\System32\ping.exe and the parameter as 10.0.0.1 The working directory type %Windir% and the task timeout will be 45 seconds, and then click Create to create the task.

The diagnostic tasks are listed now

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 12- 16

System Center Operations Manager 2007

Tarek Online!

To check the Task we will stop the service and wait awhile and check the heath state using health explorer. The tasks and the task result will be available here

This task for diagnostic the monitor, the following stpes will be create to start the service as a recovery task. Click Add in configure Recovery Tasks area, then recover for critical health state.
Page 13- 16

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

System Center Operations Manager 2007

Tarek Online!

On select recovery task type screen, choose to run command we have an option now to run script, then click Next.

Type recovery name as Service start, choose critical as the health state which this recovery task will run for it.
Page 14- 16

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

System Center Operations Manager 2007

Tarek Online!

Choose Run recovery automatically, and Reset Monitor, then click Next.

On configure command line Execution setting screen, type the full path to the command as %windir%\System32\net.exe and the parameter as start Dnscache. The working directory type %Windir% and the task timeout will be 120 seconds, and then click Create to create the task.

We need to test the recovery task, we will stop the service on the monitored computer, check the heath state using Health

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 15- 16

System Center Operations Manager 2007

Tarek Online!

The recovery task run successfully, and the result of the task are listed on the state change view of the monitor

At any time you can . and of diagnostic and recovery task from the state change events view

As we get now the monitor of windows service provide us with a great tool yo monitor and recover windows services.

Tarek online! System Center Operations Manager 2007 in Egypt http://tarek-online.blogspot.com Cairo-Egypt

Page 16- 16

Das könnte Ihnen auch gefallen