How to create a consecutive sample performance monitor

適用於: System Center Operations Manager 2007

The following procedure shows how to create a consecutive sample performance monitor in the Operations Manager 2007 Authoring console. Before you perform this procedure, you must first complete the prerequisite procedure How to Create a Class in which you create the target class.

The monitor created in this procedure has the following characteristics:

  • Runs on any computer with an instance of MyComputerRole1.

  • Monitors the memory utilization on any computer with an instance of MyComputerRole1.

  • Sets the monitor to a critical state when available memory is less than 100 MB for 4 consecutive samples.

  • Sets the monitor to a healthy state when available memory is above 100 MB for a single sample.

To create a consecutive sample performance monitor

  1. In the Authoring console, select Health Model, and then select Monitors.

  2. In the Monitors pane, expand Computer Role 1 and then System.Health.EntityState.

  3. Right click System.Health.PerformanceState, select New, select Windows Performance, select Static Thresholds, and then select Consecutive Samples.

  4. On the General page, do the following:

    1. In the ElementID box, type MyMP.Monitor.MyApplicationConsecutiveSampleMonitor.

    2. In the Display Name box, type MyApplication Consecutive Sample Monitor.

    3. In the Target box, select MyMP.MyComputerRole1.

    4. In the Parent Monitor box, select System.Health.PerformanceState.

    5. In the Category box, select PerformanceHealth. Click Next.

  5. On the Performance Counter page, do the following:

    1. Click Select.

    2. In the Object box, select Memory.

    3. In the Select counter from list box, select Available MBytes.

    4. Click OK.

    5. In the Interval box, type 15 and select Minutes.

    6. Click Next.

  6. On the Threshold Comparison page, do the following:

    1. In the Value box, select less than and type 100.

    2. In the Number of samples box type 4.

    3. Click Finish.

  7. Expand System.Health.PerformanceState.

  8. Right-click MyMP.Monitor.MyApplicationConsecutiveSampleMonitor and select Properties.

  9. On the Health tab, for Condition True, change the Health State to Critical.

  10. On the Alerting tab, Check Generate alerts for this monitor.

  11. Click OK.

另請參閱

概念

Performance Data
Performance Monitors