check juju machine agent and unit agent are running