| Предупреждение |
|---|
| 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. | Информация |
|---|
| 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: - Open the console of the server being updated:
To log in to the System, enter the login and password (you need to enter as the root user). | Информация |
|---|
| 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. |
| Раскрыть |
|---|
| title | If you update Traffic Monitor on Oracle Linux 8, AlmaLinux 8, or Rocky Linux 8 OS: |
|---|
| | Предупреждение |
|---|
| 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 Требования к настройкам ОС и сети сервера. |
- Install the
redhat-lsb-core package by running the following command:
dnf install redhat-lsb-core - 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:
Run the command:
lsb_release -a As a result, the following information should be displayed:
 | Информация |
|---|
| After updating Traffic Monitor, recover the original OS release file. For details, see below. |
|
Check the version, edition, and installation type of the server you need to update. Run the command: cat /opt/iw/tm5/install_mode
| Блок кода |
|---|
| language | text |
|---|
| title | Example 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. - Update the server OS in case its version is not listed among supported versions in the Аппаратные и программные требования article.
| Предупреждение |
|---|
| 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 initialization system's unit files will return to their default values. |
| Примечание |
|---|
| 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: | Раскрыть |
|---|
| title | Database and indexes backup |
|---|
| | Предупреждение |
|---|
| 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. |
- To stop Traffic Monitor services, enter the command:
iwtm stop Perform the backup: - 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
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.
| Информация |
|---|
| To specify the directories that contain the database, check the file content: |
- Perform indexes backup. To do this:
Go to the directory /opt/iw/tm5/etc and open the file indexer.conf file to view it. 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.
- Create the backup of
iw_adlibitum service configuration. To do this:Go to the directory /opt/iw/tm5/etc and open the file adlibitum.conf to view. 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.
|
| Раскрыть |
|---|
| title | Backup 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: | Раскрыть |
|---|
| /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
|
| Раскрыть |
|---|
| title | For 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
|
|
| Информация |
|---|
| 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: | Раскрыть |
|---|
| title | Updating the System over the installed one: |
|---|
| | Предупреждение |
|---|
| 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: 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. 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 - 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. Update packages. For this, enterTo 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. - 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. - If you use a remote database:
- Make sure the DBMS version you use is supported by Traffic Monitor. See Аппаратные и программные требования.
If DBMS version is actual, please skip this action. | Раскрыть |
|---|
| title | If DBMS needs to be upgraded: |
|---|
| - To stop Traffic Monitor services, run the command:
iwtm stop - Stop the DBMS.
Upgrade the DBMS to supported version. To do this, use the official instructions. | Информация |
|---|
| For PostgresSQL and PostgreSQL Pro you should also upgrade the service in use pgagent. |
- After upgrade is complete, run the DBMS but do not start Traffic Monitor services.
|
- 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:- Connect to the terminal of any node of the Investigation Centre cluster with installed Data Discovery, which connects to the Traffic Monitor database.
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 | Блок кода |
|---|
| title | Example 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. - To stop the pod, run the following command on the node with the
central label:
kubectl scale -n infowatch --replicas=0 deployment/technologies-central - Connect to the terminal of the server with Traffic Monitor again.
- 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.
- 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
Enter the command to go to Traffic Monitor distribution kit directory: cd /root
| Информация |
|---|
| 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
|
Automatic merging of Traffic Monitor configuration files of the old and new versions is implemented in the installer.
| Предупреждение |
|---|
| 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: | Раскрыть |
|---|
| title | Updating in text mode using server console |
|---|
| To update Traffic Monitor using server console, take the following steps: - 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. | Информация |
|---|
| 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. |
| Предупреждение |
|---|
| 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:  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;
| Раскрыть |
|---|
| title | If this option is selected: |
|---|
| - Select language to display the License Agreement:
- Read the License Agreement. To go to the next page, press Enter.
- 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. | Информация |
|---|
| 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. | Раскрыть |
|---|
| 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. 
To continue, type Y and press Enter. To exit the installer type n and press Enter. - 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.
- 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. |
- 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. 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.
| Информация |
|---|
| 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 stoppedstopped.
| Предупреждение |
|---|
| 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.
|
| Предупреждение |
|---|
| 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 |
| Предупреждение |
|---|
| 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. | Информация |
|---|
| If Consul service is configured incorrectly, the following warning message will be displayed: 
To finish installation press Enter. | Раскрыть |
|---|
| title | For correct work of System check and configure Consul service cluster |
|---|
| - Start Consul service with the command:
systemctl start iwtm-consul To check the service status enter the command:
systemctl status iwtm-consul
- To check Consul enter the command:
- 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 - To display information about cluster members:
consul members
- 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. |
- 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.
- 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. - Wait till completion of installer operation.
|
| Раскрыть |
|---|
| title | Updating 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: - On the server, where Traffic Monitor components are planned to update:
- Install
xauth utility using the command:
yum install xauth
- In
/etc/ssh/sshd_config configuration file uncomment the line "X11Forwarding yes". To do this, delete # placed before the line. - Save changes in configuration file.
- Restart SSH service using the command:
systemctl restart sshd
- On the computer, where the graphical mode is to be used:
- To connect to Traffic Monitor installation server you will require a SSH client with enabled X11 Forwarding option, e.g. PuTTY.
- 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.
- Run the application client which was previously configured to access to X Window System.
Connect to server, where Traffic Monitor components are planned to install, using selected SSH client. | Раскрыть |
|---|
| title | Example of PuTTY configuration window used to connect |
|---|
| 
|
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.
| Информация |
|---|
| 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. |
| Предупреждение |
|---|
| 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. You must accept the terms of the License Agreement before continuing with the update. For this: - Select language to display the License Agreement:

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

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

