Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
engine:7.0:monitoring [2014/02/10 17:13]
achey created
engine:7.0:monitoring [2018/02/01 18:15] (current)
Line 1: Line 1:
  
-\\ 
 ===== Start-Stop-Status-Restart ===== ===== Start-Stop-Status-Restart =====
 \\  \\ 
-Every services can be start stop or restart with the ltud commande.+Every services ​that composed LTU engine ​can be started, stopped ​or restarted using the //ltud// commande.
  
 Logged in as root:  Logged in as root: 
-/​etc/​init.d/​ltud [option]+/​etc/​init.d/​ltud [options]
 \\  \\ 
 options: ​ start, stop, status all, restart options: ​ start, stop, status all, restart
  
  
-===== Log monitoring =====+===== Logging ===== 
 + 
 +==== Monitor logs ==== 
 + 
 +Logs of the product are order by important state: 
 +  * INFO : Regular logging information. 
 +  * WARNING : Potential issue, with no repercussion on the product. 
 +  * ERROR : Error in the product this could affect the product. 
 +  * CRITICAL : Something is wrong, contact support@ltutech.com 
 + 
 +When monitoring ​log, you can filter them according to this various levels.  
 + 
 +==== How to forward logs to syslog ==== 
 +\\ 
 +  * Edit your spec file located here: ///​opt/​ltutengine/​config/​ltuengine.spec//​ 
 +   
 +  * Update and add these lines: 
 +<​code>​ 
 +    "​SYSLOG_HANDLER_LOG_LEVEL":​ "​INFO",​ 
 +    "​SYSLOG_LOG_FORMAT_PREFIX":​ "​saas-standalone",​ 
 +    "​SYSLOG_LOG_FORMAT":​ "​%(SYSLOG_LOG_FORMAT_PREFIX)s[%%(threadName)s] %%(levelname)s [%%(name)s::​%%(funcName)s] %%(message)s",​ 
 +    "​SYSLOG_FACILITY":​ "​LOG_LOCAL7",​ 
 +    "​ENABLE_SYSLOG":​ "​True",​ 
 +    "​ENABLE_FILE_LOGGING":​ "​False",​ 
 +</​code>​ 
 +\\ 
 +  * Then run this command to reload your configuration:​ 
 + 
 +<​code>​ 
 +su - ltu 
 +ltusaas-generate-config-files -i /​opt/​ltutengine/​config/​ltuengine.spec -m all -o /​opt/​ltu/​env/​run/​cache/​config 
 +ltud restart all 
 +</​code>​ 
 + 
 +===== PID ===== 
 + 
 +All PID files can be found on /​opt/​ltuengine/​run/​ 
 + 
 + ===== With Nagios/NRPE ===== 
 + 
 + 
 +  command[check_manager]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "​manager service"​ 
 +  command[check_app_worker]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "​application worker"​ 
 +  command[check_admin_worker]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "​administrator worker"​ 
 +  command[check_collector]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "​collector service"​ 
 +  command[check_processor]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "​processor service"​ 
 +  command[check_weki]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "weki service"​ 
 +  command[check_frontoffice]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​LTU"​ -a "​frontoffice service"​ 
 +    command[check_rabbit]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​beam.smp"​ -a "​rabbit"​ 
 +   
 +  command[check_pgsql]=/​usr/​lib/​nagios/​plugins/​check_procs -w 1:2 -c 1:2 -C "​postgres"​ -a "-D /​var/​lib/​postgresql/​9.1/​main -c config_file=/​etc/​postgresql/​9.1/​main/​postgresql.conf"​ 
 +   
 +    command[check_license]=/​usr/​lib/​nagios/​plugins/​check_license_date /​opt/​ltuengine/​config/​license.lic 
 + 
 + 
 + 
 +  * Scripts: 
 + 
 +https://​github.com/​ltutech/​exploit/​tree/​master/​nagios