WizRM_IBMPSG_StorageFailurePredictionSettings Resource Model Documentation


This resource model monitors the IBMPSG_StorageFailurePredictionSettings availability

General Info

Internal NameWizRM_IBMPSG_StorageFailurePredictionSettings
Descriptive NameIBMPSG_StorageFailurePredictionSettings Monitor
Platformsw32-ix86
CategoryWizGenRM
Category DescriptionWizard Generated Resource Models
Cycle Time300
Version1.0

Dynamic Model

Class AliasROOT\ibmsd:IBMPSG_StorageFailurePredictionSettings
Cim NameROOT\ibmsd:IBMPSG_StorageFailurePredictionSettings
Numeric Attributes
  • PredictsFailure
  • SmartEnabled
String Attributes
  • DeviceId
Collection TypeNon Sorted
Sorting Field---
Top---
Every1
FilteringWHERE SmartEnabled =1

Events

Internal NameIBMPSG_StorageFailurePredictionSettings_PredictsFailure
Descriptive NamePredictsFailure is equal
DescriptionThis event is generated when the counter PredictsFailure is equal to the threshold 'PredictsFailure matching value'
MessageThe storage device @DeviceId@ Predicts a Failure
Numeric Attributes
  • PredictsFailure
  • MatchingValue
String Attributes
  • DeviceId
Keys
  • DeviceId
Occurrences1
Holes0
Clearing EventTRUE
Send to TECTRUE
Send to TBSMFALSE
SeverityCRITICAL

Thresholds

Internal NameDescriptive NameDescriptionDefault Value
Thr_PredictsFailure_CriticalPredictsFailure matching valueWhen the counter PredictsFailure is equal to this threshold the event IBMPSG_StorageFailurePredictionSettings_PredictsFailurel is generated1

Parameters

Internal NameDescriptive NameDescriptionTypeValues

Logging

ContextResourceKeysNumeric AttributesString Attributes

Decision Tree Script

//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//    IBM Tivoli Monitoring
//    Decision Tree script
//
//    This file has been generated by IBM Tivoli Monitoring Workbench
//
//    04/01/2004 15:23:01

//'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''




// This function is used to define the settings of the resource model
// It is called only once, when the resource model is started.
// Don't modify remarks containing tags like <<....>> ... <<\...>>
// You can write additional initializing code in this function if required. 
function SetDefaultConfiguration (Svc)
{
	// General info section
	//<<GENERAL_INFO>>
	Svc.SetModelName ("WizRM_IBMPSG_StorageFailurePredictionSettings");
	Svc.SetProfileName ("2686696218");
	Svc.SetCycleTime (300);
	//<<\GENERAL_INFO>>

	// Thresholds section
	//<<THRESHOLDS_INFO>>
	Svc.DefineThreshold ("Thr_PredictsFailure_Critical", 1.000000);
	//<<\THRESHOLDS_INFO>>

	// Parameters section
	//<<PARAMETERS_INFO>>
	//<<\PARAMETERS_INFO>>

	// Dynamic model section
	//<<DATA_INFO>>
	Svc.DefineClass ("CIM", "ROOT\\ibmsd:IBMPSG_StorageFailurePredictionSettings", "ROOT\\ibmsd:IBMPSG_StorageFailurePredictionSettings", "WHERE SmartEnabled =1", "PredictsFailure,SmartEnabled", "DeviceId", "None", "", 0, 1);
	//<<\DATA_INFO>>

	// Event definition section
	//<<EVENTS_INFO>>
	Svc.DefineEvent ("IBMPSG_StorageFailurePredictionSettings_PredictsFailure", "PredictsFailure,MatchingValue", "DeviceId");
	//<<\EVENTS_INFO>>

	// Logging definition section
	//<<LOGGING_INFO>>
	//<<\LOGGING_INFO>>

	// Place your additional intializing code below


	return (0);

}


// This function is called by the DM For Windows Analyzer after that 
// the resource model default settings have been overridden
// It is called only once, when the resource model is started.
// You can write additional initializing code in this function if required
// to use the thresholds and parameters values
function Init(Svc)
{

	return (0);

}



// This function contains the monitoring algorithm
// It is called ciclically after a cycle time has elapsed
// Implement the the monitoring code here
function VisitTree(Svc)
{
	var curPredictsFailure;
	var curSmartEnabled;

	var curDeviceId;



	var hPropTable;
	var numOfInstances;
	var idx;
	var ParamCount;
	var ParamIdx;
	var Different;

	hPropTable = Svc.CreateMap();

	numOfInstances = Svc.GetNumOfInst("ROOT\\ibmsd:IBMPSG_StorageFailurePredictionSettings");
	for ( idx = 0; idx < numOfInstances; idx++) {

		Svc.RemoveMapAll(hPropTable);

		curPredictsFailure = Svc.GetNumProperty("ROOT\\ibmsd:IBMPSG_StorageFailurePredictionSettings", idx, "PredictsFailure");
		Svc.SetMapNumElement(hPropTable,"PredictsFailure",curPredictsFailure);
		curSmartEnabled = Svc.GetNumProperty("ROOT\\ibmsd:IBMPSG_StorageFailurePredictionSettings", idx, "SmartEnabled");
		Svc.SetMapNumElement(hPropTable,"SmartEnabled",curSmartEnabled);

		curDeviceId = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_StorageFailurePredictionSettings", idx, "DeviceId");
		Svc.SetMapStrElement(hPropTable,"DeviceId",curDeviceId);


		if (curPredictsFailure == Svc.GetThreshold("Thr_PredictsFailure_Critical") ) {
			Svc.SetMapNumElement(hPropTable,"MatchingValue",Svc.GetThreshold("Thr_PredictsFailure_Critical"));
			Svc.SendEventEx ("IBMPSG_StorageFailurePredictionSettings_PredictsFailure",hPropTable);
		}
	}

	Svc.DestroyMap(hPropTable);

	return (0);

}

Dependencies

All
    w32-ix86


      This Html document has been generated by IBM Tivoli Monitoring Workbench