fix check_attempts and plugin_output for hosts