IBMPSG_SystemEnclosure Resource Model Documentation


This resource model monitors the IBMPSG_SystemEnclosure Intrusion status

General Info

Internal NameIBMPSG_SystemEnclosure
Descriptive NameIBMPSG_SystemEnclosure Monitor
Platformsw32-ix86
CategoryWizGenRM
Category DescriptionWizard Generated Resource Models
Cycle Time300
Version5.1

Dynamic Model

Class AliasROOT\ibmsd:IBMPSG_SystemEnclosure
Cim NameROOT\ibmsd:IBMPSG_SystemEnclosure
Numeric Attributes
  • IntrusionStatus
String Attributes
  • Tag
  • Name
  • CreationClassName
Collection TypeNon Sorted
Sorting Field---
Top---
Every1
FilteringWHERE IntrusionStatus >0

Events

Internal NameIBMPSG_SystemEnclosure_Intrusion
Descriptive NameA chassis intrusion has occured
DescriptionThis event is generated when the counter IntrusionStatus is equal to the threshold 'IntrusionStatus matching value'
MessageA chassis intrusion has been detected for @Tag@
Numeric Attributes
  • IntrusionStatus
  • MatchingValue
String Attributes
  • Tag
  • CreationClassName
Keys
  • Tag
  • CreationClassName
Occurrences1
Holes0
Clearing EventTRUE
Send to TECTRUE
Send to TBSMFALSE
SeverityCRITICAL

Thresholds

Internal NameDescriptive NameDescriptionDefault Value
Thr_IntrusionStatus_eqIntrusionStatus matching valueWhen the counter IntrusionStatus is equal to this threshold the event Ev_IBMPSG_SystemEnclosure_IntrusionStatus_is_equal is generated2

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
//
//    07/23/2005 14:14:23

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




// 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 ("IBMPSG_SystemEnclosure");
	Svc.SetProfileName ("6290609");
	Svc.SetCycleTime (300);
	//<<\GENERAL_INFO>>

	// Thresholds section
	//<<THRESHOLDS_INFO>>
	Svc.DefineThreshold ("Thr_IntrusionStatus_eq", 2.000000);
	//<<\THRESHOLDS_INFO>>

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

	// Dynamic model section
	//<<DATA_INFO>>
	Svc.DefineClass ("CIM", "ROOT\\ibmsd:IBMPSG_SystemEnclosure", "ROOT\\ibmsd:IBMPSG_SystemEnclosure", "WHERE IntrusionStatus >0", "IntrusionStatus", "Tag,Name,CreationClassName", "None", "", 0, 1);
	//<<\DATA_INFO>>

	// Event definition section
	//<<EVENTS_INFO>>
	Svc.DefineEvent ("IBMPSG_SystemEnclosure_Intrusion", "IntrusionStatus,MatchingValue", "Tag,CreationClassName");
	//<<\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 curIntrusionStatus;

	var curTag;
	var curName;
	var curCreationClassName;



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

	hPropTable = Svc.CreateMap();

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

		Svc.RemoveMapAll(hPropTable);

		curIntrusionStatus = Svc.GetNumProperty("ROOT\\ibmsd:IBMPSG_SystemEnclosure", idx, "IntrusionStatus");
		Svc.SetMapNumElement(hPropTable,"IntrusionStatus",curIntrusionStatus);

		curTag = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_SystemEnclosure", idx, "Tag");
		Svc.SetMapStrElement(hPropTable,"Tag",curTag);
		curName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_SystemEnclosure", idx, "Name");
		Svc.SetMapStrElement(hPropTable,"Name",curName);
		curCreationClassName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_SystemEnclosure", idx, "CreationClassName");
		Svc.SetMapStrElement(hPropTable,"CreationClassName",curCreationClassName);


		if (curIntrusionStatus == Svc.GetThreshold("Thr_IntrusionStatus_eq") ) {
			Svc.SetMapNumElement(hPropTable,"MatchingValue",Svc.GetThreshold("Thr_IntrusionStatus_eq"));
			Svc.SendEventEx ("IBMPSG_SystemEnclosure_Intrusion",hPropTable);
		}
	}

	Svc.DestroyMap(hPropTable);

	return (0);

}

Dependencies

All
    w32-ix86


      This Html document has been generated by IBM Tivoli Monitoring Workbench