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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMIG and version 7.16
Sv translation
languageru
Предупреждение
titleВажно!

Перед обновлением Traffic Monitor обновите сервер Device Monitor.

Инсталлятор Traffic Monitor при обновлении с участием пользователя может работать в двух режимах:

  • текстовый в консоли сервера;
  • графический.

Шаги установки и их последовательность аналогичны в обоих режимах. 

Также доступен тихий режим работы инсталлятора без участия пользователя.

Независимо от выбранного режима работы инсталлятора, для обновления понадобится использовать консоль (или терминал) сервера.

В процессе обновления на сервер будут установлены все пакеты Traffic Monitor, но при завершении работы инсталлятор запустит только те сервисы, которые до обновления не были отключены.

Информация
titleПримечание:

Если сервис был отключен, после обновления он не будет запущен.

Если сервис был остановлен, после обновления он будет запущен.

Статусы новых сервисов будут соответствовать первичной установке.

Распаковка пакетов начнется не при запуске инсталлятора, а непосредственно перед обновлением.

Перед обновлением Системы выполните следующие действия:

  1. Откройте консоль обновляемого сервера:
    • в случае физического сервера – консоль отображается на экране монитора, подключенного к серверу;
    • в случае виртуального сервера – выполните команду Launch Console (см. пример ниже):

      Раскрыть
      titleПример запуска консоли виртуального сервера в веб-версии клиентского приложения VMware vSphere Client:
      1. Выберите сервер и нажмите Launch Console в верхнем меню:
      2. В открывшемся окне нажмите Launch. 

        Откроется окно с консолью сервера, в котором вам нужно ввести пароль пользователя.
  2. Введите логин и пароль, чтобы войти в операционную систему (вход выполняется от имени пользователя root).

    Информация
    titleПодсказка:

    Команды в консоли вводятся с помощью клавиатуры и обязательно подтверждаются нажатием клавиши Enter, поэтому в данной инструкции под "введите команду command" подразумевается "введите команду command и нажмите Enter". После выполнения команды снова отображается приглашение – оно заканчивается знаком # или $ (в зависимости от того, от имени какого пользователя выполнен вход). Прежде чем вводить следующую команду, нужно убедиться, что в командной строке отображается приглашение.

  3. Раскрыть
    titleЕсли вы обновляете Traffic Monitor на ОС Oracle Linux 8, AlmaLinux 8 или Rocky Linux 8:
    Предупреждение
    titleВажно!

    Убедитесь, что в операционной системе Oracle Linux 8.10 в качестве текущего выбрано ядро Red Hat Compatible Kernel (RHCK), например Oracle Linux Server, Kernel 4.18.0-553.50.1.el8_10.x86_64, а ядро UEK удалено. Подробнее см. Требования к настройкам ОС и сети сервера.

    1. Установите пакет redhat-lsb-core с помощью следующей команды:
      dnf install redhat-lsb-core
    2. Создайте резервную копию файла выпуска ОС и замените содержимое исходного файла. Для этого выполните команды в зависимости от ОС:
      • на ОС Oracle Linux 8:
        cp /etc/oracle-release /etc/release.bak
        echo "Red Hat Enterprise Linux release 8.10 (Ootpa)" > /etc/oracle-release
      • на ОС AlmaLinux 8 или Rocky Linux 8:
        cp /etc/redhat-release /etc/release.bak
        echo "Red Hat Enterprise Linux release 8.10 (Ootpa)" > /etc/redhat-release

    3. Выполните команду:
      lsb_release -a
      В результате должна быть выведена следующая информация:

      Информация
      titleПримечание:

      После обновления Traffic Monitor восстановите исходный файл выпуска ОС. Подробнее см. ниже.

  4. Проверьте версию, редакцию и тип установки обновляемого сервера при помощи команды:

    cat /opt/iw/tm5/install_mode

    Блок кода
    languagetext
    titleПример содержимого файла install_mode
    {
      "product_type": "tme",
      "version": "7.14.0.150",
      "all_in_one": true,
      "templates": {
        "db": {
          "local": true
        },
        "indexer": {},
        "web": {},
        "interceptors": {}
      },
      "upgrade": {
        "previous_version": "7.13.0.136",
        "state": "done"
      }
    }

    Запись из примера соответствует серверу Traffic Monitor с типом установки All-in-One редакции Enterprise и версии 7.14.0.150.

  5. Обновите ОС на сервере, если ее версия отсутствует в списке поддерживаемых версий ОС в статье Аппаратные и программные требования.
Предупреждение
titleВажно!

Перед обновлением Системы убедитесь, что сервер соответствует требованиям к настройкам ОС и сети сервера.

После обновления параметры unit-файлов системы инициализации systemd вернутся к значениями по умолчанию.

Примечание
titleВнимание!

Якорь
Backup
Backup
Чтобы в случае ошибки иметь возможность восстановить базу данных и возобновить процесс обновления с последнего успешного этапа, рекомендуется выполнить:

  1. Раскрыть
    titleРезервное копирование базы данных и индексов
    Предупреждение
    titleВажно!

    Для успешного восстановления файлы обязательно должны быть скопированы с сохранением их прав, пользователей и групп.
    Для этого копируйте файлы только на файловую систему Linux (например, Ext4 или XFS).
    Храните резервные копии либо на другом разделе сервера, либо на другом сервере, либо на внешнем устройстве. Убедитесь, что данные не будут потеряны.
    Для восстановления нужно будет скопировать резервные копии по адресам исходных файлов, не изменяя прав, пользователей и групп.

    1. Для остановки сервисов Traffic Monitor введите команду:
      iwtm stop
    2. Выполните резервное копирование:

      1. В зависимости от используемой СУБД введите команду для остановки Базы данных:

        • для СУБД Oracle:
          systemctl stop oracle
        • для СУБД PostgreSQL версии 13:
          systemctl stop postgresql-13
        • для СУБД PostgreSQL версии 15:
          systemctl stop postgresql-15
      2. Создайте резервную копию Базы данных. По умолчанию База данных расположена в директориях /u01, /u02 и т. д.
        Скопируйте Базу данных либо на другой раздел сервера, либо на другой сервер, либо на внешнее устройство.

        Информация
        titleПримечание:

        Для уточнения директорий, содержащих Базу данных, проверьте также содержимое файла:

        • /opt/iw/tm5/csw/oracle/database.conf (для СУБД Oracle)

        • /opt/iw/tm5/csw/postgres/database.conf (для СУБД PostgreSQL)
      3. Создайте резервную копию индексов. Для этого:
        1. Перейдите в директорию /opt/iw/tm5/etc и откройте на просмотр файл indexer.conf.

        2. В параметре "SphinxBaseDir" указан путь к директории с индексами. В параметре "ArchiveDir" указан относительный путь к архивам индексов. Путь к архивам указывается относительно содержимого параметра "NookDir".
          Скопируйте директории с индексами и архивами индексов либо на другой раздел сервера, либо на другой сервер, либо на внешнее устройство.

      4. Создайте резервную копию конфигурации службы iw_adlibitum. Для этого:

        1. Перейдите в директорию /opt/iw/tm5/etc и откройте на просмотр файл adlibitum.conf.

        2. В параметре "ConfigDir" указан относительный путь к директории с конфигурации службы iw_adlibitum. Путь к директории указывается относительно содержимого параметра "NookDir".
          Скопируйте директорию с конфигурацией либо на другой раздел сервера, либо на другой сервер, либо на внешнее устройство.

  2. Раскрыть
    titleРезервное копирование настроек окружения

    Обязательно учитывайте особенности копирования из предупреждения в предыдущем шаге. Перейдите по адресам и скопируйте указанные файлы:

    • Раскрыть
      titleДля СУБД Oracle:
      • /opt/iw/tm5/etc/oracle/ – все файлы в директории
      • /etc/default/iwtm
      • /etc/profile.d/iw-oracle-env.sh
      • /etc/logrotate.d/iwtm-oracle-conf-server
      • /opt/iw/tm5/etc/oracle.conf
    • Раскрыть
      titleДля СУБД PostgreSQL:
      • /etc/default/iwtm
      • /etc/profile.d/iw-postgresql-env.sh
      • /etc/profile.d/iw-postgresql-client-env.sh
      • /etc/sudoers.d/iw-pgagent
      • /etc/pgagent/pgagent-13.conf или /etc/pgagent/pgagent-15.conf, в зависимости от версии СУБД
      • /opt/iw/tm5/etc/postgresql/ – все файлы в директории
      • /opt/iw/tm5/etc/postgresql.conf
    Информация
    titleПримечание:
    Также инсталлятор автоматически создает копии файлов настроек окружения в директории /tmp/iwtm_db_configs_backup. Для удобства пользователя инсталлятор воссоздает в директории пути оригинальных файлов, по которым их нужно будет скопировать для восстановления исходного состояния.
    Созданные инсталлятором резервные копии хранятся только до успешного обновления. По завершении они будут удалены.

Выберите инструкцию в зависимости от варианта обновления:


Раскрыть
titleОбновление Системы поверх установленной

Якорь
inplace
inplace

Предупреждение
titleВажно!

Крайне рекомендуем выполнить резервное копирование Системы, а также клонировать ее и провести обновление на этой тестовой машине.

