Share via


MonitoringConnector Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Retrieves and updates alerts and inserts discovery data.

Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Usage

'Usage
Dim instance As MonitoringConnector

Syntax

'Declaration
<SerializableAttribute> _
Public Class MonitoringConnector
    Inherits EnterpriseManagementConnector
[SerializableAttribute] 
public class MonitoringConnector : EnterpriseManagementConnector
[SerializableAttribute] 
public ref class MonitoringConnector : public EnterpriseManagementConnector
/** @attribute SerializableAttribute() */ 
public class MonitoringConnector extends EnterpriseManagementConnector
SerializableAttribute 
public class MonitoringConnector extends EnterpriseManagementConnector

Example

In the following C# console application:

  • An instance of a Management Group object is created.

  • A monitoring connector is created, set up, and initialized.

using System;
using System.Collections.ObjectModel;
using System.Text;
using Microsoft.EnterpriseManagement;
using Microsoft.EnterpriseManagement.Monitoring;
using Microsoft.EnterpriseManagement.ConnectorFramework;
using Microsoft.EnterpriseManagement.Common;
using Microsoft.EnterpriseManagement.Configuration;

namespace ConnectorSample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Connect to a management group.
            ManagementGroup mgmtGroup = new ManagementGroup("localhost");
            // Gets a reference to the connector framework administration object.
            IConnectorFrameworkManagement cfAdmin = mgmtGroup.ConnectorFramework;
            // Create a new monitoring connector.
            ConnectorInfo connectorInfo = new ConnectorInfo();
            connectorInfo.Description = "Get alerts from the manager";
            connectorInfo.DisplayName = "Alerts from the manager";
            connectorInfo.Name = "Application Connector";

            // Set up the monitoring connector.
            MonitoringConnector connector = cfAdmin.Setup(connectorInfo);

            // Initialize the connector.
            connector.Initialize();

         }
    }
}

Remarks

For more information about connectors, see Connecting to External Systems by Using Operations Manager Connectors. A MonitoringConnector can pass information only for the alerts that are marked for monitoring connector. The MonitoringConnector must be set up and initialized before any alerts can be retrieved. Similarly, to remove a MonitoringConnector, it must be uninitialized before it can be deleted (cleanup).

Warning

After installing Microsoft System Center Operations Manager, an instance of MonitoringConnector named "MOM Internal Connector" appears in the database. This instance is not intended for use in your code.

Inheritance Hierarchy

System.Object
   Microsoft.EnterpriseManagement.Common.MonitoringBase
     Microsoft.EnterpriseManagement.Common.MonitoringBaseWithId
       Microsoft.EnterpriseManagement.ConnectorFramework.EnterpriseManagementConnector
        Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Change History

See Also

Reference

MonitoringConnector Members
Microsoft.EnterpriseManagement.ConnectorFramework Namespace