Fix handling of agent check targets
Fix handling of agent host information