For any invocation, resource agents must exit with a defined return code that informs the caller of the outcome of the invoked action. The return codes are explained in detail in the following subsections.
The action completed successfully. This is the expected return code
for any successful start, stop, promote, demote,
migrate_from, migrate_to, meta_data, help, and usage action.
For monitor (and its deprecated alias, status), however, a
modified convention applies:
OCF_SUCCESS from monitor
means that the resource is running. Non-running and gracefully
shut-down resources must instead return OCF_NOT_RUNNING.
OCF_SUCCESS from monitor
means that the resource is running in Slave mode. Resources
running in Master mode must instead return OCF_RUNNING_MASTER, and
gracefully shut-down resources must instead return
OCF_NOT_RUNNING.