Чтобы обновить Систему, выполните следующие действия:

  1. Скопируйте в директорию /root файлы, поставляемые в дистрибутиве InfoWatch Traffic Monitor. Список файлов для различных ОС и СУБД см. в статье Установка TM Enterprise и TM Standard в режиме "Все-в-одном, шаг 5. Далее будет описано обновление с использованием инсталлятора для ОС Red Hat Enterprise Linux. Данная инструкция актуальна и для других поддерживаемых ОС: Oracle Linux, РЕД ОС, AlmaLinux, Rocky Linux и Альт Сервер.
  2. Чтобы сделать файл iwtm-installer-x.x.x.xxx-rhel7исполняемым, введите команду:
    chmod u+x /root/iwtm-installer-x.x.x.xxx-rhel7

    В нашем примере команда будет следующей:

    chmod u+x /root/iwtm-installer-7.16.0.97-rhel7

  3. Подключите внешние или локальные репозитории ОС.
    Например, с инструкцией по настройке локального репозитория в Red Hat Enterprise Linux можно ознакомиться на официальном сайте (на английском).

  4. Для обновления всех пакетов, кроме pgagent, введите команду:
    yum upgrade --exclude="pgagent*"

    Будет выведен запрос вида:

    Для продолжения введите Y на клавиатуре и нажмите Enter.

  5. Установите дополнительные пакеты python3-psycopg2 и libzstd с помощью команды:
    yum install python3-psycopg2 libzstd
    В случае ошибки скачайте эти пакеты из репозитория EPEL и установите вручную.

  6. Если вы используете удаленную базу данных:
    1. Убедитесь, что версия вашей СУБД поддерживается Traffic Monitor (см. Аппаратные и программные требования).
    2. Если версия СУБД актуальна, пропустите это действие.

      Раскрыть
      titleЕсли СУБД нужно обновить:
      1. Остановите сервисы Traffic Monitor с помощью команды:
        iwtm stop
      2. Остановите СУБД.
      3. Обновите СУБД до поддерживаемой версии, используя официальную инструкцию.

        Информация
        titleПримечание:

        Для СУБД PostgresSQL и PostgreSQL Pro также обновите используемый сервис pgagent.

      4. После обновления запустите СУБД, но не запускайте сервисы Traffic Monitor.
  7. Если обновляемый сервер Traffic Monitor взаимодействует с Data Discovery 2.0 и более новыми, остановите под (pod) technologies, который создает соединения с базой данных для доступа к конфигурации.
    Чтобы остановить под:
    1. Подключитесь к терминалу любой ноды кластера Центра расследований, в котором установлен Data Discovery, подключающийся к базе данных Traffic Monitor.
    2. Имя пода (pod) содержит лейбл ноды, на которой он установлен. Для определения имени пода выполните команду:

      kubectl get pods -A -o wide | grep technolog

      Блок кода
      titleПример вывода в командной строке после команды:
      root@lv-426:~# kubectl get pods -A -o wide | grep technolog
      infowatch      technologies-central-71cb89dd54-bgwn6      3/3     Running   0             18h   10.244.0.86   lv-426   <none>           <none>

      В нашем примере лейбл ноды central.

    3. Для остановки пода на ноде с лейблом central выполните команду:
      kubectl scale -n infowatch --replicas=0 deployment/technologies-central
    4. Подключитесь обратно к терминалу сервера с Traffic Monitor.
  8. Если в Системе установлен и запущен адаптер Password Disclosure Adapter, перед обновлением Traffic Monitor остановите его процессы. Подробнее см. документ InfoWatch Password Disclosure Adapter. Руководство по установке и конфигурированию. Диагностика и удаление InfoWatch Password Disclosure Adapter.
  9. Если у вас установлена система Prometheus, для остановки службы выполните команду:

    systemctl stop iwtm-postgres_exporter – для СУБД PostgreSQL
    systemctl stop iwtm-oracledb_exporter – для СУБД Oracle

  10. Введите команду для перехода в директорию c дистрибутивами Traffic Monitor:
    cd /root

    Информация
    titleПримечание:

    Перед обновлением рекомендуем запустить сервис базы данных, если ранее он был остановлен. В зависимости от используемой СУБД введите команду для запуска:

    • для СУБД Oracle:
      systemctl start oracle
    • для СУБД PostgreSQL версии 13:
      systemctl start postgresql-13
    • для СУБД PostgreSQL версии 15:
      systemctl start postgresql-15
  11. В инсталляторе реализован механизм автоматического объединения конфигурационных файлов Traffic Monitor старой и новой версии.

    Предупреждение
    titleВажно!

    Автоматическое объединение затрагивает только конфигурационные файлы Traffic Monitor с расширением .conf, расположенные в директории /opt/iw/tm5/etc.
    Перед объединением в директории /opt/iw/tm5/etc_conf_backup_<дата_время> будут созданы резервные копии исходных конфигурационных файлов. Пример названия директории: /opt/iw/tm5/etc_conf_backup_05.06.2024_09:26:33.
    После успешного объединения файлы с расширением.rpmnew, которые относятся к затрагиваемым конфигурационным файлам, будут удалены.
    Все выполненные действия будут отражены в лог-файле /var/log/infowatch/iwtm-install-<версия>-<дата>_<время>.log. Пример названия лог-файла: /var/log/iwtm-install-7.16.0.97-2024-09-06_09-56-25.log.
    Также информацию о процессе можно найти в директории /var/log/infowatch/config_merge/.
    Если во время действий с конфигурационным файлом будут обнаружены ошибки, процесс будет остановлен до исправления ошибок пользователем. После исправления ошибок повторно запустите обновление.

    Запустите инсталлятор в одном из режимов:

    • Раскрыть
      titleобновление в текстовом режиме в консоли сервера

      Чтобы обновить Traffic Monitor в консоли сервера, выполните следующие действия:

      1. Для обновления Traffic Monitor запустите инсталлятор, выполнив команду вида:

        ./iwtm-installer-x.x.x.xxx-rhel7

        В нашем примере команда будет:

        ./iwtm-installer-7.16.0.97-rhel7

        Начнется подготовка к запуску инсталлятора. На данном этапе не производится распаковка файлов.

        Информация
        titleПримечание:

        Перед запуском инсталлятора может быть выведено предупреждение о некорректном владельце файлов.

        Введите Y и нажмите Enter, чтобы инсталлятор исправил владельца файлов и продолжил запуск.
        В противном случае введите N, нажмите Enter, исправьте несоответствие вручную или с помощью скрипта /tmp/iwtm_installer/scripts/check_iwtm.sh и повторно запустите инсталлятор.

        Предупреждение
        titleВажно!

        При отсутствии настроенных и доступных репозиториев ОС запуск инсталлятора прервется со следующей ошибкой:

        При возникновении данной ошибки нажмите Enter для завершения работы инсталлятора, затем подключите стандартный репозиторий RHEL, репозиторий EPEL и повторно запустите инсталлятор.

        Подробную информацию об ошибке можно найти в лог-файлах, указанных в предупреждении.


        По завершении на экране отобразится окно приветствия вида:

      2. Для продолжения обновления нужно принять условия Лицензионного соглашения. Выберите один из предложенных вариантов. Для этого введите цифру, указанную напротив него, и нажмите Enter:

        • Show the License Agreement – для просмотра Лицензионного соглашения;

          Раскрыть
          titleПри выборе этого варианта:
          1. Выберите язык, на котором будет выведен текст Лицензионного соглашения:
            • English – английский;
            • Russian – русский.
          2. Прочитайте Лицензионное соглашение. Для перехода к следующей странице нажимайте Enter.
          3. Примите Лицензионное соглашение. Для этого введите y и нажмите Enter.
        • I accept the License Agreement – чтобы принять Лицензионное соглашение без предварительного просмотра;
        • I do not accept the License Agreement – чтобы не принимать Лицензионное соглашение и прервать процесс обновления.

          Информация
          titleПримечание:

          При обновлении в консоли сервера перед полем ввода в квадратных скобках указано значение по умолчанию. Оно будет использовано, если оставить поле ввода пустым и нажать Enter.

          Раскрыть
          titleПример:
          Если на изображении выше не вводить значение, а только нажать Enter, будет выбран пункт [1] Show the License Agreement.

          Далее на экране отобразится окно подтверждения обновления, в котором будут указаны доступные обновления для Traffic Monitor и СУБД:

      3. Для продолжения введите Y и нажмите Enter. Для выхода из инсталлятора введите N и нажмите Enter.

      4. Подтвердите остановку сервисов Traffic Monitor и Базы данных. Шаги подтверждения и выбора режима остановки будут пропущены, если сервисы были остановлены вручную до запуска инсталлятора.

      5. Выберите режим остановки Traffic Monitor:
        • Quick stop – быстрая остановка без обработки событий;

        • Waiting for stop – перед остановкой дождаться завершения текущей обработки событий;

        • Waiting for emptying file queues – перед остановкой дождаться обработки всех событий и очистки файловых очередей.

        Для выбора введите цифру, указанную напротив выбранного варианта, и нажмите Enter.

        Информация
        titleПримечание:

        Если выбран Quick stop, остановленные сервисы до запуска будут иметь статус failed (failed).

      6. Если выбран Quick stop или Waiting for stop, после возобновления работы Traffic Monitor необработанные события могут попасть в очередь ошибок обработки.
        Для продолжения введите Y и нажмите Enter.
        В процессе остановки на экране будет информация о ходе обработки событий.

      7. После остановки сервисов будет выведено сообщение о готовности начать обновление и запрос на продолжение.
         
        Для начала обновления введите Y и нажмите Enter.
        Начнется распаковка пакетов, обновление имеющихся и установка новых компонентов Traffic Monitor. Прогресс выполнения будет отображаться на экране.

        Процесс займет некоторое время.

        Информация
        titleПримечание:

        Если процесс установки был прерван по какой-либо причине, устраните ее и повторно запустите инсталлятор, чтобы продолжить установку с последнего успешно завершенного этапа.

      8. После обновления инсталлятор предложит запустить остановленные сервисы.

        Предупреждение
        titleВажно!

        Без действующих примененных лицензий могут быть безвозвратно утеряны события, накопленные за время обновления в файловых очередях, поэтому:

        • если вы выбрали автоматический запуск, учитывайте, что сервис распространения лицензий может быть запущен после остальных сервисов. В Traffic Monitor версии 7.16.2 и более поздних предусмотрена возможность запуска сервисов только после появления файлов лицензий на сервере, см. следующий шаг инсталлятора;
        • если вы решили запустить сервисы вручную, после обновления Системы обязательно дождитесь появления файлов лицензий в каталоге /opt/iw/tm5/etc/config/license.
        Предупреждение
        titleВажно!

        После обновления настройки системы мониторинга Nagios будут изменены на значения по умолчанию. Если до обновления конфигурационные файлы Nagios редактировались, в директории /etc/infowatch/nagios/iwmon будут созданы их копии с расширением .saved. Перед запуском сервисов Traffic Monitor перенесите настройки из файлов .saved в соответствующие новые конфигурационные файлы.

        После обновления для управления системой мониторинга используйте службу iwtm-nagios.
        Например, для просмотра статуса Nagios используйте команду:
        systemctl status iwtm-nagios

        Предупреждение
        titleВажно!

        После обновления Системы обязательно дождитесь появления файлов лицензий в каталоге /opt/iw/tm5/etc/config/license. Без действующих примененных лицензий накопленные за время обновления события в файловых очередях могут быть безвозвратно утеряны.  

        Предупреждение
        titleВажно!

        Если в конфигурационном файле luaengined.conf указан параметр SmtpTmBccList, перед запуском сервисов убедитесь, что значение параметра не содержит угловых скобок (< и >). В противном случае удалите скобки. 

        Если не запустить сервисы, то для восстановления работоспособности Системы их придется запустить позже вручную.

        Информация
        titleПримечание:

        В случае некорректной настройки службы Consul в консоли будет выведено предупреждение:

        Для завершения работы инсталлятора нажмите Enter.

        Раскрыть
        titleДля корректной работы Системы выполните проверку и настройку кластера службы Consul
        1. Запустите службу Consul, выполнив команду:
          systemctl start iwtm-consul
          Проверить статус службы можно командой:
          systemctl status iwtm-consul
        2. Чтобы проверить службу Consul, выполните команды:
          1. Для вывода IP-адреса основного сервера (лидера) кластера:
            curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo
          2. Для вывода информации о членах кластера:
            consul members
        3. Если не будет выведен IP-адрес лидера кластера, выполните конфигурирование кластера службы Consul.
          После настройки повторите проверку (действие ii).

        При данной ошибке инсталлятор не запустит сервисы Traffic Monitor по завершении работы – их нужно будет запустить вручную.

      9. Если вы выбрали автоматический запуск остановленных сервисов и обновляете Traffic Monitor на версию 7.16.2 или более позднюю, укажите, должен ли инсталлятор запустить сервисы только после распространения лицензий.
      10. Перед завершением работы инсталлятор предложит удалить пакеты, созданные для обновления.
        Если обновление прошло успешно, данные рекомендуется удалить.
      11. Дождитесь завершения работы инсталлятора.
    • Раскрыть
      titleобновление с использованием графического режима инсталлятора

      В ОС оконная система X Window System использует клиент-серверную модель. Для запуска инсталлятора в графическом режиме используется перенаправление графического вывода удаленной подсистемы (X11 Forwarding). Это позволит работать напрямую с графическими приложениями среды Linux на компьютере, с которого осуществляется подключение к серверу. Данный режим реализуется с помощью SSH-подключения.

      Чтобы обновить Traffic Monitor с использованием графического режима инсталлятора, выполните следующие действия:

      1. На обновляемом сервере:
        1. Установите утилиту XAuth с помощью команды:

          yum install xauth

        2. В конфигурационном файле /etc/ssh/sshd_config раскомментируйте строку "X11Forwarding yes". Для этого удалите перед строкой символ #.
        3. Сохраните изменения в конфигурационном файле.
        4. Перезапустите службу SSH с помощью команды:

          systemctl restart sshd

      2. На компьютере, на котором будет использован графический режим:

        1. Для подключения к обновляемому серверу вам потребуется SSH-клиент с включенной опцией X11 Forwarding, например PuTTY.

        2. Для запуска инсталлятора в графическом режиме вам потребуется настроенное приложение-клиент для обращения к X Window System, например:
          • приложение Xming – для ОС семейства MS Windows;
          • оболочка Gnome 3 – для ОС семейства Linux.
      3. Запустите настроенное приложение-клиент для обращения к X Window System.
      4. Подключитесь к серверу, на котором планируется обновление Traffic Monitor, с помощью выбранного SSH-клиента.

        Раскрыть
        titleПример окна настройки PuTTY при подключении

      5. Запустите инсталлятор, выполнив следующую команду:

        ./iwtm-installer-x.x.x.xxx-rhel7

        В нашем примере команда будет следующей:

        ./iwtm-installer-7.16.0.97-rhel7

        Начнется подготовка к запуску инсталлятора. На данном этапе не производится распаковка файлов.

        Информация
        titleПримечание:

        Перед запуском инсталлятора может быть выведено предупреждение о некорректном владельце файлов.

        Нажмите кнопку Yes, чтобы инсталлятор исправил владельца файлов и продолжил запуск.
        В противном случае нажмите кнопку No, исправьте несоответствие вручную или с помощью скрипта /tmp/iwtm_installer/scripts/check_iwtm.sh и повторно запустите инсталлятор.

        Предупреждение
        titleВажно!

        При отсутствии настроенных и доступных репозиториев ОС запуск инсталлятора прервется со следующей ошибкой:

        При возникновении данной ошибки нажмите кнопку OK для закрытия окна и завершения работы инсталлятора, затем подключите стандартный репозиторий RHEL, репозиторий EPEL и повторно запустите инсталлятор.

        Подробную информацию об ошибке вы можете найти в лог-файлах, указанных в предупреждении.


        По завершении откроется окно приветствия вида:

        Для перехода к следующему окну нажмите Next, для возврата к предыдущему – Back. Для выхода из инсталлятора нажмите Cancel.
      6. Для продолжения обновления нужно принять условия Лицензионного соглашения. Для этого:

        1. Выберите язык, на котором будет выведен текст Лицензионного соглашения:

          • English – английский;
          • Russian – русский.
        2. Выберите один из предложенных вариантов. Для этого установите флажок напротив него и нажмите Next:

          • I accept the agreement – чтобы принять Лицензионное соглашение и продолжить процесс обновления;
          • I do not accept the agreement – чтобы не принимать Лицензионное соглашение и прервать процесс обновления.

      7. В следующем окне будут указаны доступные обновления для Traffic Monitor и СУБД.

        Для продолжения нажмите Next.
      8. Подтвердите остановку сервисов Traffic Monitor и Базы данных. Шаги подтверждения и выбора режима остановки будут пропущены, если сервисы были остановлены вручную до запуска инсталлятора.

      9. Выберите режим остановки Traffic Monitor:

        • Quick stop – быстрая остановка без обработки событий;

        • Waiting for stop – перед остановкой дождаться завершения текущей обработки событий;

        • Waiting for emptying file queues – перед остановкой дождаться обработки всех событий и очистки файловых очередей.

        Для выбора установите флажок напротив соответствующего значения и нажмите Next.

        Информация
        titleПримечание:

        Если выбран Quick stop, остановленные сервисы до запуска будут иметь статус failed(failed).

      10. Если выбран Quick stop или Waiting for stop, после возобновления работы Traffic Monitor необработанные события могут попасть в очередь ошибок обработки.
        Для продолжения нажмите Yes.
        В процессе остановки на экране будет информация о ходе обработки событий.

      11. После остановки сервисов будет выведено сообщение о готовности начать установку и запрос на продолжение.


        Для начала обновления нажмите Next.
        Начнется распаковка пакетов, обновление имеющихся и установка новых компонентов Traffic Monitor. Прогресс выполнения будет отображаться на экране.

        Процесс займет некоторое время.

        Информация
        titleПримечание:

        Если процесс установки был прерван по какой-либо причине, устраните ее и повторно запустите инсталлятор, чтобы продолжить установку с последнего успешно завершенного этапа.

      12. После завершения обновления вы можете:

        • Remove exctracted installer data – удалить пакеты, созданные инсталлятором для установки. Если установка прошла успешно, данные рекомендуется удалить;

        • Start Infowatch Traffic Monitor services – запустить остановленные сервисы. Если не запустить сервисы, то для восстановления работоспособности Системы их придется запустить позже вручнуюзапустить остановленные сервисы. Если не запустить сервисы, то для восстановления работоспособности Системы их придется запустить позже вручную;

        • Wait for licenses when starting Infowatch Traffic Monitor services (если вы обновляете Traffic Monitor на версию 7.16.2 или более позднюю) – запустить ли сервисы только после распространения лицензий.

          Предупреждение
          titleВажно!

          Без действующих примененных лицензий могут быть безвозвратно утеряны события, накопленные за время обновления в файловых очередях, поэтому:

          • если вы выбрали опцию Start Infowatch Traffic Monitor services, учитывайте, что сервис распространения лицензий может быть запущен после остальных сервисов;
          • если вы решили запустить сервисы вручную, после обновления Системы обязательно дождитесь появления файлов лицензий в каталоге /opt/iw/tm5/etc/config/license.
          Предупреждение
          titleВажно!

          После обновления настройки системы мониторинга Nagios будут изменены на значения по умолчанию. Если до обновления конфигурационные файлы Nagios редактировались, в директории /etc/infowatch/nagios/iwmon будут созданы их копии с расширением .saved. Перед запуском сервисов Traffic Monitor перенесите настройки из файлов .saved в соответствующие новые конфигурационные файлы.

          После обновления для управления системой мониторинга используйте службу iwtm-nagios.
          Например, для просмотра статуса Nagios используйте команду:
          systemctl status iwtm-nagios

          Предупреждение
          titleВажно!

          После обновления Системы обязательно дождитесь появления файлов лицензий в каталоге /opt/iw/tm5/etc/config/license. Без действующих примененных лицензий накопленные за время обновления события в файловых очередях могут быть безвозвратно утеряны.  

          Предупреждение
          titleВажно!

          Если в конфигурационном файле luaengined.conf указан параметр SmtpTmBccList, перед запуском сервисов убедитесь, что значение параметра не содержит угловых скобок (< и >). В противном случае удалите скобки.

          Для выбора действий поставьте галочки напротив соответствующих пунктов.

          Информация
          titleПримечание:

          В случае некорректной настройки службы Consul в консоли будет выведено предупреждение:

          Для закрытия окна и завершения работы инсталлятора нажмите OK.

          Раскрыть
          titleДля корректной работы Системы выполните проверку и настройку кластера службы Consul
          1. Запустите службу Consul, выполнив команду:
            systemctl start iwtm-consul
            Проверить статус службы можно командой:
            systemctl status iwtm-consul
          2. Чтобы проверить службу Consul, выполните команды:
            1. Для вывода IP-адреса основного сервера (лидера) кластера:
              curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo
            2. Для вывода информации о членах кластера:
              consul members
          3. Если не будет выведен IP-адрес лидера кластера, выполните конфигурирование кластера службы Consul.
            После настройки повторите проверку (действие ii).

          При данной ошибке инсталлятор не запустит сервисы Traffic Monitor по завершении работы – их нужно будет запустить вручную.

          Предупреждение
          titleВажно!

          После обновления Системы обязательно дождитесь появления файлов лицензий в каталоге /opt/iw/tm5/etc/config/license. Без действующих примененных лицензий накопленные за время обновления события в файловых очередях могут быть безвозвратно утеряны.  не запустит сервисы Traffic Monitor по завершении работы – их нужно будет запустить вручную.

      13. Для завершения работы инсталлятора нажмите Next.
    • Раскрыть
      titleобновление в тихом режиме

      Чтобы сократить участие пользователя в процессе обновления Системы, в инсталляторе предусмотрена работа в тихом режиме. В нем инсталлятор может обновить Traffic Monitor, используя параметры по умолчанию.

      В инсталляторе реализована возможность использования файла параметров (option file). В нем вы можете задать требуемые особенности установки. При запуске инсталлятора с файлом параметров указанные в нем значения будут считаться параметрами по умолчанию.

      Файл параметров (option file)

      В файле описание параметров имеет вид:

      <имя_параметра>=<значение_параметра>

      Вы можете оставлять комментарии, используя символ #.

      Блок кода
      languagec#
      titleПример файла параметров:
      # This file is just an example
      fix_incorrect_file_owners=1
      cleanup_way=clean_fq
      start_services_after_upgrade=1

      В данном примере указаны параметры:

      • исправить некорректного владельца файлов;
      • перед остановкой сервисов дождаться обработки всех событий и очистки файловых очередей;
      • после обновления запустить сервисы.
      Предупреждение
      titleВажно!

      Для параметров, которые не указаны в файле, будут использованы значения по умолчанию. Полный набор параметров указан в таблице ниже.

      Чтобы использовать файл параметров, перейдите в директорию с инсталлятором и запустите его с опцией --optionfile и с указанием созданного ранее файла.

      Блок кода
      languagec#
      titleПример команды использования файла параметров:
      ./iwtm-installer-7.16.0.97-rhel7 --optionfile /some_directory/option-file-example

      Альтернативный способ использования: назовите файл параметров тем же именем, что назван инсталлятор, но с расширением .options, и скопируйте его в директорию к инсталлятору. В этом случае при запуске инсталлятор также будет считать параметры из файла значениями по умолчанию.

      Тихий режим обновления

      Для обновления в тихом режиме используйте опцию --mode unattended.

      Уровень взаимодействия с пользователем задается параметром --unattendedmodeui, который имеет следующие значения:

      • none – в процессе работы инсталлятор не выводит на экран никакую информацию и не требует взаимодействия с пользователем;
      • minimal – отображает прогресс обновления, не требует взаимодействия с пользователем;
      • minimalWithDialogs – отображает прогресс обновления, в процессе могут появляться всплывающие окна, может потребоваться взаимодействие с пользователем.
      Блок кода
      languagec#
      titleПример команды запуска инсталлятора в тихом режиме без участия пользователя и с файлом параметров:
      ./iwtm-installer-7.16.0.97-rhel7 --optionfile /some_directory/option-file-example --mode unattended --unattendedmodeui minimal
      Предупреждение
      titleВажно!

      При отсутствии настроенных и доступных репозиториев ОС запуск инсталлятора прервется со следующей ошибкой:

      При возникновении данной ошибки нажмите Enter для завершения работы инсталлятора, затем подключите стандартный репозиторий RHEL, репозиторий EPEL и повторно запустите инсталлятор.

      Подробную информацию об ошибке вы можете найти в лог-файлах, указанных в предупреждении.

      Информация
      titleПримечание:

      Если процесс завершится без ошибок, инсталлятор удалит пакеты, созданные для установки. Если процесс установки был прерван по какой-либо причине, устраните ее и повторно запустите инсталлятор, чтобы продолжить установку с последнего успешно завершенного этапа.

      Информация
      titleПримечание:

      В случае некорректной настройки службы Consul в консоли будет выведено предупреждение:

      Для завершения работы инсталлятора нажмите Enter.

      Раскрыть
      titleДля корректной работы Системы выполните проверку и настройку кластера службы Consul
      1. Запустите службу Consul, выполнив команду:
        systemctl start iwtm-consul
        Проверить статус службы можно командой:
        systemctl status iwtm-consul
      2. Чтобы проверить службу Consul, выполните команды:
        1. Для вывода IP-адреса основного сервера (лидера) кластера:
          curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo
        2. Для вывода информации о членах кластера:
          consul members
      3. Если не будет выведен IP-адрес лидера кластера, выполните конфигурирование кластера службы Consul.
        После настройки повторите проверку (действие ii).

      При данной ошибке инсталлятор не запустит сервисы Traffic Monitor по завершении работы – их нужно будет запустить вручную.

      Полный состав файла параметров

      В таблице приведен полный список возможных параметров для обновления и их значения по умолчанию.


      НазваниеОписание

      force_upgrade

      Принудительно переключает инсталлятор в режим обновления, даже если совпадают версии.

      Значения: 0 (по умолчанию), 1.

      fix_incorrect_file_owners

      Параметр определяет, должен ли инсталлятор по умолчанию исправить некорректного владельца файлов перед обновлением.

      Если у обновляемых файлов будет некорректный владелец, инсталлятор прервет обновление.

      Значения: 0 (по умолчанию), 1.

      cleanup_way

      Выбор режим остановки сервисов:
      • quick_stop – быстрая остановка без обработки событий;

      • wait_stop (по умолчанию) – перед остановкой дождаться завершения текущей обработки событий;

      • clean_fq – перед остановкой дождаться обработки всех событий и очистки файловых очередей.

      Режим обработки всех событий и очистки файловых очередей (clean_fq) доступен, только если на сервере установлены компоненты перехвата. Если был указан этот режим, но на сервере отсутствуют компоненты перехвата, будет использован режим текущей обработки событий (wait_stop).

      start_services_after_upgrade

      Параметр определяет, должен ли инсталлятор запустить сервисы после обновления.

      Значения: 0, 1 (по умолчанию)перехвата. Если был указан этот режим, но на сервере отсутствуют компоненты перехвата, будет использован режим текущей обработки событий (wait_stop).

      start_services_after_upgrade

      Параметр определяет, должен ли инсталлятор запустить сервисы после обновления.

      Значения: 0, 1 (по умолчанию).

      Без действующих примененных лицензий могут быть безвозвратно утеряны события, накопленные за время обновления в файловых очередях, поэтому:

      • если вы выбрали автоматический запуск, учитывайте, что сервис распространения лицензий может быть запущен после остальных сервисов. В Traffic Monitor версии 7.16.2 и более поздних предусмотрена возможность запуска сервисов только после появления файлов лицензий на сервере, см. параметр wait_for_licenses;
      • если вы решили запустить сервисы вручную, после обновления Системы обязательно дождитесь появления файлов лицензий в каталоге /opt/iw/tm5/etc/config/license.

      После обновления настройки системы мониторинга Nagios будут изменены на значения по умолчанию. Если до обновления конфигурационные файлы Nagios редактировались, в директории /etc/infowatch/nagios/iwmon будут созданы их копии с расширением .saved. Перед запуском сервисов Traffic Monitor перенесите настройки из файлов .saved в соответствующие новые конфигурационные файлы. После обновления для управления системой мониторинга используйте службу iwtm-nagios.

      Например, для просмотра статуса Nagios используйте команду:
      systemctl status iwtm-nagios

      Если в конфигурационном файле luaengined.conf указан параметр SmtpTmBccList, и при этом значение параметра содержит угловые скобки (< и >), перед запуском сервисов нужно удалить скобки. В таком случае не следует включать запуск сервисов в файле параметров), перед запуском сервисов нужно удалить скобки. В таком случае не следует включать запуск сервисов в файле параметров.

      wait_for_licenses

      Параметр определяет, должен ли инсталлятор перед запуском сервисов ожидать распространения лицензий. 

      Значения: 0 (по умолчанию), 1.

      Параметр доступен начиная с версии Traffic Monitor 7.16.2.

      eula

      Значения:

      • show – вывести текст Лицензионного соглашения;
      • accept – принять Лицензионное соглашение без предварительного просмотра.

      Если вы запускаете установку не в тихом режиме и параметр не указан, то будет выведен текст Лицензионного соглашения и будет предложено принять его.

      При установке в тихом режиме значение параметра игнорируется и Лицензионное соглашение принимается по умолчанию.

  12. Введите команду для поиска файлов с расширением .rpmnew, за исключением резервных копий конфигурационных файлов:
    find / -name "*rpmnew*" -not -path "/opt/iw/tm5/etc_conf_backup*" -print
    Если такие файлы найдены, они будут выведены на экран консоли. В таком случае их нужно корректно объединить с конфигурационными файлами (см. статью Объединение конфигурационных файлов).

    Информация
    titleПримечание:

    Для успешного объединения конфигурационных файлов рекомендуем ознакомиться со статьями на официальном сайте (на английском):

  13. Проверьте содержимое файла /opt/iw/tm5/etc/scripts/iwssid.lua. Его рекомендуется оставить без изменений, если до обновления он не редактировался.
    В противном случае его нужно корректно объединить с конфигурационным файлом iwssid.lua.rpmnew (см. Объединение конфигурационных файлов).

  14. Если ранее работа инсталлятора не была завершена, выберите запуск сервисов и завершите обновление.
    Если ранее инсталлятор завершил работу без запуска сервисов, запустите их вручную или перезагрузите сервер для запуска всех остановленных сервисов.
    Команда для перезагрузки сервера:
    reboot

    Предупреждение
    titleВажно!

    После запуска Traffic Monitor подключается к базе данных и загружает оттуда файл конфигурации cas_config.xml. В зависимости от объема конфигурации загрузка файла может занять некоторое время.
    В это время Система может записывать сообщения об ошибках в лог-файлы:

    • Раскрыть
      title/opt/iw/tm5/log/cas_config_compiler.log
      Блок кода
      languagejs
      titleЗапись об ошибке вида
      linenumberstrue
      1 2019-10-07 17:00:57.351489 (3936:0x00007f4008de8880) [ERROR  ] : <Root> Exception:.
      Diagnostic information..
      /sandbox/src/cas3/config/details/cas_factory.cpp(233): Throw in function bool cas::CasConfigFactory::LoadXmlConfig(cas::ConfigCreator::Ptr&, const boost::filesystem::path&) const
      Dynamic exception type: boost::exception_detail::clone_impl<cas::ExceptionCasConfig>
    • Раскрыть
      title/opt/iw/tm5/log/cas.log
      Блок кода
      languagejs
      titleЗапись об ошибке вида
      linenumberstrue
      1 2019-10-03 17:39:13.348146 (14262:0x00007fe83892ba80) [WARNING] : <Root> Prometheus server is off, therefore the statistics is unavailable. That's what you wanted, isn't it?
      2 2019-10-03 17:39:14.364655 (14262:0x00007fe83892ba80) [ERROR  ] : <Root> Error when loading config of tech: Cannot open xml file with cas configuration: etc/config/cas/cas_config.xml
      3 2019-10-03 17:39:14.364856 (14262:0x00007fe83892ba80) [ERROR  ] : <Root> failed to initialize thrift server
      Diagnostic information.
      /sandbox/src/cas3/handler.cpp(682): Throw in function cas::Handler::LoadedConfigData cas::Handler::GetLoadedConfigData(const prop::Property&, const Ptr&)
      Dynamic exception type: boost::exception_detail::clone_impl<tech::ExceptionTechLoadConfig>
      std::exception::what: Cannot open xml file with cas configuration: etc/config/cas/cas_config.xml

    После успешной загрузки файла конфигурации cas_config.xml Система прекратит запись сообщений об ошибках и заработает в штатном режиме.

    Если в течение длительного времени Система продолжает запись об ошибках, проверьте соединение с базой данных.

  15. В Traffic Monitor расширен список задач по умолчанию для автоматического удаления ненужных файлов.
    Задачи для планировщика cron теперь по умолчанию указаны в файле /etc/cron.d/iwtm_cleanup (о содержимом файла см. Автоматическое удаление ненужных файлов в Traffic Monitor).
    Для корректной работы новых задач:
    1. Удалите старые задачи, отредактировав файл конфигурации cron:
      sudo crontab -e
    2. Сохраните изменения и выйдите из редактора файла конфигурации.
    3. Перезапустите сервис:
      systemctl reload crond
  16. Если до обновления вы не редактировали прошлый файл с задачами /etc/cron.d/iwtm_error_queue, пропустите это действие.
    В противном случае /etc/cron.d/iwtm_error_queue будет удален, а его содержимое будет сохранено в файле /etc/cron.d/iwtm_error_queue.rpmsave.
    Чтобы задачи, добавленные вами ранее, снова работали, создайте файл для ваших задач в директории /etc/cron.d/ и скопируйте в него нужные задачи из /etc/cron.d/iwtm_error_queue.rpmsave.

    Информация
    titleПримечание:

    Вы можете добавить свои задачи в файл /etc/cron.d/iwtm_cleanup, но тогда при следующем обновлении он будет переименован в /etc/cron.d/iwtm_cleanup.rpmnew и заменен файлом с содержимым по умолчанию. После следующего обновления нужно будет перенести добавленные вами задачи из /etc/cron.d/iwtm_cleanup.rpmnew в новый /etc/cron.d/iwtm_cleanup.
    Чтобы каждый раз не переносить ваши задачи, вы можете создать отдельный файл с вашими задачами в директории /etc/cron.d/.

  17. Если у вас установлена система Prometheus и если сервер не был перезагружен, для запуска службы выполните команду:

    systemctl start iwtm-postgres_exporter – для СУБД PostgreSQL
    systemctl start iwtm-oracledb_exporter – для СУБД Oracle

  18. Если обновляемый сервер Traffic Monitor взаимодействует с Data Discovery 2.0 и более новыми, ранее вы остановили под (pod) technologies. Запустите под заново. Для этого:
    1. Подключитесь к ноде кластера Центра расследований.
    2. Для запуска пода на ноде с лейблом central выполните команду:
      kubectl scale -n infowatch --replicas=1 deployment/technologies-central
    3. Подключитесь обратно к терминалу сервера с Traffic Monitor.
  19. Если ранее вы остановили процессы адаптера Password Disclosure Adapter, запустите их. Подробнее см. InfoWatch Password Disclosure Adapter. Руководство по установке и конфигурированию. Диагностика и удаление InfoWatch Password Disclosure Adapter.
  20. Введите команду для очистки кеша менеджера пакетов:

    yum clean all

  21. Введите команду для проверки статусов процессов:
    iwtm status 
    На экране отобразится список процессов и их статусы.

