MonitoringConnector Class

Updated: April 16, 2012

Retrieves and updates alerts and inserts discovery data. Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As MonitoringConnector <SerializableAttribute> _ Public Class MonitoringConnector Inherits EnterpriseManagementConnector[SerializableAttribute] public class MonitoringConnector : EnterpriseManagementConnector[SerializableAttribute] public ref class MonitoringConnector : public EnterpriseManagementConnector/** @attribute SerializableAttribute() */ public class MonitoringConnector extends EnterpriseManagementConnectorSerializableAttribute public class MonitoringConnector extends EnterpriseManagementConnector

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();

		 }
}
}

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

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


  
    
      
        Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector
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 Vista, Windows Server 2003, and

Target Platforms