Code Additions

agent.php - added in code to get JSON object & extract hosts, then ping
and echo basic log file.