Added requirement to report agentname to plugin