send agent event after connect