Обновление сервера Traffic Monitor "Все-в-одном" (All-in-One) завершено. Номер версии Системы в окне О системе Консоли управления Traffic Monitor должен измениться на новый. Если в Системе есть другие серверы или подсистемы, которые нужно обновить, воспользуйтесь инструкциями в этом разделе.

Информация
titleПримечание:

После успешного обновления СУБД вы можете удалить файлы, оставшиеся от прошлой версии ПО.

Это действие допустимо только после завершения обновления всей Системы и проведения проверок.

Перед удалением обязательно проверьте, что:

  • запущены и работают все сервисы, предусмотренные в данной Системе;
  • в Консоли управления ТМ отсутствуют ошибки на вкладке "Состояние Системы";
  • старые события находятся в БД (это можно проверить на вкладке "События" с помощью запроса с соответствующей датой перехвата);
  • новые события попадают в БД.

Для удаления выполните команды:

  • если используется СУБД PostgreSQL:
    yum erase postgresql13* pgagent_13* 
    /u01/postgres/tmp/delete_old_cluster.sh
  • если используется СУБД Oracle:
    su - "oracle" -c "rm -rf ${ORACLE_HOME}.backup"
Предупреждение
titleВажно!

Если в Системе настроены автоматические синхронизации с LDAP-серверами, для гарантированной загрузки сущностей после обновления выполните синхронизации вручную (см. InfoWatch Traffic Monitor. Руководство пользователя. Запуск синхронизации с сервером вручную).