To continue press Next. - 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.
 - 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.
| Информация |
|---|
| In case Quick stop is selected, the stopped services will have failed status before the update. |
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. 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. |
- 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;
Wait for licenses when starting Infowatch Traffic Monitor services (if you are updating Traffic Monitor to version 7.16.2 or later) – start services . Otherwise, you need to restore System availability manually lateronly after licenses are distributed.
| Предупреждение |
|---|
| 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.
|
| Предупреждение |
|---|
| 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
|
| Предупреждение |
|---|
| 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: | Информация |
|---|
| If Consul service is configured incorrectly, the following warning message will be displayed: 
To finish installation press OK. | Раскрыть |
|---|
| title | For correct work of System check and configure Consul service cluster |
|---|
| - Start Consul service with the command:
systemctl start iwtm-consul To check the service status enter the command:
systemctl status iwtm-consul
- To check Consul enter the command:
- 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 - To display information about cluster members:
consul members
- 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. |
To finalise the installation press Next.
|
| Раскрыть |
|---|
| title | Updating 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 #. | Блок кода |
|---|
| language | c# |
|---|
| title | Parameter 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.
| Предупреждение |
|---|
| 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. | Блок кода |
|---|
| language | c# |
|---|
| title | Example 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 installationTo 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.
| Блок кода |
|---|
| language | c# |
|---|
| title | Example 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 |
| Предупреждение |
|---|
| 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. |
| Информация |
|---|
| 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. |
| Информация |
|---|
| If Consul service is configured incorrectly, the following warning message will be displayed: 
To finish installation press Enter. | Раскрыть |
|---|
| title | Check and configure cluster of Consul service for correct work of the System: |
|---|
| - Start Consul service with the command:
systemctl start iwtm-consul To check the service status enter the command:
systemctl status iwtm-consul
- To check Consul enter the command:
- 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 - To display information about cluster members:
consul members
- 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 fileThe table below contains full list of possible parameters used for update and their default values. | Scroll Table Layout |
|---|
| widths | 20%, 17%, 13%, 20%, 30% |
|---|
|
| Name | Description |
|---|
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) 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) 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.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 textaccept – 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. |
|
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 Объединение конфигурационных файлов).
| Информация |
|---|
| To merge successfully the configuration files you should read the following articles on the official site: |
- 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Объединение конфигурационных файлов).Starting from version 7.8.0, Traffic Monitor supports Content AI ContentReader Engine OCR extractor. After the update, the extractor operation modes will be configured in new profile files: /opt/iw/tm5/etc/CRProfile.ini and /opt/iw/tm5/etc/CRProfile_fast.ini. If you were using ABBYY Finereader OCR extractor before the update and made changes to the old profile files (FRProfile.ini or FRProfile_fast.ini), then to save these settings move them to the new files. Please note, that in the new version of the extractor, the names and values of the parameters may differ. before the update, it is recommended to not change it. Otherwise, properly merge it with the configuration file iwssid.lua.rpmnew(seeОбъединение конфигурационных файлов). 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
| Предупреждение |
|---|
| 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 |
|---|
| | Блок кода |
|---|
| language | js |
|---|
| title | Error record |
|---|
| linenumbers | true |
|---|
| 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 |
|---|
| | Блок кода |
|---|
| language | js |
|---|
| title | Error record |
|---|
| linenumbers | true |
|---|
| 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. |
- 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:
- Delete obsolete tasks by editing the
cron configuration file:
sudo crontab -e - Save changes and exit the configuration file editor.
- Restart the service:
systemctl reload crond
- 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.
| Информация |
|---|
| 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. |
- 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
- 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:- Connect to the node of the Intestigation Centre cluster.
- To start the pod, on the node with the
central label, run the command:
kubectl scale -n infowatch --replicas=1 deployment/technologies-central - Connect to the terminal of the server with Traffic Monitor again.
- 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.
- Enter the command to clear cache of packages manager:
yum clean all
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. | Информация |
|---|
| 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"
|
| Предупреждение |
|---|
| 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). |
| Информация |
|---|
| 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. |
|
| Раскрыть |
|---|
| title | Updating the System via installation and restoring data from the backup copy (for PostgreSQL) |
|---|
| | Якорь |
|---|
| Backup_Update |
|---|
| Backup_Update |
|---|
|
| Предупреждение |
|---|
| 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. |
- To stop Traffic Monitor services, run the command:
iwtm stop
- Check the number of events DB contains. For this, run the command:
psql postgres iwtm -c "select count(1) from object;"Starting from version 7.8.0. Traffic Monitor supports Content AI ContentReader Engine OCR extractor. If before updating the System, you were using ABBYY FineReader OCR extractor and made changes to the profile files (FRProfile.ini or FRProfile_fast.ini), save the customizations in order to restore them after installing the new Traffic Monitor version. "select count(1) from object;" - Complete database and indexes backup.
Install a new version of Traffic Monitor.
| Предупреждение |
|---|
| 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. - To stop services, run the commands:
iwtm stop Enter the command to stop the DB:
systemctl stop postgresql-13
| Информация |
|---|
| To restore the initial state of clean installation, you can copy the directories u01 and u02. |
- To change the access rights to the directory, enter the command:
chmod 777 /var/log/infowatch/update - Copy reserve DB copy so that it was located the same way it was placed initially.
- Change the owner of the directories by running the commands:
chown -R postgres:postgres /u01/
chown -R postgres:postgres /u02/ - Enter the command to go to the directory that contains scripts:
cd /tmp/iwtm_installer/scripts
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 | Информация |
|---|
| 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 |
- After the successfull update complete the command to check the status of DBMS service:
systemctl status postgresql-15 - 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 - Complete the step 2 of the instruction to compare the number of events in the DB before and after the update.
- 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). - 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/ - Run the commands:
sudo -u iwtm touch /opt/iw/tm5/www/backend/protected/runtime/first_run iwtm restart kicker After updating the System, operation modes for Content AI ContentReader Engine OCR extractor will be configured in new profile files: /opt/iw/tm5/etc/CRProfile.ini and /opt/iw/tm5/etc/CRProfile_fast.ini. If before updating the System, you were using ABBYY FineReader OCR extractor and made changes to old profile files (FRProfile.ini and FRProfile_fast.ini), then in order to save the settings, move them to the new files. Please note, that in the new version of the extractor, the names and values of the parameters may differ. - 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. 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. | Информация |
|---|
| 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. |
|
| Раскрыть |
|---|
| title | If you updated Traffic Monitor on Oracle Linux 8, AlmaLinux 8 or Rocky Linux 8 OS, recover the original OS release file. |
|---|
| For this:
- Run the command depending on OS:
- Confirm overwriting of the file. For this, enter "
yes" and press Enter. 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:

|
| Предупреждение |
|---|
| 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. |
|