AgentMonitor: A Plug-and-Play Framework for Predictive and Secure Multi-Agent Systems