Информация
titleПримечание:

Для корректного отображения Консоли управления до начала работ удалите кеш в вашем браузере. Это можно сделать с помощью стандартных средств браузера.

Раскрыть
titleОбновление Системы путем чистой установки и восстановления данных из резервной копии (для СУБД PostgreSQL)

Якорь
Backup_Update
Backup_Update

Предупреждение
titleВажно!

Крайне рекомендуем выполнить резервное копирование Системы, а также клонировать ее и провести обновление на тестовой машине.
Если вы планируете не копировать данные, а примонтировать диск или раздел с данными, все равно рекомендуем выполнить их резервное копирование.
После чистой установки Системы конфигурационные файлы Traffic Monitor нужно будет настроить заново. Рекомендуем сохранить их для повторной настройки после обновления.

Если в конфигурационном файле luaengined.conf указан параметр SmtpTmBccList, и при этом значение параметра содержит угловые скобки (< и >), нужно удалить скобки перед запуском сервисов.

  1. Для остановки сервисов Traffic Monitor введите команду:
    iwtm stop
  2. Проверьте количество событий в Базе данных. Для этого выполните команду:
    psql postgres iwtm -c "select count(1) from object;"
  3. Выполните резервное копирование БД, индексов, конфигурации службы iw_adlibitum.
  4. Установите новую версию Traffic Monitor.

    Предупреждение
    titleВажно!

    Если резервные копии Базы данных находятся на внешних хранилищах, не подключайте их в процессе установки. Это нужно будет сделать непосредственно перед восстановлением и обновлением Базы данных.

    По завершении установки не удаляйте пакеты, созданные инсталлятором в процессе (пункт Remove extracted installer data).

    Последующие действия выполняйте на сервере, где установлена новая версия Traffic Monitor.

  5. Для остановки служб введите команду:
    iwtm stop
  6. Введите команду для остановки Базы данных:

    systemctl stop postgresql-15

    Информация
    titleПримечание:

    Чтобы иметь возможность восстановить исходное состояние чистой установки, вы можете скопировать директории u01 и u02.

  7. Для изменения прав доступа к директории введите команду:
    chmod 777 /var/log/infowatch/update
  8. Скопируйте резервную копию Базы данных таким образом, чтобы расположение соответствовало исходному.
  9. Измените владельца директорий, выполнив команды:
    chown -R postgres:postgres /u01/
    chown -R postgres:postgres /u02/
  10. Введите команду для перехода в директорию со скриптами:
    cd /tmp/iwtm_installer/scripts
  11. Находясь в директории, запустите скрипт обновления СУБД с помощью команды вида:
    ./install_postgres.sh --distrib_path=<директория_с_дистрибутивом_СУБД> --tm_version=<версия_нового_Traffic_Monitor> --update
    В нашем примере:
    ./install_postgres.sh --distrib_path=/root --tm_version=7.16.0.97 --update

    Информация
    titleПримечание:

    В примере дистрибутив iwtm-postgresql-15.14-x.x.x.xxx-rhel7.tar.gz расположен в директории /root.
    Чтобы узнать версию установленного Traffic Monitor, введите команду:
    cat /opt/iw/tm5/version

  12. После успешного обновления выполните команду для проверки статуса службы СУБД:
    systemctl status postgresql-15
  13. Запустите скрипт обновления схемы данных с помощью команды вида:
    ./install_dbschema.sh --tm_version=<версия_нового_Traffic_Monitor> --db_type=postgres --update
    В нашем примере:
    ./install_dbschema.sh --tm_version=7.16.0.97 --db_type=postgres --update
  14. Выполните действие 2 данной инструкции, чтобы сравнить количество событий в Базе данных до и после обновления.
  15. Скопируйте резервные копии индексов и конфигурации службы iw_adlibitum таким образом, чтобы расположение соответствовало исходным директориям и файлам.
    Если исходное расположение не являлось расположением по умолчанию, его нужно будет указать в соответствующих разделах конфигурационных файлов (см. действия biii и biv).
  16. Измените владельца директорий, выполнив команды:
    chown -R iwtm:iwtm /var/lib/sphinx/
    chown -R iwtm:iwtm /opt/iw/tm5/etc/adlibitum/
  17. Выполните команды:

    sudo -u iwtm touch /opt/iw/tm5/www/backend/protected/runtime/first_run
    iwtm restart kicker

  18. Введите команду для перезагрузки сервера:
    reboot
    Дождитесь загрузки сервера и повторно авторизуйтесь, выполнив действия 1–3 инструкции перед обновлением.
  19. Введите команду для проверки статусов процессов:
    iwtm status
    На экране отобразится список процессов и их статусы.

