Update monitor function
Update monitor function

- add best practices
- rename variables, remove uppercase
- add a binary test function

madkiss/openstack-resource-agents,aspiers/openstack-resource-agents,openstack/openstack-resource-agents