CLOUDIFY-1536 Ongoing refactoring of agent health probe