protected function pingAgent($interval, array $callChain)
    {
        if (!$this->isAgentMode()) {
            return;
        }

        $name = $this->getAgentName($callChain);
        $model = new \CAgent();

        $rsAgent = $model->GetList([], ['NAME' => $name]);

        if ($agent = $rsAgent->Fetch()) {
            $dateCheck = DateTime::createFromTimestamp(time() + $interval * 60);

            $pingResult = $model->Update($agent['ID'], ['DATE_CHECK' => $dateCheck->toString()]);

            if (!$pingResult) {
                // @todo warning
            }
        } else {
            // @todo warning
        }
    }