Use the custom health condition subexpression builder to define a custom health condition for your health policy. Use the build subexpression utility to build complex rule conditions from subexpressions by using AND, OR, NOT and parenthetical grouping. The subexpression builder validates the rule when you apply the changes, and alerts you to mismatched parentheses and unsupported logic operators.
To view this administrative console page, click Run reaction plan when field is displayed. Click Subexpression builder to build the custom health condition.
. If you choose a custom health condition, theSelect the properties that you want to be in your custom health condition, and click Generate subexpression. The subexpression value displays. To append the subexpression to your custom health condition, click Append.
Specifies the operator that is used to append this subexpression to the previous subexpression in the custom health condition.
The PMI metric: From server start operand uses an average number of the reported values from the time that the server started.
The PMI metric: From last interval operand uses an average of the reported values in the last interval. The interval is the length of the health controller cycle.
Both PMI operands have the following PMI modules:
PMIMetric_FromServerStart$moduleName$metricName operator LongValueL (with "L" suffix)
PMIMetric_FromServerStart$systemModule$cpuUtilization > 90L
PMIMetric_FromLastInterval$moduleName$metricName operator LongValueL (with "L" suffix)
PMIMetric_FromLastInterval$webAppModule$responseTime > 200L
You can use the following server level metrics:
ODRServerMetric_FromServerStart$metricName operator LongValueL (with "L" suffix)
ODRServerMetric_FromServerStart$errors > 100L
ODRServerMetric_FromLastInterval$metricName operator LongValue (with "L" suffix)
ODRServerMetric_FromLastInterval$serviced > 10000L
You can use a subset of cell level metrics that the ODR publishes. These metrics are cumulative and reported since the server start. You can use the following set of metrics:
ODRCellMetric_FromServerStart$metricName operator LongValue (with "L" suffix)
ODRCellMetric_FromServerStart$arrivals > 10000L
ODRCellMetric_FromLastInterval$metricName operator LongValue (with "L" suffix)
ODRCellMetric_FromLastInterval$timeouts > 100L
For Managed Bean (Mbean) operation metric operands, you must specify the Object name query string and the MBean method name.These metrics can only be used on servers that are running WebSphere Application Server.
The value that you enter for the object name query string must have both the process=<process_name>, and node=<node_name> strings specified, or none specified. If you specify both process=<process_name>, and node=<node_name>, the backend creates a singleton MBeanSensor sensor that senses the particular MBean on a server and node. If you specify none, the backend appends the name of the current server as the process name and the name of the current node as the node name, creating a MBeanSensor sensor for each server to which the health policy applies. If you specify only one of the twoprocess=<process_name> or node=<node_name>, an error results.
MBeanOperationMetric_TypeLong$objectNameQueryString$methodName operator LongValueL (with "L" suffix)
MBeanOperationMetric_TypeLong$WebSphere\:\*\,type\=HealthConditionLanguageInitializer\,node\=hipods3\,process\=nodeagent$getNumberOfOperands > 10L
MBeanOperationMetric_TypeString$objectNameQueryString$methodName operator StringValue
MBeanOperationMetric_TypeString$WebSphere\:\*\,type\=HealthConditionLanguageInitializer\,node\=hipods3\,process\=nodeagent$getOperands = 't'
The value that you enter for the object name query string must have both the process=<process_name>, and node=<node_name> strings specified, or none specified. If you specify both process=<process_name>, and node=<node_name>, the backend creates a singleton MBeanSensor sensor that senses the particular MBean on a server and node. If you specify none, the backend appends the name of the current server as the process name and the name of the current node as the node name, creating a MBeanSensor sensor for each server to which the health policy applies. If you specify only one of the twoprocess=<process_name> or node=<node_name>, an error results.
MBeanAttributeMetric_TypeLong$objectNameQueryString$attributeName operator LongValue
MBeanAttributeMetric_TypeLong$WebSphere\:\*\,type\=HealthConditionLanguageInitializer\,node\=hipods3\,process\=nodeagent$NumberOfOperands > 10L
MBeanAttributeMetric_TypeString$objectNameQueryString$attributeName operator StringValue
MBeanAttributeMetric_TypeString$WebSphere\:\*\,type\=HealthConditionLanguageInitializer\,node\=hipods3\,process\=nodeagent$OperatorList = 'test'
With this operand, you can ping any relative path (URI) on the server that is the target of this policy. The return value is used in the condition expression for the custom health policy.
You can use this operand to ping any general purpose URL by selecting the on demand router (ODR) as the target of the health policy and by setting the appropriate routing rules in the ODR.
You can use this operand to select members that are running WebSphere Application Server, or that are running other middleware software with the node agent.
URLReturnCodeMetric$portNumber$relativePath operator IntValue
URLReturnCodeMetric$9060$ibm\/console\/login\.do = 200The URL sensor returns0 if the Web site cannot be reached:
URLReturnCodeMetric$9060$ibm\/console\/login\.do = 0
Depending on the operator that you choose, type in a value for the subexpression that you want to create.
After you click Generate subexpression, this field displays the generated subexpression fragment based on the options that you selected. To add this subexpression to your custom health condition, click Append.