This resource model monitors the IBMPSG_Processor availability
Internal Name | WizRM_IBMPSG_Processor |
Descriptive Name | IBMPSG_Processor Monitor |
Platforms | w32-ix86 |
Category | WizGenRM |
Category Description | Wizard Generated Resource Models |
Cycle Time | 300 |
Version | 1.0 |
Class Alias | ROOT\ibmsd:IBMPSG_Processor |
Cim Name | ROOT\ibmsd:IBMPSG_Processor |
Numeric Attributes | |
String Attributes |
|
Collection Type | Non Sorted |
Sorting Field | --- |
Top | --- |
Every | 1 |
Filtering | WHERE Status = "PFA%" |
Internal Name | IBMPSG_Processor_PFA |
Descriptive Name | Status is not equal to Normal |
Description | This event is generated when the property Status is different from all the values of the parameter 'Status unmatching values' |
Message | @DeviceID@ reports @Status@ |
Numeric Attributes | |
String Attributes |
|
Keys |
|
Occurrences | 1 |
Holes | 0 |
Clearing Event | TRUE |
Send to TEC | TRUE |
Send to TBSM | FALSE |
Severity | CRITICAL |
Internal Name | Descriptive Name | Description | Default Value |
---|
Internal Name | Descriptive Name | Description | Type | Values |
---|---|---|---|---|
Par_Status_nes | Status mismatching values | When the property Status is different from all the values of this parameter the event Ev_IBMPSG_Processor_Status_unmatches is generated | STRING LIST |
|
Context | Resource | Keys | Numeric Attributes | String Attributes |
---|
//'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' // IBM Tivoli Monitoring // Decision Tree script // // This file has been generated by IBM Tivoli Monitoring Workbench // // 04/16/2004 15:41:06 //''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' // 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_Processor"); Svc.SetProfileName ("18361968"); Svc.SetCycleTime (300); //<<\GENERAL_INFO>> // Thresholds section //<<THRESHOLDS_INFO>> //<<\THRESHOLDS_INFO>> // Parameters section //<<PARAMETERS_INFO>> Svc.DefineStrParameter ("Par_Status_nes", "PFA: CPU Status Normal"); //<<\PARAMETERS_INFO>> // Dynamic model section //<<DATA_INFO>> Svc.DefineClass ("CIM", "ROOT\\ibmsd:IBMPSG_Processor", "ROOT\\ibmsd:IBMPSG_Processor", "WHERE Status = \"PFA%\"", "", "SystemCreationClassName,DeviceID,SystemName,Status,CreationClassName", "None", "", 0, 1); //<<\DATA_INFO>> // Event definition section //<<EVENTS_INFO>> Svc.DefineEvent ("IBMPSG_Processor_PFA", "", "SystemCreationClassName,DeviceID,SystemName,CreationClassName,Status"); //<<\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 curSystemCreationClassName; var curDeviceID; var curSystemName; var curCreationClassName; var curStatus; var hPropTable; var numOfInstances; var idx; var ParamCount; var ParamIdx; var Different; hPropTable = Svc.CreateMap(); numOfInstances = Svc.GetNumOfInst("ROOT\\ibmsd:IBMPSG_Processor"); for ( idx = 0; idx < numOfInstances; idx++) { Svc.RemoveMapAll(hPropTable); curSystemCreationClassName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_Processor", idx, "SystemCreationClassName"); Svc.SetMapStrElement(hPropTable,"SystemCreationClassName",curSystemCreationClassName); curDeviceID = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_Processor", idx, "DeviceID"); Svc.SetMapStrElement(hPropTable,"DeviceID",curDeviceID); curSystemName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_Processor", idx, "SystemName"); Svc.SetMapStrElement(hPropTable,"SystemName",curSystemName); curCreationClassName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_Processor", idx, "CreationClassName"); Svc.SetMapStrElement(hPropTable,"CreationClassName",curCreationClassName); curStatus = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_Processor", idx, "Status"); Svc.SetMapStrElement(hPropTable,"Status",curStatus); Different = 1; ParamCount = Svc.GetStrParameterCount("Par_Status_nes"); for (ParamIdx = 0; ParamIdx < ParamCount; ParamIdx++) { if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_nes", ParamIdx).toLowerCase())) { Different = 0; break; } } if (Different == 1) { Svc.SendEventEx ("IBMPSG_Processor_PFA",hPropTable); } } Svc.DestroyMap(hPropTable); return (0); } |
All | |
w32-ix86 |
This Html document has been generated by IBM Tivoli Monitoring Workbench