#pragma namespace("\\root\\cimv2\\microsoftHealthMonitor")
// 1528: #pragma namespace("\\root\\HealthMon")
// 1540: #pragma namespace("\\root\\cimv2\\microsoftHealthMonitor")

////////////////////////////////////////////////////////////////////////////////
// A TOP LEVEL DATA GROUP
////////////////////////////////////////////////////////////////////////////////
instance of Microsoft_HMDataGroupConfiguration AS $DG1
{
	GUID = "{5bc8d3d7-0784-4740-9a3a-3cfe74150c91}";
	Name = "ADREPLPV DataGroup";
	Description = "Monitors active directory replication";
	Enabled = TRUE;
};
instance of Microsoft_HMConfigurationAssociation
{
	ParentPath = "Microsoft_HMSystemConfiguration=@";
	ChildPath = $DG1;
};

////////////////////////////////////////////////////////////////////////////////
// POLLED GET OBJECT DATA ELEMENT - FOR A SINGLE INSTANCE
////////////////////////////////////////////////////////////////////////////////
instance of Microsoft_HMPolledGetObjectDataCollectorConfiguration AS $PGDE1
{
	GUID = "{fdbc94ab-a8da-409f-a7d3-1ad1f9aaf9c4}";
	TypeGUID = "{03B9B361-2299-11d3-BE00-0000F87A3912}";
	Name = "Replication connection";
	Description = "Monitors the replication connection from one source/NC pair";
    TargetNamespace = "ROOT\\MicrosoftADStatus";
	Context = NULL;
//	CollectionIntervalMultiple = 10; workaround Black Circle Bug
	CollectionIntervalMultiple = 60;
	StatisticsWindowSize = 6;
//	ActiveDays = 00111110B;
//	BeginTime = "********0600**.******+***";
//	EndTime = "********2300**.******+***";
	RequireReset = FALSE;
	Enabled = TRUE;
	Properties = {"ModifiedNumConsecutiveSyncFailures"};
// 1528 StatisticsPropertyNames = {"ModifiedNumConsecutiveSyncFailures"};
// 1540	Properties = {"ModifiedNumConsecutiveSyncFailures"};
	ObjectPath = "Microsoft_ADReplStatus";
};
instance of Microsoft_HMConfigurationAssociation
{
	ParentPath = $DG1;
	ChildPath = $PGDE1;
};

// RULE(S)
instance of Microsoft_HMThresholdConfiguration AS $R1
{
	GUID = "{c8c4d8c6-a793-4b9b-85d7-e76db4e94c9e}";
	Name = "Replication Failing";
	Description = "Rule: Is this a connection from a non-deleted NC which is failing to replicate?";
	ID = 1234;
	PropertyName = "ModifiedNumConsecutiveSyncFailures";
	UseFlag = 0;
	TestCondition = 1; // ">" test
	CompareValue = "0";
// 1528	RuleCondition = 1; // ">" test
// 1528	RuleValue = "0";
// 1540	TestCondition = 1; // ">" test
// 1540	CompareValue = "0";
	ThresholdDuration = 0;
	State = 0; // CRITICAL
	CreationDate = "19990330******.000000+***";
	LastUpdate = "19990330******.000000+***";
	Message = "%CurrentValue% failures: %InstanceName%";
	ResetMessage = "OK: %InstanceName%";
	Enabled = TRUE;
};
instance of Microsoft_HMConfigurationAssociation
{
	ParentPath = $PGDE1;
	ChildPath = $R1;
};