in_monitor_agent: added debug messages