| Предупреждение |
|---|
| Before updating the Traffic Monitor server, we recommend updating the DM server first. |
Traffic Monitor installation kit contains installation templates. Each template is a set of components to be activated after the System is deployed. For more details please see Схемы развертывания Системы и выбор типа установки. There are four templates available to install: - Database
- Indexer service
- Web console
- Traffic interceptors
All servers are to be updated, where Traffic Monitor components are installed. 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 is also available to reduce user's role. 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 delivered, but after 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. New services statuses will comply with statuses of initial installation. |
The packages unpack will start not when the installer will be started, but directly before the updating. | Предупреждение |
|---|
| Each server should have a unique correct FQDN. |
Before updating the System, perform the following steps: - Open the console of the server being updated:
To log into the System, enter login and password (you should enter as a root user). | Информация |
|---|
| The commands within the console are entered from the keyboard and must be confirmed by pressing Enter. So, if the instruction tells you to enter the command, it means that you should enter the command and then press Enter. Once the command is executed, the invitation is displayed again – it is ended with # or $ (depending on the user who logged in). Before typing the next command, make sure that an invitation is displayed at the command line. If you connect remotely via SSH, we recommend using the Screen utility. Thus you can avoid problems in case of a lost connection with the server being updated. When disconnecting from the utility, all the processes started are not to be interrupted and you may safely continue the System update. Warning! Using Screen is highly recommended when working with DB and updating DBMS. Basic commands: screen – start the utility;Ctrl+a d – disconnect from the screen (to be input within the screen window);screen -ls – display the list of screen running;screen -r – connect to the screen again;screen -r name – connect to a specific screen with «name»;exit – exit screen (to be input within the screen window).
|
| Раскрыть |
|---|
| title | If you update Traffic Monitor components 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:
Image Added | Информация |
|---|
| After updating Traffic Monitor, recover the original OS release file. For details, see below. |
|
Check the installation parameters of the server to be updated. Run the command:
cat /opt/iw/tm5/install_mode | Блок кода |
|---|
| language | text |
|---|
| title | Example of content |
|---|
| {
"product_type": "tme",
"version": "7.14.0.150",
"all_in_one": false,
"templates": {
"db": {
"local": true
},
"indexer": {},
}
} |
Record from the example corresponds to a Traffic Monitor server with the following parameters:
- Update the OS in case its version is not listed among supported versions in Аппаратные и программные требования article.
| Предупреждение |
|---|
| Before running the installation make sure that the server complies with the OS and network settings requirements. After update is complete the systemd unit file parameters will return to 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 should copy the files with their rights, users and groups saved. To do this, copy files into the Linux file system only (ex., 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. |
- On all servers stop TM services:
iwtm stop
- On the server installed with Web console template, create the backup of
iw_adlibitum service. For this:- Go to
/opt/iw/tm5/etc and open the file adlibitum.conf to view. In "ConfigDir" parameter you can see a relative path to the directory where the configuration of iw_adlibitum service is. The path is specified in relation to the content of "NookDir" parameter. Copy the directory to a separate section of server or to another server or to an external device.
- On the server installed with Indexer template, create the indexer backup copy:
Go to /opt/iw/tm5/etc and open the file indexer.conf to view. In "SphinxBaseDir" parameter you can see a relative path to the directory where the indexes are. In "ArchiveDir" parameter you can see a relative path to the indexers archive. The path is specified in relation to the content of "NookDir" parameter. Copy the directories to a separate section of server or to another server or to an external device.
On DBMS server: - Depending on the DBMS you use and the version of Traffic Monitor, enter tha command to stop the database:
service. For | Информация |
|---|
| To specify the directories that contain the database, check the file content: Create your database backup. By default, the database is stored in the directories /u01, /u02 etc. Store the database 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. |
- On all servers stop TM services:
iwtm stop
On the server installed with Web console template, create the backup of iw_adlibitum ii. Create a backup copy of indexes. To do this: /opt/iw/tm5/csw/oracle/database.conf (forOracle DBMS)Go to /opt/iw/tm5/etc directory and open
the file adlibitumto view indexer.conf
to view file.
In "
ConfigDirSphinxBaseDir" parameter
you can see contains a
relative path to
the directory where the configuration of iw_adlibitum service is. The path is specified in relation to the content of "NookDir" parameter. Copy the directory to a separate section of server or to another server or to an external device. - On the server installed with Indexer template, create the indexer backup copy:
Go to /opt/iw/tm5/etc and open the file indexer.conf to view. In "SphinxBaseDir" parameter you can see a relative path to the directory where the indexes are. In "ArchiveDir" parameter you can see a relative path to the indexers archive. The path is specified in relation to the content of "NookDir" parameter. Copy the directories to a separate section of server or to another server or to an external device.
On DBMS server: - Depending on the DBMS you use and the version of Traffic Monitor, enter tha command to stop the database:
| Информация |
|---|
| | To specify the directories that contain the database, check the file content: directory with indexes. "ArchiveDir" parameter contains a path to indexes archive. Path to archives is specified according to "NookDir" parameter content. Copy the directories with indexes and indexes archives to different section or to external device.
| Раскрыть |
|---|
| title | Backup configuration of 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.conf/etc/default/iwtm/etc/profile.d/iw-oracle-env.sh/etc/logrotate.d/iwtm-oracle-conf-server/opt/iw/tm5/etc/iw-oracle_client.sh/opt/iw/tm5/etc/iw-oracle_server.sh
|
| Раскрыть |
|---|
| 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-15.conf or /etc/pgagent/pgagent-15.conf depending on DBMS version/opt/iw/tm5/
|
cswpostgres/database.conf (for PostgreSQL DBMS)Create your database backup. By default, the database is stored in the directories /u01, /u02 etc. Store the database backup copies either on a separate section of the server or on another server or on an external device. ii. Create a backup copy of indexes. To do this: Go to postgresql/ – all files in the directory/opt/iw/tm5/etc
|
directory and open to view indexer file."SphinxBaseDir" parameter contains a path to directory with indexes. "ArchiveDir" parameter contains a path to indexes archive. Path to archives is specified according to "NookDir" parameter content. Copy the directories with indexes and indexes archives to different section or to external device.
|
| Раскрыть |
|---|
| title | Backup configuration of 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.conf/etc/default/iwtm/etc/profile.d/iw-oracle-env.sh/etc/logrotate.d/iwtm-oracle-conf-server/opt/iw/tm5/etc/iw-oracle_client.sh/opt/iw/tm5/etc/iw-oracle_server.sh
|
| Раскрыть |
|---|
| 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-15.conf or /etc/pgagent/pgagent-15.conf depending on DBMS version/opt/iw/tm5/etc/postgresql/ – all files in the directory/opt/iw/tm5/etc/postgres.conf
|
|
| Информация |
|---|
| Also the installer makes copies of environment configuration file in /tmp/iwtm_db_configs_backup directory. For user comport the installer recreates in directory the paths of original files which can be used to copy back to initial state. Copies created by installed are stored until successful upgrade is complete. Once completed these copies are to be removed. |
|
Depending on the version installed, choose the instruction: | Раскрыть |
|---|
| title | Updating the System over the installed one |
|---|
| | Якорь |
|---|
| 7.2 | 7.2 | | Предупреждение |
|---|
| We strongly recommend backing up the System, cloning it, and updating on this particular testing machine. You should stop the services using the installer and run the update in the following order: - Interceptors
- Indexer
- Web console
- Database
|
The updating order is as follows: Step 1. Updating All Servers. Step 2. Checking Consul Cluster. Step 3. Performing Healthcheck of System Internal Services. Step 4. Completing Servers Update. | Якорь |
|---|
7.2 Step 1 | 7.2 Step 1 | STEP 1. UPDATING ALL SERVERSTo update servers, please take the following actions as per each server: Copy files from InfoWatch Traffic Monitor distribution kit to /root directory. See the list of files for different OS and DBMS in Распределенная установка TM Enterprise, 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.14.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, enter:
yum upgrade The following request will be displayed:
Image Removed 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.
- In case you are using the Prometheus system, to stop the service, run the following command on the server installed with Database template:
systemctl stop iwtm-postgres_exporter – for PostgreSQL DBMS
systemctl stop iwtm-oracledb_exporter – for Oracle DBMS
On the server installed with Database template, before running the installer you are recommended to start database service in case it was stopped earlier. Depending on the DBMS you are using, enter one of the commands: systemctl start oracle (for DBMS Oracle)systemctl start postgresql-15 (for DBMS PostgreSQL)
Enter the command to go to Traffic Monitor distribution kit directory: cd /root
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_11.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.14.0.97-2024-11-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 is not stopped and other files are merged. Records concerning the errors will be added to the log file. |
Run the installer using one of the modes: | Раскрыть |
|---|
| title | Updating in text mode using server console |
|---|
| To update Traffic Monitor using server console: Start the Traffic Monitor installer running the command: ./iwtm-installer-x.x.x.xxx-rhel7
Our example command: ./iwtm-installer-7.14.0.97-rhel7
The installer will prepare to run. At this step, files are not unpacked. | Информация |
|---|
| Before the installer is started, you may see a warning that the file owner is wrong.
Image Removed Type Y and press Enter for the installer to change the file owner and continue running. Otherwise, you can enter N and press Enter, then edit the file owner manually or using the /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: Image Removed
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: Image RemovedYou 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. Image Removed- 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. | Информация |
|---|
| If components of Traffic Monitor are operating on several servers, then you should stop them one after another in the following order: - Interceptors
- Indexer
- Web console
- Database
|
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. The mode is available only on servers with interception components.
| Предупреждение |
|---|
| If interception and analysis components iw_cas, iw_pas are used on separate servers, then stopping interceptors and cleaning up file queues may be pending. We recommend to select a different mode or to stop the components manually. |
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 processing progress will be displayed. After the services are stopped, a message to start the updating and query to continue will be displayed.
Image Removed To continue type Y and press Enter. The unpacking of Traffic Monitor updating files will start. Implementation progress will be displayed. Image Removed 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. |
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.When updating is successfully completed the installer will offer starting the services which were stopped. | Информация |
|---|
| If Consul service is configured incorrectly, the following warning message will be displayed: Image Removed
To finish installation press Enter. If the error occurs, the installer will not launch Traffic Monitor services when the installation is finished, so you need to start them manually after the checking described in step 3 of the instruction. |
| Предупреждение |
|---|
| Do not start services before you complete the update of the DBMS server and start it. You can wait and start the services after the update or continue without starting them in order to perform it later manually. The services should be started in the order depending on the templates activated on them. 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. |
| Раскрыть |
|---|
| 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 |
| Информация |
|---|
| Also the installer makes copies of environment configuration file in /tmp/iwtm_db_configs_backup directory. For user comport the installer recreates in directory the paths of original files which can be used to copy back to initial state. Copies created by installed are stored until successful upgrade is complete. Once completed these copies are to be removed. |
Depending on the version installed, choose 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. You should stop the services using the installer and run the update in the following order: - Interceptors
- Indexer
- Web console
- Database
|
The updating order is as follows: Step 1. Updating All Servers. Step 2. Checking Consul Cluster. Step 3. Performing Healthcheck of System Internal Services. Step 4. Completing Servers Update. STEP 1. UPDATING ALL SERVERS To update servers, please take the following actions as per each server: Copy files from InfoWatch Traffic Monitor distribution kit to /root directory. See the list of files for different OS and DBMS in Распределенная установка TM Enterprise, 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. To update all packages except pgagent, run the command: yum upgrade --exclude="pgagent*" The following request will be displayed:
Image Added 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.
- In case you are using the Prometheus system, to stop the service, run the following command on the server installed with Database template:
systemctl stop iwtm-postgres_exporter – for PostgreSQL DBMS
systemctl stop iwtm-oracledb_exporter – for Oracle DBMS
On the server installed with Database template, before running the installer you are recommended to start database service in case it was stopped earlier. Depending on the DBMS you are using, enter one of the commands: systemctl start oracle (for DBMS Oracle)systemctl start postgresql-15 (for DBMS PostgreSQL)
Enter the command to go to Traffic Monitor distribution kit directory: cd /root
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_11.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-11-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 is not stopped and other files are merged. Records concerning the errors will be added to the log file. |
Run the installer using one of the modes: | Раскрыть |
|---|
| title | Updating in text mode using server console |
|---|
| To update Traffic Monitor using server console: 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
The installer will prepare to run. At this step, files are not unpacked. | Информация |
|---|
| Before the installer is started, you may see a warning that the file owner is wrong.
Image Added Type Y and press Enter for the installer to change the file owner and continue running. Otherwise, you can enter N and press Enter, then edit the file owner manually or using the /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: Image Added
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: Image AddedYou 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. Image Added
- 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. | Информация |
|---|
| If components of Traffic Monitor are operating on several servers, then you should stop them one after another in the following order: - Interceptors
- Indexer
- Web console
- Database
|
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. The mode is available only on servers with interception components.
| Предупреждение |
|---|
| If interception and analysis components iw_cas, iw_pas are used on separate servers, then stopping interceptors and cleaning up file queues may be pending. We recommend to select a different mode or to stop the components manually. |
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 processing progress will be displayed. After the services are stopped, a message to start the updating and query to continue will be displayed.
Image Added To continue type Y and press Enter. The unpacking of Traffic Monitor updating files will start. Implementation progress will be displayed. Image Added 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. |
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.When updating is successfully completed the installer will offer starting the services which were stopped.
| Предупреждение |
|---|
| 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 nodes (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 on all updated nodes.
|
| Информация |
|---|
| If Consul service is configured incorrectly, the following warning message will be displayed: Image Added
To finish installation press Enter. If the error occurs, the installer will not launch Traffic Monitor services when the installation is finished, so you need to start them manually after the checking described in step 3 of the instruction. |
| Предупреждение |
|---|
| Do not start services before you complete the update of the DBMS server and start it. You can wait and start the services after the update or continue without starting them in order to perform it later manually. The services should be started in the order depending on the templates activated on them. 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 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.
|
| Раскрыть |
|---|
| 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.1416.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 alert box: 
To fix this error press OK to dismiss, 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 alert box. |
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. 
| Информация |
|---|
| If components of Traffic Monitor are operating on several servers, then you should stop them one after another in the following order: Interceptors - Indexer
- Web console
- Database
|
- 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. The mode is available only on servers with interception components.
| Предупреждение |
|---|
| If interception and analysis components (iw_cas, iw_pas) are used on separate servers, then stopping interceptors and cleaning up file queues may be pending. We recommend selecting a different mode or to stop the components manually. |
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
- To finalise the installation press Next or wait till completion of DBMS server update.
|
| Раскрыть |
|---|
| 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 previosly created. | Блок кода |
|---|
| language | c# |
|---|
| title | Example of using parameter file: |
|---|
| ./iwtm-installer-7.1416.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.1416.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 alert box: 
To fix this error press Enter to dismiss, 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 alert box. |
| Информация |
|---|
| 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. If the error occurs, the installer will not launch Traffic Monitor services when the installation is finished, so you need to start them manually after the checking described in step 3 of the instruction. |
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 | Default value | Valid values | Description | Note |
|---|
force_upgrade
| 0 | 0,1 | Forcible switch to updating mode, even if the versions do not match |
| fix_incorrect_file_owners
| 0 | 0,1 | The parameter defines if the wrong owner of files should be changed before the update | If the files to be updated have a wrong owner, the update will be interrupted | cleanup_way
| wait_stop | quick_stop, wait_stop, clean_fq | Select the mode to stop services:quick_stop (no events processing);
wait_stop (wait until current events processing is complete);
clean_fq – (before stopping wait until all events are processed and the queues are cleared)
| If Traffic Monitor components are operating on several servers, then they should be stopped one after another in the following order: Interceptors - Indexer
- Web console
- Data base
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) If components of interception and components of analysis (iw_cas, iw_pas) are operating on different servers, then stopping interceptors cleaning file queues might hung. It is recommended to use other modes or to stop them manually. | start_services_after_upgrade
| 1 | 0,1 | The parameter defines if the installer should run the services after update | Do not start services before updating DBMS server. 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 nodes (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 on all updated nodes.
Do not start services before updating DBMS server. 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. To manage the monitoring system after the update 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. If Traffic Monitor components are operating on several servers, then they should be stopped one after another in the following order: - Data base
- Web console
- Indexer
- Interceptors
| eula | show,
accept
| Display the License Agreement text, Accept the License Agreement wait_for_licenses | 0 | 0, 1 | The parameter defines whether the installer should start services only after licenses are distributed. | The parameter is available starting with Traffic Monitor version 7.16.2. | eula |
| show,
accept
| Display the License Agreement text, 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 (please see Объединение конфигурационных файлов). | Информация |
|---|
| To merge successfully the configuration files please see the following articles: |
| Предупреждение |
|---|
| When updating, do not change files database.conf, consul.json. On the server installed with the Web console template, after merging in web.conf configuration file, in search_meta block, in hostname parameter please , specify DBMS server the IP address of the server with the Indexer template. |
On servers installed with Interceptors template, in /opt/iw/tm5/etc/scripts/ directory there should be a file iwssid.lua, it should be left with no changes in case it was not edited before the update. Otherwise it should be correctly merged with the file iwssid.lua.rpmnew (please see Объединение конфигурационных файлов). | Информация |
|---|
| All configuration to work In line was moved to luaengined.conf. |
- Check Consul cluster – see the description below.Starting from version
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.Check Consul cluster – see the description below.| Якорь |
|---|
| 7.2 Step 2 | 7.2 Step 2 | STEP 2. CHECKING CONSUL CLUSTERTo check Consul cluster take the following steps: Start Consul on all servers to be updated by running the command:
service iwtm-consul start Enter the STEP 2. CHECKING CONSUL CLUSTER To check Consul cluster take the following steps: - Start Consul on all servers to be updated by running the command:
service iwtm-consul start Enter the command to check status:
service iwtm-consul status - To check Consul on DBMS server (TME DB Server), enter the command:
- To get the IP-address of the primary server in the cluster (leader):
curl --noproxy 127.0.0.1 http://127.0.0.1:8500/v1/status/leader ; echo - To get the information about cluster members:
consul members
- If no response with the IP-address of the cluster leader, or not all servers are listed as cluster members, configure Consul cluster.
Recheck after configuration (step 2). - Perform health check of the System internal services – see the description below.
STEP 3. PERFORMING HEALTHCHECK OF SYSTEM INTERNAL SERVICES Start services iw_bookworm, iw_licensed, iw_updater and iw_kicker, check the services status. - Run command to start
iw_bookworm service:
iwtm start bookworm - Service may need some time to start. Enter the command to check the service status:
curl -s http://localhost:8500/v1/health/checks/iw-bookworm | python -mjson.tool The following information will be displayed as a result of command execution:
 - Check
"Node" and "Status" blocks:"Node" block should contain node's name (that has a service being checked) in Consul cluster;"Status" block should be "passing".
- There should be only one Enable autostart and run
iw_licensed service running on the cluster. Start :
iwtm enable iw_licensedservice using the command: iwtm start licensed
- The service may need some time to start. Enter the command to check the status of
iw_licensed service:
curl -s http://localhost:8500/v1/health/checks/iw-licensed | python -mjson.tool Complete action 3 of the current step. - Run command to start
iw_updater service:
iwtm start updater
- The service may need some time to start. Enter the command to check the status of iw_updater service:
curl -s http://localhost:8500/v1/health/checks/iw-updater | python -mjson.tool Complete action 3 of the current step. - To check
iw_kicker service you need to start iw_blackboard:
iwtm start blackboard - There should be only one
iw_kicker service running on the cluster. Start iw_kicker service using the command:
iwtm start kicker - The service may need some time to start. Check
/opt/iw/tm5/log/web-console-error.log file to check the status of iw_kicker service and find if any errors occurred during the update. Enter command:
grep -r 'error' /opt/iw/tm5/log/web-console-error.log || echo "All good" Make sure the command address is correct. If no errors found, the All good message will be displayed. - Run command to stop services:
iwtm stop - Finish update of DBMS server – see description below.
| Предупреждение |
|---|
| In case a service has not started successfully, check if there are errors in appropriate log file occured during the update. And contact InfoWatch technical service at support@infowatch.com. Also, you can check the support section on our site: www.infowatch.com/support Log files for checking: /opt/iw/tm5/log/bookworm.log – iw_bookworm service/opt/iw/tm5/log/updater.log – iw_updater service/opt/iw/tm5/log/licserv.log – iw_licensed service/opt/iw/tm5/log/web-console-error.log – iw_kicker service
To exclude errors, we recommend checking log files even if the services have been started successfully. Recommended logging level – not lower than INFO. A log file can be missing if no errors registered. |
STEP 4. COMPLETING SERVERS UPDATE To complete servers update, the following action are to be taken as per each of the servers: If the installer operation was not completed before, select the services running and finalise the update. In case the installer completed operation with no services started, run them manually or reboot the server to restart all the services. Use the following command:
reboot | Предупреждение |
|---|
| Components of Traffic Monitor should be started in the following order: Database - Web console
- Indexer
- Intercepters
|
| Предупреждение |
|---|
| 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 are using the Prometheus system and in case the server installed with Database template 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: 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 the System 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. | Предупреждение |
|---|
| If you have configured automatic synchronizations with LDAP servers, to guarantee the download of essences after update is completed, you should run the synchronising 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 stopOn the server installed with Database template, check the number of events DB contains. For this, run the command:
psql postgres iwtm -c "select count(1) from object;" Complete database and indexes backup.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) on the servers with Traffic interceptors template, save the customizations in order to restore them after installing the new Traffic Monitor version.Install a new version of Traffic Monitor.
| Информация |
|---|
| Unless you plan to change servers with Indexer, Web console and Interceptors templates (e.g. install a new OS or transfer templates to different servers), you can update them over the installed ones. In this case, skip steps 8-10 of this instruction. |
| Предупреждение |
|---|
| 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 servers with the new version of Traffic Monitor. To stop services on all servers, run the commandsAfter the update, synchronize the configuration (dictionaries) of the bookworm services on all Traffic Monitor servers. For this: On the server installed using Web console template, run the script with the command:
| Блок кода |
|---|
/opt/iw/tm5/bin/tools/propagate_compediums.sh |
- After you enter the command, specify the user on whose behalf the script will be run. To run the script, use the
root user or another one with the superuser rights. If the specified user does not exist on Traffic Monitor servers, the script will fail with an error. In this case, to continue, you need to create this user on all Traffic Monitor servers by means of OS. After that, run the script again. After xsd-schema validation, the script will ask you for a password to connect Traffic Monitor servers and copy files to them. If the password of the specified user is the same for all servers, enter it once to apply to all connections. If the password of the specified user differs depending on server, press Enter and enter a password for each server.
| Раскрыть |
|---|
| title | Example of password request for connection on behalf of the root user: |
|---|
| Image Added
|
- Wait for the script to complete. As a result, on each server the script will update dictionaries in the
/opt/iw/tm5/etc/config-perm/ folder and create backup copies of their previous version.
Enter the command to clear cache: 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 the System 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. | Предупреждение |
|---|
| If you have configured automatic synchronizations with LDAP servers, to guarantee the download of essences after update is completed, you should run the synchronising 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 - On the server installed with Database template:
Enter the command to stop the DB:
systemctl stop postgresql-15
, check the number of events DB contains. For this, run the command:
psql postgres iwtm -c "select count(1) from object;"
- Complete database and indexes backup.
Install a new version of Traffic Monitor.
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 --Unless you plan to change servers with Indexer, Web console and Interceptors templates (e.g. install a new OS or transfer templates to different servers), you can update them over the installed ones. In this case, skip steps 8-10 of this instruction. |
| Предупреждение |
|---|
| 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 servers with the new version of Traffic Monitor. - To stop services on all servers, run the commands:
iwtm stop - On the server installed with Database template:
Enter the command to stop the DB:
systemctl stop postgresql-15
| Информация |
|---|
| 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.1416.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.1416.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.
- On the server with Indexer template:
- Copy the backup copies of indexes so that the location and the rights were the same as they were initially.
If the initial location of indexes is not the default one, then you will have to specify it in the corresponding sections of the configuration files (see backup instructions). Change the owner of the directory by running the command:
chown -R iwtm:iwtm /var/lib/sphinx/ Command above contains the default location.
- On the server with Web console template:
- Copy the backup copy of
iw_adlibitum service configuration so that the location and the rights were the same as they were initially. If the initial location of iw_adlibitum service configuration is not the default one, then you will have to specify it in the corresponding sections of the configuration files (see backup instructions). Change the owner of the directory by running the command:
chown -R iwtm:iwtm /opt/iw/tm5/etc/adlibitum/
Command above contains the default location. Run the commands:
sudo -u iwtm touch /opt/iw/tm5/www/backend/protected/runtime/first_run
iwtm restart kicker
- On the servers with the Interceptors template, 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. Reboot all servers by running the following command on each of them:
reboot
| Предупреждение |
|---|
| You should start components of Traffic Monitor one after another in the following order: Database Reboot all servers by running the following command on each of them:
reboot
| Предупреждение |
|---|
| You should start components of Traffic Monitor one after another in the following order: Database - Web console
- Indexer
- Interceptors
|
Run 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 components on Oracle Linux 8, AlmaLinux 8 or Rocky Linux 8 OS, recover the original OS release file. |
|---|
| For this:
In Traffic Monitor 7.14, we have updated the supplied certificates and the public key that are used for connecting to the XAPI service via SSL. By default, the certificates and the key are stored in the folder /opt/iw/tm5/etc/cert. If you are updating Traffic Monitor from version 7.13 or earlier, and Data Discovery, Device Monitor, adapters, or other third-party services within your perimeter interact with Traffic Monitor using the XAPI service, make sure you factor in such a replacing of certificates and the public key. If you previously: - Used your own certificates and the key with names other than the default file names, the update will not affect the interaction of the services, because the files you added will not be deleted.
- Deleted the files supplied with the product and used your own certificates and the key with similar names, after updating, replace the certificates in Traffic Monitor with those you generated.
- Copied the certificates and the key supplied with Traffic Monitor to the folders of other products, adapters, or services, after updating, copy them again from the
/opt/iw/tm5/etc/cert folder.
To learn about installing or changing certificates: In Device Monitor Windows, see InfoWatch Device Monitor. Installation, Configuration and Administration Guide. Configuring validation of the remote server certificatesIn Device Monitor Linux, see InfoWatch Device Monitor for Linux. Installation guideIn Data Discovery, see InfoWatch Data Discovery. Administration Guide. Zones and Servers- 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 successfully 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:
Image Removed
| | Предупреждение |
|---|
| - Enter.
Check that the original release file is successfully 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:
Image Added
|
| Предупреждение |
|---|
| 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. |
|