If you experience an issue when sending events via PushAPI, try looking into: - Web interface problems. To activate the debug mode on the server:
- Connect to the server using SSH.
- Open the
/opt/iw/tm5/etc/web.conf file for editing. - Enable the debug mode by setting the
"debug": true value. - Save the file.
- Refresh the web page.
- In your browser search box, go to the debug console to see detailed logs on requests sent to the API:
https://<server_IP>/api/debug/default.
- Missing trusted certificates. Add self-signed certificates as trusted certificates. Paths to certificates:
- Web:
/opt/iw/tm5/etc/certification/web-server.pem ; - XAPI:
/opt/iw/tm5/etc/cert/server.pem;
- File queues.To see all file and error queues on the Traffic Monitor server, go to
opt/iw/tm5/queue and opt/iw/tm5/errors respectively. - Files with extraction errors. In the
/opt/iw/tm5/etc/extractors.conf configuration file, there is a Dreamcatcher parameter for each extractor. The folder with the files is specified in the parameter. - Operation of the iw_xapi_xapi and iw_xapi_puppy services. To get information from different program component loggers:
Step 1. - Go to the Traffic Monitor server and open the
/opt/iw/tm5/etc/xapi.conf configuration file for editing.
Step 2. Set the logger values:
| Блок кода |
|---|
| "GlobalLevel": "debug", |
"thrift_handler": "warning" |
In the code above:
- file queue logs;
RawMailDump – raw mail data;puppy
– PushAPI - – PushAPI logger;
thrift_handler – data on thrift structures, which are received via the network. Used for traffic check
.
– root - – root logger designed for reading from a database, index creation, archiving and index removal.
Step 3. Step 4. Run the commands:
| Блок кода |
|---|
| iwtm restsrt xapi_xapi |
Step 5. |