Revert "Updating agent to use the mon-client api"

This reverts commit cd6234f9e06ef690d521d73635119aa181babeca.