...
When a resource has been enabled, an agent will start monitor a resource after probing and its state will be changed.
After determining the state based on the results of the monitoring, agent gets the command and
Below is the flow of the change of agent state.
...