Обновление сервера Traffic Monitor "Все-в-одном" (All-in-One) завершено. Номер версии Системы в окне О системе Консоли управления Traffic Monitor должен измениться на новый. Если в Системе есть другие подлежащие обновлению серверы или подсистемы, воспользуйтесь инструкциями этого раздела.

Информация
titleПримечание:

Для корректного отображения Консоли управления до начала работ удалите кеш в вашем браузере. Это можно сделать с помощью стандартных средств браузера.

Якорь
oracle
oracle

Раскрыть
titleЕсли вы обновили Traffic Monitor на ОС Oracle Linux 8, AlmaLinux 8 или Rocky Linux 8, восстановите исходный файл выпуска ОС.

Для этого:

  1. Выполните команду в зависимости от ОС:
    • в ОС Oracle Linux 8:
      mv /etc/release.bak /etc/oracle-release
    • в ОС AlmaLinux 8 или Rocky Linux 8:
      mv /etc/release.bak /etc/redhat-release

  2. Подтвердите перезапись файла. Для этого введите "yes" и нажмите Enter.
  3. Убедитесь, что исходный файл выпуска успешно восстановлен. Для этого выполните команду:
    lsb_release -a
    В результате должна быть выведена информация о вашей операционной системе. Например, для ОС AlmaLinux 8 будет выведено:

Предупреждение
titleВажно!

Если до обновления Traffic Monitor на версию 7.16 было включено шифрование сервисов, убедитесь, что ваши настройки соответствуют актуальной инструкции. См. InfoWatch Traffic Monitor. Руководство администратора. Шифрование SSL Thrift.

Sv translation
languageen
Предупреждение
titleWarning!

Before updating Traffic Monitor, we recommend updating the Device Monitor server first.

The Traffic Monitor installer can work in two modes involving user to update the System:

  • Text mode in server console;
  • Graphical mode.

The updating steps and its sequence is similar in both modes.

Silent mode without involving the user is also available.

Regardless the selected mode of update, the management console or server terminal is required to update the System.

During the update all the Traffic Monitor packages will be installed, but after the update is over the installer will start only the services which were not disabled before the update.

Информация
titleNote:

In case the service was disabled, it will not be started after updating.

In case the service was stopped, it will be started after updating.

Statuses of new services will comply with statuses of initial installation.

Unpacking packages will not begin when the installer is started, but right before the update. 

Before updating the System, perform the following steps:

  1. Open the console of the server being updated:
    • In case of a physical server, the console is displayed on the screen of a monitor connected to the server;
    • In the case of a virtual server, run the Launch Console command (see example below):

      Раскрыть
      titleExample of launching a virtual server console in the web version of client application VMWare vSphere Client:
      1. Select the server and click Launch Console in the upper menu:
      2. Click Launch in the window that opens.

        A window with the server console will open. Enter the user password there.
  2. To log in to the System, enter the login and password (you need to enter as the root user).

    Информация
    titleTip:

    The commands in the console are entered from the keyboard and confirmed by pressing Enter. So, if the instruction tells you to "enter the command", it means that you need to enter the command and then press Enter. Once the command is executed, the invitation is displayed again – it ends with # or $ (depending on the user who logged in). Before typing the next command, make sure that the invitation is displayed in the command line.

  3. Раскрыть
    titleIf you update Traffic Monitor on Oracle Linux 8, AlmaLinux 8, or Rocky Linux 8 OS:
    Предупреждение
    titleWarning!

    Make sure that, in Oracle Linux 8.10 operating system, the current kernel is Red Hat Compatible Kernel (RHCK). For example, Oracle Linux Server, Kernel 4.18.0-553.50.1.el8_10.x86_64, and the UEK kernel is removed. For details, see Требования к настройкам ОС и сети сервера.

    1. Install the redhat-lsb-core package by running the following command:
      dnf install redhat-lsb-core
    2. Create a backup copy of the OS release file and replace the content of the original file. For this, run the commands depending on OS:
      • in Oracle Linux 8:
        cp /etc/oracle-release /etc/release.bak
        echo "Red Hat Enterprise Linux release 8.10 (Ootpa)" > /etc/oracle-release
      • in AlmaLinux 8 or Rocky Linux 8:
        cp /etc/redhat-release /etc/release.bak
        echo "Red Hat Enterprise Linux release 8.10 (Ootpa)" > /etc/redhat-release

    3. Run the command:
      lsb_release -a
      As a result, the following information should be displayed:

      Информация
      titleNote:

      After updating Traffic Monitor, recover the original OS release file. For details, see below.

  4. Check the version, edition, and installation type of the server you need to update. Run the command:

    cat /opt/iw/tm5/install_mode

    Блок кода
    languagetext
    titleExample of install_mode content file:
    {
      "product_type": "tme",
      "version": "7.14.0.150",
      "all_in_one": true,
      "templates": {
        "db": {
          "local": true
        },
        "indexer": {},
        "web": {},
        "interceptors": {}
      },
      "upgrade": {
        "previous_version": "7.13.0.136",
        "state": "done"
      }
    }

    The example is given for a Traffic Monitor server with All-in-One installation type, Enterprise edition, and version7.14.0.150.

  5. Update the server OS in case its version is not listed among supported versions in the Аппаратные и программные требования article.
Предупреждение
titleWarning!

Before updating the System, make sure that the server complies with the OS and network settings requirements.

After the update, the parameters of the systemd initialization system's unit files will return to their default values.

Примечание
titleAttention!

Якорь
Backup
Backup
In case an error occurs and you need to restore your database and restart the update from the last successfully completed step, we recommend to perform the following actions: 

  1. Раскрыть
    titleDatabase and indexes backup
    Предупреждение
    titleWarning!

    To back up successfully, you need to copy the files with their rights, users, and groups saved.

    To do this, copy files into the Linux file system only (for example, Ext4 or XFS).

    Store backup copies either on a separate section of the server, or on another server, or on an external device. Make sure that the data will not be lost.

    Backup copies should be copied into their original directories, and rights, users, and groups should not be changed.

    1. To stop Traffic Monitor services, enter the command:
      iwtm stop
    2. Perform the backup:

      1. Depending on the database you are using, enter the command to stop the database:
        • for Oracle DBMS:
          systemctl stop oracle
        • for PostgreSQL DBMS version 13:
          systemctl stop postgresql-13
        • for PostgreSQL DBMS version 15:
          systemctl stop postgresql-15
      2. Create your database backup. By default, the database is stored in the directories /u01, /u02, and so on.
        Store the database backup copies either on a separate section of the server, or on another server, or on an external device.

        Информация
        titleNote:

        To specify the directories that contain the database, check the file content:

        • /opt/iw/tm5/csw/oracle/database.conf (forOracle DBMS)

        • /opt/iw/tm5/csw/postgres/database.conf (for PostgreSQL DBMS)
      3. Perform indexes backup. To do this:
        1. Go to the directory /opt/iw/tm5/etc and open the file indexer.conf file to view it.

        2. In the parameter "SphinxBaseDir", you can see the path to the directory that contains the indexes. In the parameter "ArchiveDir", you can see a relative path to indexes archive. The path is specified relating to the content of the "NookDir" parameter. 
          Copy the directories with indexes and indexes archives either on a separate section of the server, or on another server, or on an external device.

      4. Create the backup of iw_adlibitum service configuration. To do this:
        1. Go to the directory /opt/iw/tm5/etc and open the file adlibitum.conf to view.

        2. In the parameter "ConfigDir" you can see a relative path to the directory that contains the configuration of iw_adlibitum service. The path is specified relating to the content of "NookDir" parameter. 
          Copy the directory with the configuration either on a separate section of the server or on another server or on an external device.

  2. Раскрыть
    titleBackup configuration of the environment

    You are required to consider the specifics of backing up from the Warning note in the previous step. Go to these addresses and copy the files:

    • Раскрыть
      titleFor Oracle DBMS:
      • /opt/iw/tm5/etc/oracle/ – all files in the directory
      • /etc/default/iwtm
      • /etc/profile.d/iw-oracle-env.sh
      • /etc/logrotate.d/iwtm-oracle-conf-server
      • /opt/iw/tm5/etc/oracle.conf
    • Раскрыть
      titleFor PostgreSQL DBMS:
      • /etc/default/iwtm
      • /etc/profile.d/iw-postgresql-env.sh
      • /etc/profile.d/iw-postgresql-client-env.sh
      • /etc/sudoers.d/iw-pgagent
      • /etc/pgagent/pgagent-13.conf or /etc/pgagent/pgagent-15.conf depending on the DBMS version
      • /opt/iw/tm5/etc/postgresql/ – all files in the directory
      • /opt/iw/tm5/etc/postgres.conf
    Информация
    titleNote:

    In the directory /tmp/iwtm_db_configs_backup the installer automatically creates copies of files of environment settings. To make it easier for the user, the installer recreates in the directory the paths of original files. Use the paths when you need to copy the files to restore their initial state.

    The backup copies created by the installer are stored untill uptate. They will be deleted after the update is complete. 

