Use this Knowledge Script to detect whether the owner of a cluster resource has changed. Changes in the ownership of a resource typically indicate a failover or failback operation has taken place. This script raises an event if the owner of the cluster resource changes or if a cluster-related API failure occurs.
Both the event and data detail message indicate the previous cluster resource owner and the new resource owner.
Microsoft cluster resource
The default interval for this script is Every 5 minutes.
Set the following parameters as needed:
Description |
How to Set It |
---|---|
Raise event? |
Set to y to raise an event is cluster resource ownership changes or when a cluster-related API failure occurs. The default is y. |
Collect data? |
Set to y to collect data for charts and reports. The default is n. If enabled, data collection returns a value of 0 if the cluster resource owner has changed in the interval, or a value of 100 if the resource owner has stayed the same. The detail message indicates the previous resource owner and the new owner. |
Event severity level when cluster resource owner changes |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which cluster resource ownership has changed. The default is 5 (red event indicator). |
Event severity level for cluster-related API failure |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which cluster-related API failure occurs. The default is 15 (yellow event indicator). |