Refactor: tools: Rearrange get_fencing_history in crm_mon.
First, make it take parameters instead of refer to global variables.
Second, have it return a standard pacemaker return code. Third, get rid
of the while loop and have the caller decide whether it should even be
run or not.