Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.15
Sv translation
languageru

Проблемы с отправкой событий по PushAPI могут быть связаны с:

  • неполадками в веб-интерфейсе. Чтобы включить режим отладки на сервере:
    1. Зайдите на сервер по SSH.
    2. Откройте на редактирование файл /opt/iw/tm5/etc/web.conf.
    3. Включите режим отладки, установив значение: "debug": true.
    4. Сохраните файл.
    5. Обновите страницу в веб-интерфейсе.
    6. Перейдите в отладочную консоль с подробными логами по запросам к API. Для этого введите urlURL: https://<IP_сервера>/api/debug/default.
  • отсутствием доверенных сертификатов. Добавьте самоподписанные сертификаты в доверенные. Пути до сертификатов:
    • Вебвеб: /opt/iw/tm5/etc/certification/web-server.pem;
    • XAPI: /opt/iw/tm5/etc/cert/server.pem;
  • файловыми очередями. Чтобы посмотреть файловые очереди и очереди ошибок на сервере ТМTraffic Monitor, перейдите в:
    • opt/iw/tm5/queue;

    • opt/iw/tm5/errors;

  • файлами с ошибками экстракции. Они находятся в папке, указанной в параметре Dreamcatcher для каждого экстрактора в конфигурационном файле /opt/iw/tm5/etc/extractors.conf;
  • работой служб iw_xapi_xapi и iw_xapi_puppy. Чтобы получить информацию от логгеров разных программных компонентов:
    1. На сервере Traffic Monitor откройте на редактирование конфигурационный файл /opt/iw/tm5/etc/xapi.conf.
    2. Установите следующие значения логгеров: 

      Блок кода
      languagetext
      "GlobalLevel": "debug",
      "Loggers":
      {
      "Filequeue": "debug",   
      "RawMailDump": "fatal",  
      "Root": "debug",
      "puppy": "debug",
      "thrift_handler": "warning"
      }

      где:

      • Filequeue – логирование действий файловой очереди;
      • RawMailDump – сырые данные почты;
      • puppy – логгер PushAPI;
      • thrift_handler – поступившие по сети данные thrift-структур , поступивших по сети, для проверки трафика;
      • Root – корневой логгер, отвечающий за чтение из базы данных, создание индексов, архивирование, удаление индексов.
    3. Сохраните файл.
    4. Выполните команды:

      Блок кода
      languagetext
      iwtm restsrt xapi_xapi
      iwtm restart xapi_puppy
    5. Отправьте событие в Traffic Monitor по PushAPI (подробнее см. Примеры использования утилиты pushapi-util). Лог-файлы будут сохранены в директории /var/log/infowatch.
Sv translation
languageen

If you experience an issue when sending events via PushAPI, try looking into:

  • Web interface problems. To activate the debug mode on the server:
    1. Connect to the server using SSH.
    2. Open the /opt/iw/tm5/etc/web.conf file for editing.
    3. Enable the debug mode by setting the "debug": true value.
    4. Save the file.
    5. Refresh the web page.
    6. In your browser search box, go to the debug console to see detailed logs on requests sent to the API: https://<server_IP>/api/debug/default.
  • Missing trusted certificates. Add self-signed certificates as trusted certificates. Paths to certificates:
    • Web: /opt/iw/tm5/etc/certification/web-server.pem;
    • XAPI: /opt/iw/tm5/etc/cert/server.pem;
  • File queues.To see all file and error queues on the Traffic Monitor server, go to opt/iw/tm5/queue and opt/iw/tm5/errors respectively.
  • Files with extraction errors. In the /opt/iw/tm5/etc/extractors.conf configuration file, there is a Dreamcatcher parameter for each extractor. The folder with the files is specified in the parameter.
  • Operation of the iw_xapi_xapi and iw_xapi_puppy services. To get information from different program component loggers:
    1. Go to the Traffic Monitor server and open the /opt/iw/tm5/etc/xapi.conf configuration file for editing.
    2. Set the logger values:

      Блок кода
      languagetext
      "GlobalLevel": "debug",
      "Loggers":
      {
      "Filequeue": "debug",   
      "RawMailDump": "fatal",  
      "Root": "debug",
      "puppy": "debug",
      "thrift_handler": "warning"
      }

      In the code above:

      • Filequeue – file queue logs;
      • RawMailDump – raw mail data;
      • puppy – PushAPI logger;
      • thrift_handler – data on thrift structures, which are received via the network. Used for traffic check;
      • Root – root logger designed for reading from a database, index creation, archiving and index removal.
    3. Save the file.
    4. Run the commands:

      Блок кода
      languagetext
      iwtm restsrt xapi_xapi
      iwtm restart xapi_puppy
    5. Send the event to Traffic Monitor via Push API. Log files are saved to the /var/log/infowatch directory. See Примеры использования утилиты pushapi-util for details.