1.更新告警阈值sql; 2.tsg_diagnose告警阈值修改为动态值,从tsg_cli_env.ini文件获取; 3.把tsg_cluster_register轮询调用改为系统服务,启动后只执行一次;

This commit is contained in:
lijia
2020-11-13 19:55:17 +08:00
parent 465622889c
commit 1e23a971b6
12 changed files with 225 additions and 169 deletions

View File

@@ -74,17 +74,18 @@
dest: "/opt/tsg/etc/tsg_series.json"
tags: template
- name: "copy tsg-monitor.service to destination server"
#2020-11-13 lijia modify
- name: "copy tsg_cluster_register.service to destination server"
synchronize:
src: "{{ role_path }}/files/tsg-monitor.service"
src: "{{ role_path }}/files/tsg_cluster_register.service"
dest: "/usr/lib/systemd/system"
- name: "copy tsg-monitor.sh to destination server"
copy:
src: "{{ role_path }}/files/tsg-monitor.sh"
dest: "/opt/tsg/tsg-monitor/"
mode: 0755
# 2020-11-13 lijia close
#- name: "copy tsg-monitor.sh to destination server"
# copy:
# src: "{{ role_path }}/files/tsg-monitor.sh"
# dest: "/opt/tsg/tsg-monitor/"
# mode: 0755
- name: "copy rsyslog.conf to destination server"
synchronize:
@@ -95,10 +96,11 @@
systemd:
name: rsyslog
state: restarted
- name: "enable tsg-monitor service"
- name: "enable tsg_cluster_register.service"
systemd:
name: tsg-monitor
name: tsg_cluster_register
enabled: yes
daemon_reload: yes
state: restarted