Poll agent status

See #582