Fixes to agentctrl tool, more checks and changed delete_site
Merge pull request #1980 from mmeisinger/fix1789_tool

OOIION-1789: Fixes to agentctrl tool, more checks and changed delete_site