Depending on the update mode, select the instruction:

Раскрыть
titleUpdating the System over the installed one:

Якорь
inplace
inplace

Предупреждение
titleWarning!

We strongly recommend backing up the System, cloning it, and updating on this particular testing machine.

To upgrade the System, please take the following actions:

  1. Copy files from InfoWatch Traffic Monitor distribution kit to /root directory. See the list of files for different OS and DBMS in Установка TM Enterprise и TM Standard в режиме "Все-в-одном", step 5. The following instruction uses installer for Red Hat Enterprise Linux.
    This instruction is relevant for other supported OS: Oracle Linux, RED OS, AlmaLinux, Rocky Linux and Alt Server.

  2. To make the file iwtm-installer-x.x.x.xxx-rhel7 executable, enter the command:
    chmod u+x /root/iwtm-installer-x.x.x.xxx-rhel7

    Our example command:
    chmod u+x /root/iwtm-installer-7.16.0.97-rhel7

  3. Connect external or local OS repositories.
    For example, you can find instructions on how to configure local Red Hat Enterprise Linux repository at the
    official web page.
  4. To update all packages except pgagent, run the command:
    yum upgrade --exclude="pgagent*"

    The following request will be displayed:

    To continue, type Y and then press Enter.

  5. Install the additional packages python3-psycopg2 and libzstd by running the command:
    yum install python3-psycopg2 libzstd
    In case of error, download the packages from the EPEL repository and install them manually.
  6. If you use a remote database:
    1. Make sure the DBMS version you use is supported by Traffic Monitor. See Аппаратные и программные требования.
    2. If DBMS version is actual, please skip this action.

      Раскрыть
      titleIf DBMS needs to be upgraded:
      1. To stop Traffic Monitor services, run the command:
        iwtm stop
      2. Stop the DBMS.
      3. Upgrade the DBMS to supported version. To do this, use the official instructions.

        Информация
        titleNote:

        For PostgresSQL and PostgreSQL Pro you should also upgrade the service in use pgagent.

      4. After upgrade is complete, run the DBMS but do not start Traffic Monitor services.
  7. If the Traffic Monitor server being updated interacts with Data Discovery 2.0 or later, then stop the technologies pod, which creates database connections to access the configuration.
    To stop the pod:
    1. Connect to the terminal of any node of the Investigation Centre cluster with installed Data Discovery, which connects to the Traffic Monitor database.
    2. The pod name contains the label of the node on which the pod is installed. To determine the pod name, run the command:
      kubectl get pods -A -o wide | grep technolog

      Блок кода
      titleExample command line output after the command:
      root@lv-426:~# kubectl get pods -A -o wide | grep technolog
      infowatch      technologies-central-71cb89dd54-bgwn6      3/3     Running   0             18h   10.244.0.86   lv-426   <none>           <none>

      Here, the node label is central.

    3. To stop the pod, run the following command on the node with the central label:
      kubectl scale -n infowatch --replicas=0 deployment/technologies-central
    4. Connect to the terminal of the server with Traffic Monitor again.
  8. If Password Disclosure Adapter is installed and running in the System, then before updating Traffic Monitor, stop the adapter processes. For details, see the InfoWatch Password Disclosure Adapter. Installation and Configuration Guide. Diagnostics and Removal of InfoWatch Password Disclosure Adapter article.
  9. If you have the Prometheus system installed, then to stop the service you should run the following command:

    systemctl stop iwtm-postgres_exporter – for PostgreSQL DBMS
    systemctl stop iwtm-oracledb_exporter – 
    for Oracle DBMS

  10. Enter the command to go to Traffic Monitor distribution kit directory:

    cd /root

    Информация
    titleNote:

    Before starting the update, you are recommended to start the database service, in case it was stopped before. In accordance with DBMS used please type the command to run:

    • for Oracle DBMS:
      service oracle start 
    • for PostgreSQL DBMS version 13:
      systemctl start postgresql-13
    • for PostgreSQL DBMS version 15:
      systemctl start postgresql-15
  11. Automatic merging of Traffic Monitor configuration files of the old and new versions is implemented in the installer.

    Предупреждение
    titleWarning!

    Automatic merging applies only to Traffic Monitor configuration files with the .conf extension that are located in the /opt/iw/tm5/etc directory.
    Before merging, backup copies for source configuration files are created in the /opt/iw/tm5/etc_conf_backup_<date_time> directory. An example of the directory name: /opt/iw/tm5/etc_conf_backup_06.07.2024_09:26:33.
    After merging, files with the.rpmnew extension, which relate to merged configuration files, will be deleted.
    All steps will be logged in the /var/log/infowatch/iwtm-install-<version>-<date>_<time>.log file. An example of the log file name: /var/log/iwtm-install-7.16.0.97-2024-09-07_09-56-25.log.
    You can also find information on the merge process in the /var/log/infowatch/config_merge/ directory.
    If during operations with a configuration file, some errors occur, the process will be stopped until the user corrects the errors. Restart the update after the errors are corrected.

    Run the installer using one of the modes:

    Раскрыть
    titleUpdating in text mode using server console

    To update Traffic Monitor using server console, take the following steps:

    1. Start the Traffic Monitor installer running the command:

      ./iwtm-installer-x.x.x.xxx-rhel7

      Our example command:

      ./iwtm-installer-7.16.0.97-rhel7

      Preparations will be made to start the updating. At this stage the unpacking of Traffic Monitor files is not being performed.

      Информация
      titleNote:

      Before starting the installation a warning about wrong owner of files may be displayed.

      Type Y and press Enter to change the owner of files and continue running.

      Otherwise, you can enter N and press Enter, then make corrections manually or using /tmp/iwtm_installer/scripts/check_iwtm.sh script and start the installer again.

      Предупреждение
      titleWarning!

      If available configured OS repositories are missing, the preparation process will stop with the following error message:

      To fix this error press Enter to exit, connect the standard OS repository, EPEL repository and restart the installer.

      For more details on the error refer to the log files, specified in the error message.

      After this finished, a welcoming window will be displayed:

    2. You must accept the terms of the License Agreement before continuing with the update. Select one of the following options. For this, type the figure specified next to it and press Enter:

      • Show the License Agreement – to view the License Agreement;

        Раскрыть
        titleIf this option is selected:
        1. Select language to display the License Agreement:
          • English
          • Russian
        2. Read the License Agreement. To go to the next page, press Enter.
        3. Accept the License Agreement. For this, type y and press Enter.
      • I accept the License Agreement – to accept the License Agreement without preview;
      • I do not accept the License Agreement – to not accept the License Agreement and abort the update process.

        Информация
        titleNote:

        When updating via server console, you can see the default value which is specified in square brackets as a figure or a capital letter next to input field. This value will be used in case of leaving the field empty and pressing Enter.

        Раскрыть
        titleExample:
        If you do not input a value as per picture above and press Enter, the item [1] Show the License Agreement will be selected.

        Then update confirmation window will be displayed. It will contain all available updates for Traffic Monitor and DBMS.

    3. To continue, type Y and press Enter. To exit the installer type n and press Enter. 

    4. Confirm the Traffic Monitor services and database were stopped. Steps to confirm the stop and to select a mode will be missed in case the services were stopped manually before starting the installer.
    5. Select a mode to stop Traffic Monitor:
      • Quick stop – quick stop without events processing;

      • Waiting for stop – wait till the current processing of events is finished;

      • Waiting for emptying file queues – wait till all the events are processed and all the file queues are empty before stopping.

      To make a choice please enter the figure specified next to option selected, and press Enter.

      Информация

      In case Quick stop is selected, the stopped services will have failed status before the update.

    6. If you've selected Quick stop or Waiting for stop, events can be sent to error queue after Traffic Monitor resumes the work.
      To continue type Y and press Enter.
      While stopping an events proessing progress will be displayed.
    7. After the services are stopped, a message to start the updating and query to continue will be displayed.

      To start the updating type Y and press Enter.

      The unpacking of Traffic Monitor updating files will start. Implementation progress will be displayed.
      The process may take some time.

      Информация
      titleNote:

      If for any reason the installation process was interrupted, eliminate the cause and restart the installer. The installation will continue from the last step that was successfully completed.

      When updating is successfully completed the installer will offer starting the services which were stopped

      the installation process was interrupted, eliminate the cause and restart the installer. The installation will continue from the last step that was successfully completed.

    8. When updating is successfully completed the installer will offer starting the services which were stopped.

      Предупреждение
      titleImportant!

      Without valid licenses applied, events accumulated in file queues during the update may be irretrievably lost. Therefore:

      • If you chose to start services automatically, keep in mind that the license distribution service may start after the other services. In Traffic Monitor 7.16.2 and later, there is an option to start services only after the license files appear on the server (see the next step of the installer);
      • If you decided to start services manually, after updating the System be sure to wait until the license files appear in the /opt/iw/tm5/etc/config/license directory.
      Предупреждение
      titleWarning!

      After update is complete Nagios monitoring system configuration will be changed to default values. In case you've edited Nagios configuration files before the update, its copies will be created in /etc/infowatch/nagios/iwmon as .saved files. Before starting the Traffic Monitor services move the configuration from .saved files to corresponding new configuration files.

      After the update to manage the monitoring system use iwtm-nagios service.
      For example, to check Nagios status use the command:
      systemctl status iwtm-nagios

      Предупреждение
      titleImportant!

      After updating the System, be sure to wait until the license files appear in directory /opt/iw/tm5/etc/config/license. Without valid, applied licenses, events accumulated in file queues during the update may be irretrievably lost.  Nagios status use the command:
      systemctl status iwtm-nagios

      Предупреждение
      titleWarning!

      In case luaengined.conf configuration file contains SmtpTmBccList parameter, before starting services make sure there are no angle brackets (< and >) in the parameter's value. Otherwise, remove the brackets.

      If you do not run the services, to recover the System's efficiency you should run it later manually.

      Информация
      titleNote:

      If Consul service is configured incorrectly, the following warning message will be displayed: 

      To finish installation press Enter.

      Раскрыть
      titleFor correct work of System check and configure Consul service cluster
        1. Start Consul service with the command:
          systemctl start iwtm-consul
          To check the service status enter the command:
          systemctl status iwtm-consul
        2. To check Consul enter the command:
          1. To display IP address of main server (leader) of cluster:
            curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo
          2. To display information about cluster members:
            consul members
        3. If the IP address of cluster leader is not displayed, configure cluster of Consul service.
          After configuration is complete, repeat checking (step ii).

      If the error occurs, the installer will not launch Traffic Monitor services when the installation is finished, so you need to start them manually.

    9. If you opted to start services automatically and you are updating Traffic Monitor to version 7.16.2 or later, specify whether to start services only after licenses are distributed.
    10. Before completing the update the installer will offer deleting the packages created to update the System.
      When update is successfully completed, this data is recommended to delete.
    11. Wait till completion of installer operation.
    Раскрыть
    titleUpdating in graphical mode

    X Window System uses a client-server model. To run the installer in the graphical mode X11 Forwarding is used to forward the graphical output of remote system. This let you work directly with Linux graphical applications on the computer which is connected to server. This mode is implemented via SSH connection.

    To update Traffic Monitor using graphical mode of installation, take the following steps:

    1. On the server, where Traffic Monitor components are planned to update:
      1. Install xauth utility using the command:
        yum install xauth
      2. In /etc/ssh/sshd_config configuration file uncomment the line "X11Forwarding yes". To do this, delete # placed before the line.
      3. Save changes in configuration file.
      4. Restart SSH service using the command:
        systemctl restart sshd
    2. On the computer, where the graphical mode is to be used:
      1. To connect to Traffic Monitor installation server you will require a SSH client with enabled X11 Forwarding option, e.g. PuTTY.
      2. To start the installer in the graphical mode you will require an application configured to access to X Window System, for example:
        • Xming application – for OS MS Windows;
        • Gnome 3 shell – for OS Linux.
    3. Run the application client which was previously configured to access to X Window System.
    4. Connect to server, where Traffic Monitor components are planned to install, using selected SSH client.

      Раскрыть
      titleExample of PuTTY configuration window used to connect

    5. Run the installer using the command:
      ./iwtm-installer-x.x.x.xxx-rhel7
       As per our example:
      ./iwtm-installer-7.16.0.97-rhel7
      Preparations will be made to start the installation. At this stage the unpacking of files is not being performed.

      Информация
      titleNote:

      Before starting the installation a warning about wrong owner of files will be displayed.

      Press Yes to change the owner of files and continue running.

      Otherwise, you can enter N and press Enter, then make corrections manually or using /tmp/iwtm_installer/scripts/check_iwtm.sh script and start the installer again.

      Предупреждение
      titleWarning!

      If available configured OS repositories are missing, the preparation process will stop with the following error message:

      To fix this error press OK to exit, connect the standard OS repository, EPEL repository and restart the installer.

      For more details on the error refer to the log files, specified in the error message.

      After finishing, a window to install Traffic Monitor will be displayed:

      To go to the next parameter press Next button, to go back press – Back. To exit the installer press Cancel button.

    6. You must accept the terms of the License Agreement before continuing with the update. For this:

      1. Select language to display the License Agreement:

        • English
        • Russian
      2. Select one of the following options. For this, click in the checkbox next to the required value and press the Next button:

        • I accept the agreement – to accept the License Agreement and continue the update process;
        • I do not accept the agreement – to not accept the License Agreement and abort the update process.

    7. The next window will contain data related to available upgrades for Traffic Monitor and DBMS.

      To continue press Next.

    8. Confirm the Traffic Monitor services and database were stopped. Steps to confirm the stop and to select a mode will be missed in case the services were stopped manually before starting the installer.
    9. Select a mode to stop Traffic Monitor:

      • Quick stop – quick stop without events processing;

      • Waiting for stop – wait till the current processing of events is finished;

      • Waiting for emptying file queues – wait till all the events are processed and all the file queues are empty before stopping.
        To select click in the checkbox next to required value and press Next button.

        Информация
        titleNote:

        In case Quick stop is selected, the stopped services will have failed status before the update.

    10. If you've selected Quick stop or Waiting for stop, events can be sent to error queue after Traffic Monitor resumes the work.

      To continue press Yes button.

      While stopping an events processing progress will be displayed.

    11. After the services are stopped, a message to start the updating and query to continue will be displayed.

      To start the updating press Yes button.
      The unpacking of Traffic Monitor updating files will start. Implementation progress will be displayed.

      The process may take some time.

      Информация

      If for any reason the installation process was interrupted, eliminate the cause and restart the installer. The installation will continue from the last step that was successfully completed.

    12. After updating is complete you can:

      • Remove exctracted installer data –when updating is successfully completed you can delete the packages created to install the System. This data is recommended to delete.Start Infowatch Traffic Monitor services–start the stopped services. Otherwise, you need to restore System availability manually later This data is recommended to delete.
      • Start Infowatch Traffic Monitor services–start the stopped services. Otherwise, you need to restore System availability manually later;

      • Wait for licenses when starting Infowatch Traffic Monitor services (if you are updating Traffic Monitor to version 7.16.2 or later) – start services only after licenses are distributed.

        Предупреждение
        titleImportant!

        Without valid licenses applied, events accumulated in file queues during the update may be irretrievably lost. Therefore:

        • If you chose to start services automatically, keep in mind that the license distribution service may start after the other services;
        • If you decided to start services manually, after updating the System be sure to wait until the license files appear in the /opt/iw/tm5/etc/config/license directory.
        Предупреждение
        titleWarning!

        After update is complete Nagios monitoring system configuration will be changed to default values. In case you've edited Nagios configuration files before the update, its copies will be created in /etc/infowatch/nagios/iwmon as .saved files. Before starting the Traffic Monitor services move the configuration from .saved files to corresponding new configuration files.

        After the update to manage the monitoring system use iwtm-nagios service.

        For example, to check Nagios status use the command:

        systemctl status iwtm-nagios

        Предупреждение
        titleImportant!

        After updating the System, be sure to wait until the license files appear in directory /opt/iw/tm5/etc/config/license. Without valid, applied licenses, events accumulated in file queues during the update may be irretrievably lost.  .

        For example, to check Nagios status use the command:

        systemctl status iwtm-nagios

        Предупреждение
        titleWarning!

        In case luaengined.conf configuration file contains SmtpTmBccList parameter, before starting services make sure there are no angle brackets (< and >) in the parameter's value. Otherwise, remove the brackets.

        Mark the checkboxes to select the actions you need:

        Информация
        titleNote:

        If Consul service is configured incorrectly, the following warning message will be displayed: 

        To finish installation press OK.

        Раскрыть
        titleFor correct work of System check and configure Consul service cluster
        1. Start Consul service with the command:
          systemctl start iwtm-consul
          To check the service status enter the command:
          systemctl status iwtm-consul
        2. To check Consul enter the command:
          1. To display IP address of main server (leader) of cluster:
            curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo
          2. To display information about cluster members:
            consul members
        3. If the IP address of cluster leader is not displayed, configure cluster of Consul service.
          After configuration is complete, repeat checking (step ii).

        If the error occurs, the installer will not launch Traffic Monitor services when the installation is finished, so you need to start them manually.

    13. To finalise the installation press Next.

    Раскрыть
    titleUpdating in silent mode

    To reduce a user's role in the System updating process there is a silent mode of installation. In this mode Traffic Monitor can be updated using default parameters.

    An options file is realized to be used as a parameter file. In this file you can set required installation parameters. When starting the installation via parameter file, the values specified in this file will be considered the default parameters.

    Parameter file (option file)

    The file contains the following parameters description:

    <parameter's_name>=<parameter's_value>

    You may leave comments using #.

    Блок кода
    languagec#
    titleParameter file example:
    # This file is just an example
    fix_incorrect_file_owners=1
    cleanup_way=clean_fq
    start_services_after_upgrade=1

    The example above contains the parameters as follows:

    • Change wrong owner of files to correct one;
    • Before stopping the services wait until all events are processed and the queues are cleared;
    • Run the services after update.
    Предупреждение
    titleWarning!

    The parameters which are not specified in the file will have the default values. The full list of parameters is specified in the table below.

    To use the parameter file go to installer directory and run it using --optionfile specifying the file which was previously created.

    Блок кода
    languagec#
    titleExample of using parameter file:
    ./iwtm-installer-7.16.0.97-rhel7 --optionfile /some_directory/option-file-example

    An alternative way to use: give the parameter file the same name the installer has, but use .options extension and copy it to installer directory. In this case the running installer will consider the file parameters the default values.

    Silent mode installation

    To update the System in silent mode use --mode unattended option.

    Level of interaction with user is set by --unattendedmodeui parameter, which has the following values:

    • none – no information displayed while updating and no interaction is required;
    • minimal – status of implementation is displayed while updating, no interaction is required;
    • minimalWithDialogs – status of implementation is displayed while updating, pop-up windows can be displayed and interaction with user can be required.
    Блок кода
    languagec#
    titleExample of installer running command in silent mode with no user assistance and using parameter file:
    ./iwtm-installer-7.16.0.97-rhel7 --optionfile /some_directory/option-file-example --mode unattended --unattendedmodeui minimal
    Предупреждение
    titleWarning!

    If available configured OS repositories are missing, the preparation process will stop with the following error message:

    To fix this error press Enter to exit, connect the standard OS repository, EPEL repository and restart the installer.

    For more details on the error refer to the log files specified in the error message.

    Информация
    titleNote:

    In case the process is over with no errors, the packages created for installation will be removed by installer. If for any reason the installation process was interrupted, eliminate the cause and restart the installer. The installation will continue from the last step that was successfully completed.

    Информация
    titleNote:

    If Consul service is configured incorrectly, the following warning message will be displayed: 

    To finish installation press Enter.

    Раскрыть
    titleCheck and configure cluster of Consul service for correct work of the System:
    1. Start Consul service with the command:
      systemctl start iwtm-consul
      To check the service status enter the command:
      systemctl status iwtm-consul
    2. To check Consul enter the command:
      1. To display IP address of main server (leader) of cluster:
        curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo
      2. To display information about cluster members:
        consul members
    3. If the IP address of cluster leader is not displayed, configure cluster of Consul service.
      After configuration is complete, repeat checking (step ii).

    If the error occurs, the installer will not launch Traffic Monitor services when the installation is finished, so you need to start them manually.

    Full composition of parameter file

    The table below contains full list of possible parameters used for update and their default values.

    Scroll Table Layout
    widths20%, 17%, 13%, 20%, 30%

    NameDescription

    force_upgrade

    Forcible switch to updating mode, even if the versions do not match

    Values: 0 (default), 1

    fix_incorrect_file_owners

    The parameter defines if the wrong owner of files should be changed before the update

    Values: 0 (default), 1

    If the files to be updated have a wrong owner, the update will be interrupted.

    cleanup_way

    Select the mode to stop services:
    • quick_stop. No events processing;

    • wait_stop (default). Wait until current events processing is complete;

    • clean_fq. Before stopping wait until all events are processed and the queues are cleared.

    All events processing and file queues clearing mode (clean_fq) is available only when interception components are installed on server. In case this mode was selected but there is a lack of interception components on server, the current events processing mode will be used (wait_stop).

    start_services_after_upgrade

    The parameter defines if the installer should run the services after update

    Values: 0, 1 (default)

    selected but there is a lack of interception components on server, the current events processing mode will be used (wait_stop).

    start_services_after_upgrade

    The parameter defines if the installer should run the services after update

    Values: 0, 1 (default)

    Without valid licenses applied, events accumulated in file queues during the update may be irretrievably lost. Therefore:

    • If you chose to start services automatically, keep in mind that the license distribution service may start after the other services. In Traffic Monitor 7.16.2 and later, there is an option to start services only after the license files appear on the server (see the wait_for_licenses parameter);
    • If you decided to start services manually, after updating the System be sure to wait until the license files appear in the /opt/iw/tm5/etc/config/license directory.

    After update is complete Nagios monitoring system configuration will be changed to default values. In case you've edited Nagios configuration files before the update, its copies will be created in /etc/infowatch/nagios/iwmon as .saved files. Before starting the Traffic Monitor services move the configuration from .saved files to corresponding new configuration files.

    After the update to manage the monitoring system use iwtm-nagios service.

    For example, to check Nagios status use the command:

    systemctl status iwtm-nagios

    If luaengined.conf configuration file contains SmtpTmBccList parameter, and there are angle brackets (< and >) in the parameter's value, remove the brackets before starting services. In this case, you should not set start_services_after_upgrade to 1.

    wait_for_licenses

    The parameter defines whether the installer should start services only after licenses are distributed.

    Values: 0 (default), 1

    The parameter is available starting with Traffic Monitor version 7.16.2.

    eula

    Values:

    • show – display the License Agreement text
    • accept – accept the License Agreement without preview

    If you run the installation not in the unattended mode and do not specify the parameter, then the License Agreement text will be displayed. You will be asked to accept the agreement.

    If you run the installation in the unattended mode, this parameter value is ignored and the License Agreement is accepted by default.

  12. Enter the command to find files with .rpmnew extension, except backups of configuration files:
    find / -name "*rpmnew*" -not -path "/opt/iw/tm5/etc_conf_backup*" -print
    If the files have been found, they are displayed at the console. In this case, you should correctly merge them with configuration files (see Объединение конфигурационных файлов).

    Информация
    titleNote:

    To merge successfully the configuration files you should read the following articles on the official site:

  13. Check the contents of /opt/iw/tm5/etc/scripts/iwssid.lua. If it was not changed before the update, it is recommended to not change it. Otherwise, properly merge it with the configuration file iwssid.lua.rpmnew(seeОбъединение конфигурационных файлов).
  14. If the installer has not complete its work before, select start of services and finish the update. If the installer has completed its work without running the services, start them manually or reboot the server to start all stopped services.
    To reboot the server:
    reboot

    Предупреждение
    titleWarning!

    After the start, Traffic Monitor connects to DB and loads the configuration file cas_config.xml. from it. Depending on size of the file, its loading may take some time.

    During the loading process, the System may record error messages in log files:

    • Раскрыть
      title/opt/iw/tm5/log/cas_config_compiler.log
      Блок кода
      languagejs
      titleError record
      linenumberstrue
      1 2019-10-07 17:00:57.351489 (3936:0x00007f4008de8880) [ERROR  ] : <Root> Exception:.
      Diagnostic information..
      /sandbox/src/cas3/config/details/cas_factory.cpp(233): Throw in function bool cas::CasConfigFactory::LoadXmlConfig(cas::ConfigCreator::Ptr&, const boost::filesystem::path&) const
      Dynamic exception type: boost::exception_detail::clone_impl<cas::ExceptionCasConfig>
    • Раскрыть
      title/opt/iw/tm5/log/cas.log
      Блок кода
      languagejs
      titleError record
      linenumberstrue
      1 2019-10-03 17:39:13.348146 (14262:0x00007fe83892ba80) [WARNING] : <Root> Prometheus server is off, therefore the statistics is unavailable. That's what you wanted, isn't it?
      2 2019-10-03 17:39:14.364655 (14262:0x00007fe83892ba80) [ERROR  ] : <Root> Error when loading config of tech: Cannot open xml file with cas configuration: etc/config/cas/cas_config.xml
      3 2019-10-03 17:39:14.364856 (14262:0x00007fe83892ba80) [ERROR  ] : <Root> failed to initialize thrift server
      Diagnostic information.
      /sandbox/src/cas3/handler.cpp(682): Throw in function cas::Handler::LoadedConfigData cas::Handler::GetLoadedConfigData(const prop::Property&, const Ptr&)
      Dynamic exception type: boost::exception_detail::clone_impl<tech::ExceptionTechLoadConfig>
      std::exception::what: Cannot open xml file with cas configuration: etc/config/cas/cas_config.xml

    When cas_config.xml file loading is complete the System will stop recording errors and will operate normally.

    If the System keeps recording errors for a long time, check the connection to the DB.

  15. In Traffic Monitor, we have extended the list of default tasks that automatically delete obsolete tasks.
    Tasks for the cron scheduler are now specified in the /etc/cron.d/iwtm_cleanup file (file contents are described in the Automatic deletion of unnecessary files in Traffic Monitor article).
    For new tasks to work correctly:
    1. Delete obsolete tasks by editing the cron configuration file:
      sudo crontab -e
    2. Save changes and exit the configuration file editor.
    3. Restart the service:
      systemctl reload crond
  16. If you haven't edited the previous /etc/cron.d/iwtm_error_queue file with tasks before the update, then skip this step. 
    Otherwise, the /etc/cron.d/iwtm_error_queue file will be deleted and its contents will be saved in the /etc/cron.d/iwtm_error_queue.rpmsave file.
    For earlier added tasks to start working again, create a file for your tasks in the /etc/cron.d/ directory and copy required tasks from /etc/cron.d/iwtm_error_queue.rpmsave to this file.


    Информация
    titleNote:

    You can add your tasks to the /etc/cron.d/iwtm_cleanup file. On the next update, this file will be renamed to /etc/cron.d/iwtm_cleanup.rpmnew and replaced with a file with default content. After the next update, you will need to move added tasks from the /etc/cron.d/iwtm_cleanup.rpmnew file to a new /etc/cron.d/iwtm_cleanup file.
    To avoid moving tasks every time, you can create a separate file with your tasks in the /etc/cron.d/ directory.

  17. If you have the Prometheus system installed and in case the server has not been rebooted to stop the service you should run the following command:

    systemctl start iwtm-postgres_exporter – for PostgreSQL DBMS
    systemctl start iwtm-oracledb_exporter – for Oracle DBMS

  18. If the Traffic Monitor server being updated interacts with Data Discovery 2.0 or later, then earlier you stopped the technologies pod. Run the pod again. For this:
    1. Connect to the node of the Intestigation Centre cluster.
    2. To start the pod, on the node with the central label, run the command:
      kubectl scale -n infowatch --replicas=1 deployment/technologies-central
    3. Connect to the terminal of the server with Traffic Monitor again.
  19. If you previously stopped the processes of Password Disclosure Adapter, start these processes. For details, see the InfoWatch Password Disclosure Adapter. Installation and Configuration Guide. Diagnostics and Removal of InfoWatch Password Disclosure Adapter article.
  20. Enter the command to clear cache of packages manager:
    yum clean all

  21. Enter the command to test processes' start:
    iwtm status
    A list of processes and their statuses will be displayed.

