Example of creating a dynamic threshold
One approach to defining dynamic thresholds is to create the DEFAULT threshold set for an element that you want to monitor and associate that threshold set with the predefined ANYTIME calendar period. The DEFAULT threshold set will be in effect anywhere that element is used in BMC AMI Ops product views or alarm definitions. However, the same threshold set will be in effect all the time without regard for changes in your business activity.
To create the DEFAULT threshold set for use with ANYTIME
- Use the MAKETHResh command on a BMC AMI Ops product view for an element that you want to monitor.
- On the THRSET view, add or change threshold comparisons for the element in the DEFAULT threshold set.
- Use the ENAble command on THRSET to make the DEFAULT threshold set available for use.
- Hyperlink to the THRSEL view to associate the DEFAULT threshold set for the element with the predefined ANYTIME calendar period.
- Use the ENAble command on THRSEL to make the DEFAULT/ANYTIME selection pair available for use.When you finish, the thresholds defined in the DEFAULT threshold set for the element will be in effect all the time.
To add a calendar period and another threshold set
To have different thresholds in effect for an element at different times, you need to define one or more calendar periods that reflect your business activity and at least one additional threshold set (in addition to the DEFAULT threshold set).
- Use the CALDEFS view to create a calendar period definition that represents a period of business activity (such as PRIME).
- On the CALDEF view, specify one or more time spans for the calendar period to indicate when the calendar period should be active (such as 08:00--18:00, Monday through Friday).
- Use the ENAble command on CALDEF to make the calendar period available for use.
- Use the MAKETHR command to add another threshold set (such as PRIMESET) for an element that already has a DEFAULT threshold set.
- On the THRSET view, add or change threshold comparisons for the element in the new threshold set.
- Use the ENAble command on THRSET to make the new threshold set available for use.
- Hyperlink to the THRSEL view to associate the new threshold set for the element with the calendar period you defined (such as the PRIMESET threshold set with the PRIME calendar period).
- Use the ENAble command on THRSEL to make the new threshold selection available for use.When you finish, the thresholds defined in the PRIMESET threshold set will be in effect when the PRIME calendar period is active (08:00--18:00, Monday through Friday). The thresholds defined in the DEFAULT threshold set for the element will be in effect at all other times.
To define standard calendar periods for multiple threshold sets
As an alternative, you can start with standard calendar periods that reflect your business activity (such as AM and PM, or WEEKDAY and WEEKEND), and use those calendar periods for multiple threshold sets that cover multiple elements.
- Use the CALDEFS view to create standard calendar period definitions that represent your business activity (such as SHIFT1, SHIFT2, and SHIFT3).
- Use the CALDEF view to specify one or more time spans for each calendar period (such as 07:00-15:00, 15:00-22:00, and 22:00-07:00, every day of the week).
- Use the ENAble command on CALDEF to make the calendar periods available for use.
Use the MAKETHR command to create threshold sets for the elements that you want to monitor (such as SHIFT1SET, SHIFT2SET, and SHIFT3SET for each element).
On the THRSET view for each threshold set, perform the following actions:
- Add or change threshold comparisons for the element.
- Use the ENAble command to make the threshold set available for use.
- Hyperlink to the THRSEL view to associate the threshold set with the appropriate calendar period (such as SHIFT1SET with SHIFT1).
- On the THRSEL view, use the ENAble command to make each threshold selection available for use.
When you finish, multiple threshold sets called SHIFT1SET (each for a different element) will be in effect when the SHIFT1 calendar period is active (07:00-15:00). The same would be true for the SHIFT2SET and SHIFT3SET threshold sets. This approach provides a standard way to monitor multiple metrics during each shift.
Related topic