Objective
This article explains how to check the status of the SYSTRAN services and its dependencies (from the web interface and the terminal). It also shows how to check their logs.
Prerequisites
- SES 8.X or SPNS 9.X installed
- Access to Advanced configuration > Translation resources page (you can ask your SystemAdmin to provide you with an access) : https://your_server_name.mysystran.com/advancedConfiguration/translationResources
- Access to the terminal of the server hosting SYSTRAN (as root user)
List of the SYSTRAN services and its dependencies
SYSTRAN Services:
- Systran Activity Collector (from SPNS 9.7)
- Systran Corpus Manager
- Systran DctIndexer
- Systran Gdict
- Systran Lookup
- Systran Routing server
- Systran Enterprise Server Console
- Systran Enterprise Server File Translation Consumer
- Systran Entreprise Server Translation Gateway
- Systran Enterprise Server Poller
- Systran TM-Indexer
- Systran Translation Dispatcher
- Systran Translation Resource Monitor
- Systran Translation Resouce Store Console
- Systran Translation Resource Store Poller
Third party dependency softwares:
- MongoDB
- RabbitMQ
- Redis
- Docker
- Elasticsearch
Steps to follow
Check of status
There are two ways to check the status of the above stated Third party services and SYSTRAN components: from the web interface and from the terminal.
1. From the web interface
Go to the Avanced configuration tab of your menu, then choose Services: https://your_server_address/advancedConfiguration/services
Here, the SYSTRAN Enterprise Server Poller reports all information involving the system's status, of all components: RabbitMQ, MongoDB, Redis, Computing Node, Dispatcher, Routing Server etc.
The background color of each component indicates its status: green (running) to indicate success and red (fail) to indicate an error. If the SES Poller is not running or has not reported anything in some time, the background will be orange and a message that the 'status is not up to date' will be displayed.
2. From the server terminal
Below are a few commands:
- to list and check the status of all the SYSTRAN services:
systemctl -a | grep systran
- to start/stop/restart/status one particular SYSTRAN service:
systemctl [start/stop/restart/status] systran_service_name
- to start/stop/restart/status one dependency service:
systemctl [start/stop/restart/status] mongod
systemctl [start/stop/restart/status] rabbitmq-server
systemctl [start/stop/restart/status] redis
systemctl [start/stop/restart/status] docker
systemctl [start/stop/restart/status] elasticsearch
Check of Systran services' logs
It is not possible to check them via the web interface. The terminal is needed.
Below are some commands:
- to show all SYSTRAN services' logs:
journalctl -fu systran-\*
- to show the log of one particular SYSTRAN service:
journalctl -u systran_service_name
Check the logs of Systran dependencies
The logs of each dependency service can be checked using the terminal.
MongoDB
Log files are located under /var/log/mongodb/
You can also do the command below to check the logs:
journalctl -u mongod.service
RabbitMQ
Log files are located under /var/log/rabbitmq/
You can also do the command below to check the logs:
journalctl -u rabbitmq-server.service
Redis
Log files are located under /var/log/redis/
You can also do the command below to check the logs:
journalctl -u redis.service
Docker
The logs of docker can be checked with the command:
journalctl -u docker
Elasticsearch
Log files are located under /var/log/elasticsearch/
You can also do the command below to check the logs:
journalctl -u elasticsearch.service