Updating Traffic Monitor All-in-one server is complete. The version of the System in the About window of the Management Console will be changed. If the System includes other servers or subsystems to be updated, follow the instructions in this section.

Информация
titleNote:

After the DBMS was successfully updated you can remove files which belong to previous versions.

This can be done only after the System is completely updated and check is performed.

Before removing the files, please make sure that:

  • The services arranged for this System are running and working;
  • The Management concole contains no errors at System state section;
  • Old events are placed to DB. You can check this on Events section, using a query with corresponding date of interception;
  • New events are sent to DB.

To remove the files run the following command:

  • If you use PostgreSQL DBMS:
    yum erase postgresql13*
    /u01/postgres/tmp/delete_old_cluster.sh the
  • If you use Oracle DBMS:
    su - "oracle" -c "rm -rf ${ORACLE_HOME}.backup"
Предупреждение
titleWarning!

If you have configured automatic synchronizations with LDAP servers, to guarantee the download of entities after update is completed, you should run the synchronization manually (for more details, please see Infowatch Traffic Monitor. User Guide. Running Synchronization with Server Manually article).

Информация
titleNote:

To display data correctly via Management console you should delete the cache in the browser you use. This can be done using the browser standard tools.

Раскрыть
titleUpdating the System via installation and restoring data from the backup copy (for PostgreSQL)  

