Retrieves and updates alerts and inserts discovery data. Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)


Visual Basic
Dim instance As MonitoringConnector


Visual Basic
<SerializableAttribute> _
Public Class MonitoringConnector
		Inherits MonitoringBaseWithId
public class MonitoringConnector : MonitoringBaseWithId
public ref class MonitoringConnector : public MonitoringBaseWithId
/** @attribute SerializableAttribute() */ 
public class MonitoringConnector extends MonitoringBaseWithId
public class MonitoringConnector extends MonitoringBaseWithId


In the following C# console application:

  • An instance of a Management Group object is created.

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

C#  Copy Code
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.
			ConnectorFrameworkAdministration cfAdmin = mgmtGroup.GetConnectorFrameworkAdministration();
			// 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.



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).

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


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.


Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also