agent: Limit health check output to 4K. Fixes #83.