Якорь
Backup_Update
Backup_Update

Предупреждение
titleWarning!

We strongly recommend backing up the System, cloning it, and updating on this particular testing machine. 
If you do not want to copy the data because you will mount the disk or the section containing your data, we recommend to backup them anyway.
After clear installation of the System you will need to set the configuration files of Traffic Monitor again. We recommend to store them so you can configure settings after the update.

In case luaengined.conf configuration file contains SmtpTmBccList parameter, and there are angle brackets (< and >) in the parameter's value, remove the brackets before starting services.

  1. To stop Traffic Monitor services, run the command:
    iwtm stop
  2. Check the number of events DB contains. For this, run the command:
    psql postgres iwtm -c "select count(1) from object;"
  3. Complete database and indexes backup.
  4. Install a new version of Traffic Monitor.

    Предупреждение
    titleWarning!

    If the backup copies of your DB are stored on external devices, do not connect them during the update. You need to do it before restoring and updating the DB.

    When the update is complete, do not remove the packages created by the installer during the process of update (the point Remove extracted installer data).

    Perform the following steps on the server where you have installed the new version of Traffic Monitor.

  5. To stop services, run the commands:
    iwtm stop
  6. Enter the command to stop the DB:
    systemctl stop postgresql-13

    Информация
    titleNote:

    To restore the initial state of clean installation, you can copy the directories u01 and u02.

  7. To change the access rights to the directory, enter the command:
    chmod 777 /var/log/infowatch/update
  8. Copy reserve DB copy so that it was located the same way it was placed initially. 
  9. Change the owner of the directories by running the commands:
    chown -R postgres:postgres /u01/
    chown -R postgres:postgres /u02/
  10. Enter the command to go to the directory that contains scripts:
    cd /tmp/iwtm_installer/scripts
  11. From the directory run the script to update the DBMS by using the command:
    ./install_postgres.sh --distrib_path=<directory_with_DBMS_distributive> --tm_version=<new_version_of_Traffic_Monitor> --update
    As per our example:
    ./install_postgres.sh --distrib_path=/root --tm_version=7.16.0.97 --update

    Информация
    titleNote:

    In the example the distributive iwtm-postgresql-15.14-x.x.x.xxx-rhel7.tar.gz is located in the /root directory.
    To view the version of Traffic Monitor you have installed, enter the command:
    cat /opt/iw/tm5/version

  12. After the successfull update complete the command to check the status of DBMS service:
    systemctl status postgresql-15
  13. Run the script to update the data scheme by using the command:
    ./install_dbschema.sh --tm_version=<new_version_of_Traffic_Monitor> --db_type=postgres --update
    As per our example:
    ./install_dbschema.sh --tm_version=7.16.0.97 --db_type=postgres --update
  14. Complete the step 2 of the instruction to compare the number of events in the DB before and after the update.
  15. Copy the backup copies of indexes and configurations of iw_adlibitum service so that they were located the same way it was placed initially. 
    If the initial location is not the default one, then you will have to specify it in the corresponding sections of the configuration files (see steps biii and biv).
  16. Change the owner of the directories by running the commands:
    chown -R iwtm:iwtm /var/lib/sphinx/
    chown -R iwtm:iwtm /opt/iw/tm5/etc/adlibitum/
  17. Run the commands:

    sudo -u iwtm touch /opt/iw/tm5/www/backend/protected/runtime/first_run
    iwtm restart kicker

  18. Run the command to reboot the server:
    reboot
    Wait until the server is rebooted, then log in again by completing the steps 1-3 of the instruction before the update. 
  19. Enter the command to check statuses of the processes:
    iwtm status 
    The list of processes and their statuses will be displayed.

Updating Traffic Monitor All-in-one server is complete. The version of the System in the About window of the Management Console will be changed. If the System includes other servers or subsystems to be updated, follow the instructions in this section.

Информация
titleNote:

Clear cache of your browser before starting the works, so the Console is displayed correctly. You can do it by using the standard tools of your browser. 

Якорь
oracle
oracle

Раскрыть
titleIf you updated Traffic Monitor on Oracle Linux 8, AlmaLinux 8 or Rocky Linux 8 OS, recover the original OS release file.

For this:

  1. Run the command depending on OS:
    • in Oracle Linux 8:
      mv /etc/release.bak /etc/oracle-release
    • in AlmaLinux 8 or Rocky Linux 8:
      mv /etc/release.bak /etc/redhat-release

  2. Confirm overwriting of the file. For this, enter "yes" and press Enter.
  3. Check that the original release file is succesfully recovered. For this, run the command:
    lsb_release -a
    As a result, the information on your OS should be displayed. For example, for AlmaLinux 8 OS, the following will be displayed:

Предупреждение
titleВажно!

In case before updating Traffic Monitor to version 7.16 service encryption was enabled, make sure your settings correspond to the actual instruction. See InfoWatch Traffic Monitor. Administration Guide. SSL Thrift Encryption.