Compare commits
9 Commits
devmgmt_ve
...
TEMP_20201
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
285e302374 | ||
|
|
3b9b3c3c04 | ||
|
|
709ba7a80e | ||
|
|
f15cb784c6 | ||
|
|
ae637dc7e2 | ||
|
|
e9c4747c57 | ||
|
|
8694b7025f | ||
|
|
d9db681492 | ||
|
|
1e23a971b6 |
31
20201121_inc_update.yml
Normal file
31
20201121_inc_update.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
- hosts: blade-mxn
|
||||||
|
roles:
|
||||||
|
- tsg-cli-mxn
|
||||||
|
- oam_cli_agent_mxn
|
||||||
|
- oam_core
|
||||||
|
|
||||||
|
- hosts: blade-mcn0
|
||||||
|
roles:
|
||||||
|
- tsg-cli-mcn0
|
||||||
|
- setup_mariadb
|
||||||
|
- oam_cli_agent
|
||||||
|
|
||||||
|
- hosts: blade-mcn1
|
||||||
|
roles:
|
||||||
|
- tsg-cli-mcn1
|
||||||
|
- oam_cli_agent
|
||||||
|
|
||||||
|
- hosts: blade-mcn2
|
||||||
|
roles:
|
||||||
|
- tsg-cli-mcn2
|
||||||
|
- oam_cli_agent
|
||||||
|
|
||||||
|
- hosts: blade-mcn3
|
||||||
|
roles:
|
||||||
|
- tsg-cli-mcn3
|
||||||
|
- oam_cli_agent
|
||||||
|
|
||||||
|
- hosts: blade-mxn
|
||||||
|
roles:
|
||||||
|
- oam_mxn_start
|
||||||
|
|
||||||
@@ -34,15 +34,25 @@ mariadb:
|
|||||||
|
|
||||||
oam:
|
oam:
|
||||||
cluster_port: 880
|
cluster_port: 880
|
||||||
core_port: 880
|
core_port: 1180
|
||||||
cli_agent_port: 822
|
cli_agent_port: 1122
|
||||||
snmp_port: 1611
|
snmp_port: 1611
|
||||||
snmptrapd_ip: "127.0.0.1"
|
snmptrapd_ip: "127.0.0.1"
|
||||||
snmptrapd_port: 164
|
snmptrapd_port: 164
|
||||||
mcn0_ip: "192.168.100.1"
|
mcn0_ip: "192.168.100.1"
|
||||||
|
alarm_cpu_critical_high: 90
|
||||||
|
alarm_cpu_major_high: 85
|
||||||
|
alarm_mem_critical_high: 90
|
||||||
|
alarm_mem_major_high: 85
|
||||||
|
alarm_disk_critical_high: 90
|
||||||
|
alarm_disk_major_high: 85
|
||||||
|
alarm_interface_critical_high: "0.0005"
|
||||||
|
alarm_interface_major_high: "0.0001"
|
||||||
|
alarm_app_network_critical_high: "0.0005"
|
||||||
|
alarm_app_network_major_high: "0.0001"
|
||||||
|
|
||||||
tsg_cli:
|
tsg_cli:
|
||||||
rpm_file_name: "tsg-cli-1.1.1.ea016fc-1.el7.x86_64.rpm"
|
rpm_file_name: "tsg-cli-1.1.8.dc13c5d-1.el7.x86_64.rpm"
|
||||||
|
|
||||||
ha_master:
|
ha_master:
|
||||||
instance_state: MASTER
|
instance_state: MASTER
|
||||||
|
|||||||
@@ -1,39 +1,13 @@
|
|||||||
- name: "copy oam_cli_agent.rpm to destination server"
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/"
|
|
||||||
dest: /tmp
|
|
||||||
|
|
||||||
- name: "install oam_cli_agent"
|
|
||||||
yum:
|
|
||||||
name:
|
|
||||||
- /tmp/oam_cli_agent-1.0-1.0.x86_64.rpm
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: "bak snmpd.conf"
|
|
||||||
shell: cp -rf /usr/share/snmp/snmpd.conf /usr/share/snmp/snmpd.conf_origin
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: "Templates snmpd.conf"
|
|
||||||
template:
|
|
||||||
src: "{{role_path}}/templates/snmpd.conf"
|
|
||||||
dest: /usr/share/snmp/snmpd.conf
|
|
||||||
tags: template
|
|
||||||
|
|
||||||
- name: "Templates oam_cli_agent.service"
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/oam_cli_agent.service.j2"
|
|
||||||
dest: /usr/lib/systemd/system/oam_cli_agent.service
|
|
||||||
|
|
||||||
- name: "Templates application.properties.j2"
|
- name: "Templates application.properties.j2"
|
||||||
template:
|
template:
|
||||||
src: "{{ role_path }}/templates/application.properties.j2"
|
src: "{{ role_path }}/templates/application.properties.j2"
|
||||||
dest: /opt/tsg/cli_agent/application.properties
|
dest: /opt/tsg/cli_agent/application.properties
|
||||||
|
|
||||||
- name: "Start snmpd"
|
|
||||||
systemd:
|
- name: "Templates oam_cli_agent.service"
|
||||||
name: snmpd
|
template:
|
||||||
state: restarted
|
src: "{{ role_path }}/templates/oam_cli_agent.service.j2"
|
||||||
enabled: yes
|
dest: /usr/lib/systemd/system/oam_cli_agent.service
|
||||||
|
|
||||||
- name: "Start oam_cli_agent"
|
- name: "Start oam_cli_agent"
|
||||||
systemd:
|
systemd:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Description=oam_cli_agent daemon
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
ExecStartPre=/usr/bin/mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
Environment=OAM_DIR=/opt/tsg/cli_agent/
|
Environment=OAM_DIR=/opt/tsg/cli_agent/
|
||||||
ExecStart=/usr/lib/jvm/{{ java_version }}/bin/java -jar ${OAM_DIR}oam_cli_agent.jar --spring.config.location=${OAM_DIR}application.properties,${OAM_DIR}application-centos2.properties --logging.file=${OAM_DIR}oam-cli-agent.log
|
ExecStart=/usr/lib/jvm/{{ java_version }}/bin/java -jar ${OAM_DIR}oam_cli_agent.jar --spring.config.location=${OAM_DIR}application.properties,${OAM_DIR}application-centos2.properties --logging.file=${OAM_DIR}oam-cli-agent.log
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +1,13 @@
|
|||||||
- name: "copy oam_cli_agent_mxn.rpm to destination server"
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/"
|
|
||||||
dest: /tmp
|
|
||||||
|
|
||||||
- name: "install oam_cli_agent_mxn"
|
|
||||||
yum:
|
|
||||||
name:
|
|
||||||
- /tmp/oam_cli_agent_mxn-1.0-1.0.x86_64.rpm
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: "Templates oam_cli_agent_mxn.service"
|
- name: "Templates oam_cli_agent_mxn.service"
|
||||||
template:
|
template:
|
||||||
src: "{{ role_path }}/templates/oam_cli_agent_mxn.service.j2"
|
src: "{{ role_path }}/templates/oam_cli_agent_mxn.service.j2"
|
||||||
dest: /usr/lib/systemd/system/oam_cli_agent_mxn.service
|
dest: /usr/lib/systemd/system/oam_cli_agent_mxn.service
|
||||||
|
|
||||||
- name: "Templates application.properties.j2"
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/application.properties.j2"
|
|
||||||
dest: /opt/tsg/cli_agent/application.properties
|
|
||||||
|
|
||||||
#- name: "Start oam_cli_agent_mxn"
|
- name: "Start oam_cli_agent_mxn"
|
||||||
# systemd:
|
systemd:
|
||||||
# name: oam_cli_agent_mxn
|
name: oam_cli_agent_mxn
|
||||||
# state: restarted
|
state: restarted
|
||||||
# enabled: yes
|
enabled: yes
|
||||||
# daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ Description=oam_cli_agent daemon
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=OAM_DIR=/opt/tsg/cli_agent/
|
Environment=OAM_DIR=/opt/tsg/cli_agent/
|
||||||
|
ExecStartPre=/usr/bin/mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
ExecStart=/usr/lib/jvm/{{ java_version }}/bin/java -jar ${OAM_DIR}oam_cli_agent.jar --spring.config.location=${OAM_DIR}application.properties,${OAM_DIR}application-centos2.properties --logging.file=${OAM_DIR}oam-cli-agent.log
|
ExecStart=/usr/lib/jvm/{{ java_version }}/bin/java -jar ${OAM_DIR}oam_cli_agent.jar --spring.config.location=${OAM_DIR}application.properties,${OAM_DIR}application-centos2.properties --logging.file=${OAM_DIR}oam-cli-agent.log
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Binary file not shown.
@@ -1,10 +1,10 @@
|
|||||||
- name: "judge tsg_oam"
|
- name: "judge tsg_oam"
|
||||||
shell: mysql -uroot -p111111 -e "show databases;" |grep tsg_oam
|
shell: mysql -u {{ mariadb.username }} -p{{ mariadb.password }} -e "show databases;" |grep tsg_oam
|
||||||
register: return
|
register: return
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: "set tsg_oam database"
|
#- name: "set tsg_oam database"
|
||||||
shell: mysql -uroot -p{{ mariadb.password }} -e "create database tsg_oam"
|
# shell: mysql -uroot -p{{ mariadb.password }} -e "create database tsg_oam"
|
||||||
#when: return.rc != 0
|
#when: return.rc != 0
|
||||||
|
|
||||||
- name: "Templates tsg_threshold.sql"
|
- name: "Templates tsg_threshold.sql"
|
||||||
|
|||||||
@@ -37,115 +37,115 @@ CREATE TABLE `tsg_threshold` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of tsg_threshold
|
-- Records of tsg_threshold
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `tsg_threshold` VALUES ('1', '{{ SN }}_mxn_hardware', 'CMM_TEMP', '55', '-10', '46', '-5', '39', '0');
|
INSERT INTO `tsg_threshold` VALUES ('1', '{{ SN }}_mxn_hardware', 'CMM_TEMP', '55', '-10', '46', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('2', '{{ SN }}_mxn_network_port_1', 'ifInUcastPkts', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('2', '{{ SN }}_mxn_network_port_1', 'ifInUcastPkts', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('3', '{{ SN }}_mxn_hardware', 'COME_TEMP', '90', '-10', '76', '-5', '63', '0');
|
INSERT INTO `tsg_threshold` VALUES ('3', '{{ SN }}_mxn_hardware', 'COME_TEMP', '90', '-10', '76', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('4', '{{ SN }}_mxn_hardware', 'RRC_TEMP', '90', '-10', '76', '-5', '63', '0');
|
INSERT INTO `tsg_threshold` VALUES ('4', '{{ SN }}_mxn_hardware', 'RRC_TEMP', '90', '-10', '76', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('5', '{{ SN }}_mxn_hardware', 'P1V', '1.15', '0.85', '1.1', '0.9', '1.05', '0.95');
|
INSERT INTO `tsg_threshold` VALUES ('5', '{{ SN }}_mxn_hardware', 'P1V', '1.15', '0.85', '1.1', '0.9', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('6', '{{ SN }}_mxn_hardware', 'PVDDS', '1.07', '0.71', '1.04', '0.73', '1', '0.76');
|
INSERT INTO `tsg_threshold` VALUES ('6', '{{ SN }}_mxn_hardware', 'PVDDS', '1.07', '0.71', '1.04', '0.73', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('7', '{{ SN }}_mxn_hardware', 'PVDDF', '1.12', '0.71', '1.1', '0.73', '1.05', '0.76');
|
INSERT INTO `tsg_threshold` VALUES ('7', '{{ SN }}_mxn_hardware', 'PVDDF', '1.12', '0.71', '1.1', '0.73', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('8', '{{ SN }}_mxn_hardware', 'P3V3', '3.636', '2.964', '3.535', '3.066', '3.475', '3.139');
|
INSERT INTO `tsg_threshold` VALUES ('8', '{{ SN }}_mxn_hardware', 'P3V3', '3.636', '2.964', '3.535', '3.066', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('9', '{{ SN }}_mxn_hardware', 'P5V', '5.745', '4.234', '5.494', '4.486', '5.242', '4.738');
|
INSERT INTO `tsg_threshold` VALUES ('9', '{{ SN }}_mxn_hardware', 'P5V', '5.745', '4.234', '5.494', '4.486', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('10', '{{ SN }}_mxn_hardware', 'P12V', '13.583', '10.415', '13.072', '10.926', '12.51', '11.488');
|
INSERT INTO `tsg_threshold` VALUES ('10', '{{ SN }}_mxn_hardware', 'P12V', '13.583', '10.415', '13.072', '10.926', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('11', '{{ SN }}_mxn_hardware', 'P1V_RT', '1.15', '0.85', '1.1', '0.9', '1.05', '0.95');
|
INSERT INTO `tsg_threshold` VALUES ('11', '{{ SN }}_mxn_hardware', 'P1V_RT', '1.15', '0.85', '1.1', '0.9', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('12', '{{ SN }}_mxn_hardware', 'Fan_1', '9472', '512', '8672', '672', '7872', '832');
|
INSERT INTO `tsg_threshold` VALUES ('12', '{{ SN }}_mxn_hardware', 'Fan_1', '9472', '512', '8672', '672', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('13', '{{ SN }}_mxn_hardware', 'Fan_2', '9472', '512', '8672', '672', '7872', '832');
|
INSERT INTO `tsg_threshold` VALUES ('13', '{{ SN }}_mxn_hardware', 'Fan_2', '9472', '512', '8672', '672', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('14', '{{ SN }}_mxn_hardware', 'Fan_3', '9472', '512', '8672', '672', '7872', '832');
|
INSERT INTO `tsg_threshold` VALUES ('14', '{{ SN }}_mxn_hardware', 'Fan_3', '9472', '512', '8672', '672', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('15', '{{ SN }}_mcn0_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0');
|
INSERT INTO `tsg_threshold` VALUES ('15', '{{ SN }}_mcn0_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('16', '{{ SN }}_mcn1_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0');
|
INSERT INTO `tsg_threshold` VALUES ('16', '{{ SN }}_mcn1_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('17', '{{ SN }}_mcn2_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0');
|
INSERT INTO `tsg_threshold` VALUES ('17', '{{ SN }}_mcn2_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('18', '{{ SN }}_mcn3_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0');
|
INSERT INTO `tsg_threshold` VALUES ('18', '{{ SN }}_mcn3_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('19', '{{ SN }}_mcn0_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125');
|
INSERT INTO `tsg_threshold` VALUES ('19', '{{ SN }}_mcn0_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('20', '{{ SN }}_mcn1_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125');
|
INSERT INTO `tsg_threshold` VALUES ('20', '{{ SN }}_mcn1_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('21', '{{ SN }}_mcn2_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125');
|
INSERT INTO `tsg_threshold` VALUES ('21', '{{ SN }}_mcn2_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('22', '{{ SN }}_mcn3_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125');
|
INSERT INTO `tsg_threshold` VALUES ('22', '{{ SN }}_mcn3_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('23', '{{ SN }}_mcn0_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1');
|
INSERT INTO `tsg_threshold` VALUES ('23', '{{ SN }}_mcn0_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('24', '{{ SN }}_mcn1_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1');
|
INSERT INTO `tsg_threshold` VALUES ('24', '{{ SN }}_mcn1_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('25', '{{ SN }}_mcn2_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1');
|
INSERT INTO `tsg_threshold` VALUES ('25', '{{ SN }}_mcn2_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('26', '{{ SN }}_mcn3_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1');
|
INSERT INTO `tsg_threshold` VALUES ('26', '{{ SN }}_mcn3_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('27', '{{ SN }}_mcn0_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('27', '{{ SN }}_mcn0_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('28', '{{ SN }}_mcn1_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('28', '{{ SN }}_mcn1_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('29', '{{ SN }}_mcn2_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('29', '{{ SN }}_mcn2_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('30', '{{ SN }}_mcn3_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('30', '{{ SN }}_mcn3_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('31', '{{ SN }}_mcn0_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('31', '{{ SN }}_mcn0_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('32', '{{ SN }}_mcn1_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('32', '{{ SN }}_mcn1_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('33', '{{ SN }}_mcn2_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('33', '{{ SN }}_mcn2_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('34', '{{ SN }}_mcn3_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137');
|
INSERT INTO `tsg_threshold` VALUES ('34', '{{ SN }}_mcn3_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('35', '{{ SN }}_mcn0_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12');
|
INSERT INTO `tsg_threshold` VALUES ('35', '{{ SN }}_mcn0_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('36', '{{ SN }}_mcn1_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12');
|
INSERT INTO `tsg_threshold` VALUES ('36', '{{ SN }}_mcn1_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('37', '{{ SN }}_mcn2_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12');
|
INSERT INTO `tsg_threshold` VALUES ('37', '{{ SN }}_mcn2_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('38', '{{ SN }}_mcn3_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12');
|
INSERT INTO `tsg_threshold` VALUES ('38', '{{ SN }}_mcn3_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('39', '{{ SN }}_mcn0_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74');
|
INSERT INTO `tsg_threshold` VALUES ('39', '{{ SN }}_mcn0_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('40', '{{ SN }}_mcn1_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74');
|
INSERT INTO `tsg_threshold` VALUES ('40', '{{ SN }}_mcn1_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('41', '{{ SN }}_mcn2_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74');
|
INSERT INTO `tsg_threshold` VALUES ('41', '{{ SN }}_mcn2_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('42', '{{ SN }}_mcn3_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74');
|
INSERT INTO `tsg_threshold` VALUES ('42', '{{ SN }}_mcn3_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('43', '{{ SN }}_mcn0_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('43', '{{ SN }}_mcn0_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('44', '{{ SN }}_mcn1_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('44', '{{ SN }}_mcn1_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('45', '{{ SN }}_mcn2_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('45', '{{ SN }}_mcn2_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('46', '{{ SN }}_mcn3_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('46', '{{ SN }}_mcn3_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('47', '{{ SN }}_mcn0_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('47', '{{ SN }}_mcn0_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('48', '{{ SN }}_mcn1_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('48', '{{ SN }}_mcn1_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('49', '{{ SN }}_mcn2_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('49', '{{ SN }}_mcn2_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('50', '{{ SN }}_mcn3_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352');
|
INSERT INTO `tsg_threshold` VALUES ('50', '{{ SN }}_mcn3_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('51', '{{ SN }}_mcn0_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902');
|
INSERT INTO `tsg_threshold` VALUES ('51', '{{ SN }}_mcn0_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('52', '{{ SN }}_mcn1_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902');
|
INSERT INTO `tsg_threshold` VALUES ('52', '{{ SN }}_mcn1_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('53', '{{ SN }}_mcn2_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902');
|
INSERT INTO `tsg_threshold` VALUES ('53', '{{ SN }}_mcn2_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('54', '{{ SN }}_mcn3_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902');
|
INSERT INTO `tsg_threshold` VALUES ('54', '{{ SN }}_mcn3_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('55', '{{ SN }}_mcn0_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('55', '{{ SN }}_mcn0_hardware', 'Temp_LL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('56', '{{ SN }}_mcn1_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('56', '{{ SN }}_mcn1_hardware', 'Temp_LL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('57', '{{ SN }}_mcn2_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('57', '{{ SN }}_mcn2_hardware', 'Temp_LL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('58', '{{ SN }}_mcn3_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('58', '{{ SN }}_mcn3_hardware', 'Temp_LL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('59', '{{ SN }}_mcn0_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('59', '{{ SN }}_mcn0_hardware', 'Temp_LR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('60', '{{ SN }}_mcn1_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('60', '{{ SN }}_mcn1_hardware', 'Temp_LR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('61', '{{ SN }}_mcn2_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('61', '{{ SN }}_mcn2_hardware', 'Temp_LR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('62', '{{ SN }}_mcn3_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('62', '{{ SN }}_mcn3_hardware', 'Temp_LR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('63', '{{ SN }}_mcn0_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('63', '{{ SN }}_mcn0_hardware', 'Temp_PCH', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('64', '{{ SN }}_mcn1_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('64', '{{ SN }}_mcn1_hardware', 'Temp_PCH', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('65', '{{ SN }}_mcn2_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('65', '{{ SN }}_mcn2_hardware', 'Temp_PCH', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('66', '{{ SN }}_mcn3_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('66', '{{ SN }}_mcn3_hardware', 'Temp_PCH', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('67', '{{ SN }}_mcn0_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('67', '{{ SN }}_mcn0_hardware', 'Temp_UL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('68', '{{ SN }}_mcn1_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('68', '{{ SN }}_mcn1_hardware', 'Temp_UL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('69', '{{ SN }}_mcn2_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('69', '{{ SN }}_mcn2_hardware', 'Temp_UL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('70', '{{ SN }}_mcn3_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0');
|
INSERT INTO `tsg_threshold` VALUES ('70', '{{ SN }}_mcn3_hardware', 'Temp_UL', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('71', '{{ SN }}_mcn0_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('71', '{{ SN }}_mcn0_hardware', 'Temp_UR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('72', '{{ SN }}_mcn1_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('72', '{{ SN }}_mcn1_hardware', 'Temp_UR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('73', '{{ SN }}_mcn2_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('73', '{{ SN }}_mcn2_hardware', 'Temp_UR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('74', '{{ SN }}_mcn3_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('74', '{{ SN }}_mcn3_hardware', 'Temp_UR', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('75', '{{ SN }}_mcn0_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('75', '{{ SN }}_mcn0_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('76', '{{ SN }}_mcn1_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('76', '{{ SN }}_mcn1_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('77', '{{ SN }}_mcn2_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('77', '{{ SN }}_mcn2_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('78', '{{ SN }}_mcn3_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('78', '{{ SN }}_mcn3_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('79', '{{ SN }}_mcn0_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('79', '{{ SN }}_mcn0_hardware', 'Temp_mIO0', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('80', '{{ SN }}_mcn1_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('80', '{{ SN }}_mcn1_hardware', 'Temp_mIO0', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('81', '{{ SN }}_mcn2_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('81', '{{ SN }}_mcn2_hardware', 'Temp_mIO0', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('82', '{{ SN }}_mcn3_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('82', '{{ SN }}_mcn3_hardware', 'Temp_mIO0', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('83', '{{ SN }}_mcn0_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('83', '{{ SN }}_mcn0_hardware', 'Temp_mIO1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('84', '{{ SN }}_mcn1_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('84', '{{ SN }}_mcn1_hardware', 'Temp_mIO1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('85', '{{ SN }}_mcn2_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('85', '{{ SN }}_mcn2_hardware', 'Temp_mIO1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('86', '{{ SN }}_mcn3_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0');
|
INSERT INTO `tsg_threshold` VALUES ('86', '{{ SN }}_mcn3_hardware', 'Temp_mIO1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('87', '{{ SN }}_mcn0_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('87', '{{ SN }}_mcn0_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('88', '{{ SN }}_mcn1_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('88', '{{ SN }}_mcn1_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('89', '{{ SN }}_mcn2_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('89', '{{ SN }}_mcn2_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('90', '{{ SN }}_mcn3_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('90', '{{ SN }}_mcn3_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('91', '{{ SN }}_mcn0_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('91', '{{ SN }}_mcn0_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('92', '{{ SN }}_mcn1_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('92', '{{ SN }}_mcn1_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('93', '{{ SN }}_mcn2_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('93', '{{ SN }}_mcn2_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('94', '{{ SN }}_mcn3_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0');
|
INSERT INTO `tsg_threshold` VALUES ('94', '{{ SN }}_mcn3_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('95', '{{ SN }}_mxn_cpu', 'laLoad_1', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('95', '{{ SN }}_mxn_cpu', 'laLoad_1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('96', '{{ SN }}_mcn0_cpu', 'laLoad_1', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('96', '{{ SN }}_mcn0_cpu', 'laLoad_1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('97', '{{ SN }}_mcn1_cpu', 'laLoad_1', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('97', '{{ SN }}_mcn1_cpu', 'laLoad_1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('98', '{{ SN }}_mcn2_cpu', 'laLoad_1', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('98', '{{ SN }}_mcn2_cpu', 'laLoad_1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('99', '{{ SN }}_mcn3_cpu', 'laLoad_1', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('99', '{{ SN }}_mcn3_cpu', 'laLoad_1', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('100', '{{ SN }}_mxn_cpu', 'laLoad_5', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('100', '{{ SN }}_mxn_cpu', 'laLoad_5', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('101', '{{ SN }}_mcn0_cpu', 'laLoad_5', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('101', '{{ SN }}_mcn0_cpu', 'laLoad_5', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('102', '{{ SN }}_mcn1_cpu', 'laLoad_5', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('102', '{{ SN }}_mcn1_cpu', 'laLoad_5', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('103', '{{ SN }}_mcn2_cpu', 'laLoad_5', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('103', '{{ SN }}_mcn2_cpu', 'laLoad_5', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('104', '{{ SN }}_mcn3_cpu', 'laLoad_5', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('104', '{{ SN }}_mcn3_cpu', 'laLoad_5', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('105', '{{ SN }}_mxn_cpu', 'laLoad_10', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('105', '{{ SN }}_mxn_cpu', 'laLoad_10', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('106', '{{ SN }}_mcn0_cpu', 'laLoad_10', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('106', '{{ SN }}_mcn0_cpu', 'laLoad_10', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('107', '{{ SN }}_mcn1_cpu', 'laLoad_10', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('107', '{{ SN }}_mcn1_cpu', 'laLoad_10', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('108', '{{ SN }}_mcn2_cpu', 'laLoad_10', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('108', '{{ SN }}_mcn2_cpu', 'laLoad_10', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('109', '{{ SN }}_mcn3_cpu', 'laLoad_10', '99', null, '85', null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('109', '{{ SN }}_mcn3_cpu', 'laLoad_10', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('110', '{{ SN }}_mxn_cpu', 'ssCpuUser', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('110', '{{ SN }}_mxn_cpu', 'ssCpuUser', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('111', '{{ SN }}_mcn0_cpu', 'ssCpuUser', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('111', '{{ SN }}_mcn0_cpu', 'ssCpuUser', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('112', '{{ SN }}_mcn1_cpu', 'ssCpuUser', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('112', '{{ SN }}_mcn1_cpu', 'ssCpuUser', null, null, null, null, null, null);
|
||||||
@@ -156,11 +156,11 @@ INSERT INTO `tsg_threshold` VALUES ('116', '{{ SN }}_mcn0_cpu', 'ssCpuSystem', n
|
|||||||
INSERT INTO `tsg_threshold` VALUES ('117', '{{ SN }}_mcn1_cpu', 'ssCpuSystem', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('117', '{{ SN }}_mcn1_cpu', 'ssCpuSystem', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('118', '{{ SN }}_mcn2_cpu', 'ssCpuSystem', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('118', '{{ SN }}_mcn2_cpu', 'ssCpuSystem', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('119', '{{ SN }}_mcn3_cpu', 'ssCpuSystem', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('119', '{{ SN }}_mcn3_cpu', 'ssCpuSystem', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('120', '{{ SN }}_mxn_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40');
|
INSERT INTO `tsg_threshold` VALUES ('120', '{{ SN }}_mxn_cpu', 'ssCpuIdle', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('121', '{{ SN }}_mcn0_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40');
|
INSERT INTO `tsg_threshold` VALUES ('121', '{{ SN }}_mcn0_cpu', 'ssCpuIdle', null, '10', null, '15', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('122', '{{ SN }}_mcn1_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40');
|
INSERT INTO `tsg_threshold` VALUES ('122', '{{ SN }}_mcn1_cpu', 'ssCpuIdle', null, '10', null, '15', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('123', '{{ SN }}_mcn2_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40');
|
INSERT INTO `tsg_threshold` VALUES ('123', '{{ SN }}_mcn2_cpu', 'ssCpuIdle', null, '10', null, '15', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('124', '{{ SN }}_mcn3_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40');
|
INSERT INTO `tsg_threshold` VALUES ('124', '{{ SN }}_mcn3_cpu', 'ssCpuIdle', null, '10', null, '15', null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('125', '{{ SN }}_mxn_memory', 'memTotalReal', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('125', '{{ SN }}_mxn_memory', 'memTotalReal', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('126', '{{ SN }}_mcn0_memory', 'memTotalReal', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('126', '{{ SN }}_mcn0_memory', 'memTotalReal', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('127', '{{ SN }}_mcn1_memory', 'memTotalReal', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('127', '{{ SN }}_mcn1_memory', 'memTotalReal', null, null, null, null, null, null);
|
||||||
@@ -201,11 +201,11 @@ INSERT INTO `tsg_threshold` VALUES ('161', '{{ SN }}_mcn0_disk', 'dskAvail', nul
|
|||||||
INSERT INTO `tsg_threshold` VALUES ('162', '{{ SN }}_mcn1_disk', 'dskAvail', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('162', '{{ SN }}_mcn1_disk', 'dskAvail', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('163', '{{ SN }}_mcn2_disk', 'dskAvail', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('163', '{{ SN }}_mcn2_disk', 'dskAvail', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('164', '{{ SN }}_mcn3_disk', 'dskAvail', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('164', '{{ SN }}_mcn3_disk', 'dskAvail', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('165', '{{ SN }}_mxn_disk', 'dskPercent', '90', null, '80', null, '70', null);
|
INSERT INTO `tsg_threshold` VALUES ('165', '{{ SN }}_mxn_disk', 'dskPercent', '90', null, '85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('166', '{{ SN }}_mcn0_disk', 'dskPercent', '90', null, '80', null, '70', null);
|
INSERT INTO `tsg_threshold` VALUES ('166', '{{ SN }}_mcn0_disk', 'dskPercent', '90', null, '85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('167', '{{ SN }}_mcn1_disk', 'dskPercent', '90', null, '80', null, '70', null);
|
INSERT INTO `tsg_threshold` VALUES ('167', '{{ SN }}_mcn1_disk', 'dskPercent', '90', null, '85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('168', '{{ SN }}_mcn2_disk', 'dskPercent', '90', null, '80', null, '70', null);
|
INSERT INTO `tsg_threshold` VALUES ('168', '{{ SN }}_mcn2_disk', 'dskPercent', '90', null, '85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('169', '{{ SN }}_mcn3_disk', 'dskPercent', '90', null, '80', null, '70', null);
|
INSERT INTO `tsg_threshold` VALUES ('169', '{{ SN }}_mcn3_disk', 'dskPercent', '90', null, '85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('170', '{{ SN }}_mxn_disk', 'dskPercentSled', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('170', '{{ SN }}_mxn_disk', 'dskPercentSled', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('171', '{{ SN }}_mcn0_disk', 'dskPercentSled', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('171', '{{ SN }}_mcn0_disk', 'dskPercentSled', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('172', '{{ SN }}_mcn1_disk', 'dskPercentSled', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('172', '{{ SN }}_mcn1_disk', 'dskPercentSled', null, null, null, null, null, null);
|
||||||
@@ -271,17 +271,17 @@ INSERT INTO `tsg_threshold` VALUES ('231', '{{ SN }}_mxn_network_port_39', 'ifOu
|
|||||||
INSERT INTO `tsg_threshold` VALUES ('232', '{{ SN }}_mxn_network_port_41', 'ifOutUcastPkts', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('232', '{{ SN }}_mxn_network_port_41', 'ifOutUcastPkts', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('233', '{{ SN }}_mxn_network_port_43', 'ifOutUcastPkts', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('233', '{{ SN }}_mxn_network_port_43', 'ifOutUcastPkts', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('234', '{{ SN }}_mxn_memory', 'memPercent', null, null, null, null, null, null);
|
INSERT INTO `tsg_threshold` VALUES ('234', '{{ SN }}_mxn_memory', 'memPercent', null, null, null, null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('235', '{{ SN }}_mcn0_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null);
|
INSERT INTO `tsg_threshold` VALUES ('235', '{{ SN }}_mcn0_memory', 'memPercent', '0.9', null, '0.85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('236', '{{ SN }}_mcn1_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null);
|
INSERT INTO `tsg_threshold` VALUES ('236', '{{ SN }}_mcn1_memory', 'memPercent', '0.9', null, '0.85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('237', '{{ SN }}_mcn2_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null);
|
INSERT INTO `tsg_threshold` VALUES ('237', '{{ SN }}_mcn2_memory', 'memPercent', '0.9', null, '0.85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('238', '{{ SN }}_mcn3_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null);
|
INSERT INTO `tsg_threshold` VALUES ('238', '{{ SN }}_mcn3_memory', 'memPercent', '0.9', null, '0.85', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('239', '{{ SN }}_mcn0_app', 'AppRxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('239', '{{ SN }}_mcn0_app', 'AppRxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('240', '{{ SN }}_mcn0_app', 'AppTxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('240', '{{ SN }}_mcn0_app', 'AppTxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('241', '{{ SN }}_mcn0_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('241', '{{ SN }}_mcn0_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('242', '{{ SN }}_mcn1_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('242', '{{ SN }}_mcn1_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('243', '{{ SN }}_mcn2_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('243', '{{ SN }}_mcn2_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('244', '{{ SN }}_mcn3_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('244', '{{ SN }}_mcn3_interface', 'PhyRxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('245', '{{ SN }}_mcn0_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('245', '{{ SN }}_mcn0_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('246', '{{ SN }}_mcn1_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('246', '{{ SN }}_mcn1_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('247', '{{ SN }}_mcn2_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('247', '{{ SN }}_mcn2_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
INSERT INTO `tsg_threshold` VALUES ('248', '{{ SN }}_mcn3_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, '0.00001', null);
|
INSERT INTO `tsg_threshold` VALUES ('248', '{{ SN }}_mcn3_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, null, null);
|
||||||
|
|||||||
@@ -13,31 +13,22 @@ killall_uncompleted_cmd(){
|
|||||||
killall -9 -q tsg_monit_app
|
killall -9 -q tsg_monit_app
|
||||||
killall -9 -q tsg_monit_intercept
|
killall -9 -q tsg_monit_intercept
|
||||||
killall -9 -q tsg_monit_interface
|
killall -9 -q tsg_monit_interface
|
||||||
#killall -9 -q tsg_monit_protocol_v3
|
|
||||||
killall -9 -q tsg_monit_protocol_v4
|
killall -9 -q tsg_monit_protocol_v4
|
||||||
#killall -9 -q tsg_monit_stream_v3
|
|
||||||
killall -9 -q tsg_monit_stream_v4
|
killall -9 -q tsg_monit_stream_v4
|
||||||
|
|
||||||
cmd_run=`ps -ef | grep tsg_ | grep -v grep`
|
/opt/tsg/tsg-monitor/tsg_monitor_cleanup_tmp.sh
|
||||||
if [ ${#cmd_run} -lt 1 ] ; then
|
|
||||||
#在没有其他tsg_xxx命令正在执行时, 删除执行命令错误被强制kill时, python生成的临时文件
|
|
||||||
rm -rf /tmp/_MEI*
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_background_cmd(){
|
start_background_cmd(){
|
||||||
|
mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
||||||
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
||||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||||
#/opt/tsg/tsg-monitor/tsg_update_tags > /dev/null &
|
#/opt/tsg/tsg-monitor/tsg_update_tags > /dev/null &
|
||||||
|
|
||||||
/opt/tsg/tsg-monitor/tsg_monit_app > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_monit_app > /dev/null &
|
||||||
/opt/tsg/tsg-monitor/tsg_monit_intercept > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_monit_intercept > /dev/null &
|
||||||
/opt/tsg/tsg-monitor/tsg_monit_interface > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_monit_interface > /dev/null &
|
||||||
#/opt/tsg/tsg-monitor/tsg_monit_protocol_v3 > /dev/null &
|
|
||||||
/opt/tsg/tsg-monitor/tsg_monit_protocol_v4 > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_monit_protocol_v4 > /dev/null &
|
||||||
#/opt/tsg/tsg-monitor/tsg_monit_stream_v3 > /dev/null &
|
|
||||||
/opt/tsg/tsg-monitor/tsg_monit_stream_v4 > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_monit_stream_v4 > /dev/null &
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,12 @@
|
|||||||
src: "{{ role_path }}/files/rsyslog.conf"
|
src: "{{ role_path }}/files/rsyslog.conf"
|
||||||
dest: "/etc/"
|
dest: "/etc/"
|
||||||
|
|
||||||
|
- name: "copy tsg_monitor_cleanup_tmp.sh to destination server"
|
||||||
|
synchronize:
|
||||||
|
src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh"
|
||||||
|
dest: "/opt/tsg/tsg-monitor/"
|
||||||
|
|
||||||
|
|
||||||
- name: "restart rsyslog service"
|
- name: "restart rsyslog service"
|
||||||
systemd:
|
systemd:
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
|
|||||||
@@ -21,9 +21,13 @@ fs2_stat_file=/var/log/tfe/tfe.fs2
|
|||||||
|
|
||||||
[threshold]
|
[threshold]
|
||||||
#means percent, n%
|
#means percent, n%
|
||||||
cpu_critical_high=90
|
cpu_critical_high={{ oam.alarm_cpu_critical_high }}
|
||||||
cpu_major_high=80
|
cpu_major_high={{ oam.alarm_cpu_major_high }}
|
||||||
mem_critical_high=90
|
mem_critical_high={{ oam.alarm_mem_critical_high }}
|
||||||
mem_major_high=80
|
mem_major_high={{ oam.alarm_mem_major_high }}
|
||||||
disk_critical_high=90
|
disk_critical_high={{ oam.alarm_disk_critical_high }}
|
||||||
disk_major_high=80
|
disk_major_high={{ oam.alarm_disk_major_high }}
|
||||||
|
interface_critical_high={{ oam.alarm_interface_critical_high }}
|
||||||
|
interface_major_high={{ oam.alarm_interface_major_high }}
|
||||||
|
app_network_critical_high={{ oam.alarm_app_network_critical_high }}
|
||||||
|
app_network_major_high={{ oam.alarm_app_network_major_high }}
|
||||||
|
|||||||
@@ -12,14 +12,11 @@ killall_uncompleted_cmd(){
|
|||||||
killall -9 -q tsg_monit_interface
|
killall -9 -q tsg_monit_interface
|
||||||
killall -9 -q tsg_monit_intercept
|
killall -9 -q tsg_monit_intercept
|
||||||
|
|
||||||
cmd_run=`ps -ef | grep tsg_ | grep -v grep`
|
/opt/tsg/tsg-monitor/tsg_monitor_cleanup_tmp.sh
|
||||||
if [ ${#cmd_run} -lt 1 ] ; then
|
|
||||||
#在没有其他tsg_xxx命令正在执行时, 删除执行命令错误被强制kill时, python生成的临时文件
|
|
||||||
rm -rf /tmp/_MEI*
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_background_cmd(){
|
start_background_cmd(){
|
||||||
|
mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
||||||
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
||||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||||
|
|||||||
@@ -57,6 +57,11 @@
|
|||||||
src: "{{ role_path }}/files/rsyslog.conf"
|
src: "{{ role_path }}/files/rsyslog.conf"
|
||||||
dest: "/etc/"
|
dest: "/etc/"
|
||||||
|
|
||||||
|
- name: "copy tsg_monitor_cleanup_tmp.sh to destination server"
|
||||||
|
synchronize:
|
||||||
|
src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh"
|
||||||
|
dest: "/opt/tsg/tsg-monitor/"
|
||||||
|
|
||||||
- name: "restart rsyslog service"
|
- name: "restart rsyslog service"
|
||||||
systemd:
|
systemd:
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
|
|||||||
@@ -21,9 +21,13 @@ fs2_stat_file=/var/log/tfe/tfe.fs2
|
|||||||
|
|
||||||
[threshold]
|
[threshold]
|
||||||
#means percent, n%
|
#means percent, n%
|
||||||
cpu_critical_high=90
|
cpu_critical_high={{ oam.alarm_cpu_critical_high }}
|
||||||
cpu_major_high=80
|
cpu_major_high={{ oam.alarm_cpu_major_high }}
|
||||||
mem_critical_high=90
|
mem_critical_high={{ oam.alarm_mem_critical_high }}
|
||||||
mem_major_high=80
|
mem_major_high={{ oam.alarm_mem_major_high }}
|
||||||
disk_critical_high=90
|
disk_critical_high={{ oam.alarm_disk_critical_high }}
|
||||||
disk_major_high=80
|
disk_major_high={{ oam.alarm_disk_major_high }}
|
||||||
|
interface_critical_high={{ oam.alarm_interface_critical_high }}
|
||||||
|
interface_major_high={{ oam.alarm_interface_major_high }}
|
||||||
|
app_network_critical_high={{ oam.alarm_app_network_critical_high }}
|
||||||
|
app_network_major_high={{ oam.alarm_app_network_major_high }}
|
||||||
@@ -12,14 +12,11 @@ killall_uncompleted_cmd(){
|
|||||||
killall -9 -q tsg_monit_interface
|
killall -9 -q tsg_monit_interface
|
||||||
killall -9 -q tsg_monit_intercept
|
killall -9 -q tsg_monit_intercept
|
||||||
|
|
||||||
cmd_run=`ps -ef | grep tsg_ | grep -v grep`
|
/opt/tsg/tsg-monitor/tsg_monitor_cleanup_tmp.sh
|
||||||
if [ ${#cmd_run} -lt 1 ] ; then
|
|
||||||
#在没有其他tsg_xxx命令正在执行时, 删除执行命令错误被强制kill时, python生成的临时文件
|
|
||||||
rm -rf /tmp/_MEI*
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_background_cmd(){
|
start_background_cmd(){
|
||||||
|
mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
||||||
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
||||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||||
|
|||||||
@@ -57,6 +57,11 @@
|
|||||||
src: "{{ role_path }}/files/rsyslog.conf"
|
src: "{{ role_path }}/files/rsyslog.conf"
|
||||||
dest: "/etc/"
|
dest: "/etc/"
|
||||||
|
|
||||||
|
- name: "copy tsg_monitor_cleanup_tmp.sh to destination server"
|
||||||
|
synchronize:
|
||||||
|
src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh"
|
||||||
|
dest: "/opt/tsg/tsg-monitor/"
|
||||||
|
|
||||||
- name: "restart rsyslog service"
|
- name: "restart rsyslog service"
|
||||||
systemd:
|
systemd:
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
|
|||||||
@@ -21,9 +21,13 @@ fs2_stat_file=/var/log/tfe/tfe.fs2
|
|||||||
|
|
||||||
[threshold]
|
[threshold]
|
||||||
#means percent, n%
|
#means percent, n%
|
||||||
cpu_critical_high=90
|
cpu_critical_high={{ oam.alarm_cpu_critical_high }}
|
||||||
cpu_major_high=80
|
cpu_major_high={{ oam.alarm_cpu_major_high }}
|
||||||
mem_critical_high=90
|
mem_critical_high={{ oam.alarm_mem_critical_high }}
|
||||||
mem_major_high=80
|
mem_major_high={{ oam.alarm_mem_major_high }}
|
||||||
disk_critical_high=90
|
disk_critical_high={{ oam.alarm_disk_critical_high }}
|
||||||
disk_major_high=80
|
disk_major_high={{ oam.alarm_disk_major_high }}
|
||||||
|
interface_critical_high={{ oam.alarm_interface_critical_high }}
|
||||||
|
interface_major_high={{ oam.alarm_interface_major_high }}
|
||||||
|
app_network_critical_high={{ oam.alarm_app_network_critical_high }}
|
||||||
|
app_network_major_high={{ oam.alarm_app_network_major_high }}
|
||||||
|
|||||||
@@ -12,14 +12,11 @@ killall_uncompleted_cmd(){
|
|||||||
killall -9 -q tsg_monit_interface
|
killall -9 -q tsg_monit_interface
|
||||||
killall -9 -q tsg_monit_intercept
|
killall -9 -q tsg_monit_intercept
|
||||||
|
|
||||||
cmd_run=`ps -ef | grep tsg_ | grep -v grep`
|
/opt/tsg/tsg-monitor/tsg_monitor_cleanup_tmp.sh
|
||||||
if [ ${#cmd_run} -lt 1 ] ; then
|
|
||||||
#在没有其他tsg_xxx命令正在执行时, 删除执行命令错误被强制kill时, python生成的临时文件
|
|
||||||
rm -rf /tmp/_MEI*
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_background_cmd(){
|
start_background_cmd(){
|
||||||
|
mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
||||||
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
||||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||||
|
|||||||
@@ -57,6 +57,11 @@
|
|||||||
src: "{{ role_path }}/files/rsyslog.conf"
|
src: "{{ role_path }}/files/rsyslog.conf"
|
||||||
dest: "/etc/"
|
dest: "/etc/"
|
||||||
|
|
||||||
|
- name: "copy tsg_monitor_cleanup_tmp.sh to destination server"
|
||||||
|
synchronize:
|
||||||
|
src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh"
|
||||||
|
dest: "/opt/tsg/tsg-monitor/"
|
||||||
|
|
||||||
- name: "restart rsyslog service"
|
- name: "restart rsyslog service"
|
||||||
systemd:
|
systemd:
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
|
|||||||
@@ -21,9 +21,13 @@ fs2_stat_file=/var/log/tfe/tfe.fs2
|
|||||||
|
|
||||||
[threshold]
|
[threshold]
|
||||||
#means percent, n%
|
#means percent, n%
|
||||||
cpu_critical_high=90
|
cpu_critical_high={{ oam.alarm_cpu_critical_high }}
|
||||||
cpu_major_high=80
|
cpu_major_high={{ oam.alarm_cpu_major_high }}
|
||||||
mem_critical_high=90
|
mem_critical_high={{ oam.alarm_mem_critical_high }}
|
||||||
mem_major_high=80
|
mem_major_high={{ oam.alarm_mem_major_high }}
|
||||||
disk_critical_high=90
|
disk_critical_high={{ oam.alarm_disk_critical_high }}
|
||||||
disk_major_high=80
|
disk_major_high={{ oam.alarm_disk_major_high }}
|
||||||
|
interface_critical_high={{ oam.alarm_interface_critical_high }}
|
||||||
|
interface_major_high={{ oam.alarm_interface_major_high }}
|
||||||
|
app_network_critical_high={{ oam.alarm_app_network_critical_high }}
|
||||||
|
app_network_major_high={{ oam.alarm_app_network_major_high }}
|
||||||
|
|||||||
@@ -8,21 +8,17 @@
|
|||||||
#导致10秒内还不结束, 要强行杀掉,
|
#导致10秒内还不结束, 要强行杀掉,
|
||||||
#否则长时间运行后, 会有大量后台进程运行!
|
#否则长时间运行后, 会有大量后台进程运行!
|
||||||
killall_uncompleted_cmd(){
|
killall_uncompleted_cmd(){
|
||||||
killall -9 -q tsg_cluster_register
|
#killall -9 -q tsg_cluster_register
|
||||||
#killall -9 -q tsg_diagnose_background
|
#killall -9 -q tsg_diagnose_background
|
||||||
#killall -9 -q tsg_update_tags
|
#killall -9 -q tsg_update_tags
|
||||||
|
/opt/tsg/tsg-monitor/tsg_monitor_cleanup_tmp.sh
|
||||||
cmd_run=`ps -ef | grep tsg_ | grep -v grep`
|
|
||||||
if [ ${#cmd_run} -lt 1 ] ; then
|
|
||||||
#在没有其他tsg_xxx命令正在执行时, 删除执行命令错误被强制kill时, python生成的临时文件
|
|
||||||
rm -rf /tmp/_MEI*
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_background_cmd(){
|
start_background_cmd(){
|
||||||
|
mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
#后台并发运行, 保证所有命令的开始运行时间基本一样,
|
||||||
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
#且不会因某个命令网络拥塞、执行时间长等问题,阻塞while(1)主循环
|
||||||
/opt/tsg/tsg-monitor/tsg_cluster_register > /dev/null &
|
#/opt/tsg/tsg-monitor/tsg_cluster_register > /dev/null &
|
||||||
|
|
||||||
#mxn板只检测cpu, mem, disk等, 前台cli命令启用diagnose,
|
#mxn板只检测cpu, mem, disk等, 前台cli命令启用diagnose,
|
||||||
#后台服务依靠oam snmp模块, 无需运行tsg_diagnose_background
|
#后台服务依靠oam snmp模块, 无需运行tsg_diagnose_background
|
||||||
|
|||||||
14
roles/tsg-cli-mxn/files/tsg_cluster_register.service
Normal file
14
roles/tsg-cli-mxn/files/tsg_cluster_register.service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=TSG Device register to consul
|
||||||
|
Requires=consul-client.service
|
||||||
|
After=consul-client.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/usr/bin/mkdir -p /tmp/__tsg_monitor_tmp_dir
|
||||||
|
ExecStart=/opt/tsg/tsg-monitor/tsg_cluster_register
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -74,11 +74,16 @@
|
|||||||
dest: "/opt/tsg/etc/tsg_series.json"
|
dest: "/opt/tsg/etc/tsg_series.json"
|
||||||
tags: template
|
tags: template
|
||||||
|
|
||||||
|
|
||||||
- name: "copy tsg-monitor.service to destination server"
|
- name: "copy tsg-monitor.service to destination server"
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ role_path }}/files/tsg-monitor.service"
|
src: "{{ role_path }}/files/tsg-monitor.service"
|
||||||
dest: "/usr/lib/systemd/system"
|
dest: "/usr/lib/systemd/system"
|
||||||
|
|
||||||
|
#2020-11-13 lijia add
|
||||||
|
- name: "copy tsg_cluster_register.service to destination server"
|
||||||
|
synchronize:
|
||||||
|
src: "{{ role_path }}/files/tsg_cluster_register.service"
|
||||||
|
dest: "/usr/lib/systemd/system"
|
||||||
|
|
||||||
- name: "copy tsg-monitor.sh to destination server"
|
- name: "copy tsg-monitor.sh to destination server"
|
||||||
copy:
|
copy:
|
||||||
@@ -91,14 +96,26 @@
|
|||||||
src: "{{ role_path }}/files/rsyslog.conf"
|
src: "{{ role_path }}/files/rsyslog.conf"
|
||||||
dest: "/etc/"
|
dest: "/etc/"
|
||||||
|
|
||||||
|
- name: "copy tsg_monitor_cleanup_tmp.sh to destination server"
|
||||||
|
synchronize:
|
||||||
|
src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh"
|
||||||
|
dest: "/opt/tsg/tsg-monitor/"
|
||||||
|
|
||||||
- name: "restart rsyslog service"
|
- name: "restart rsyslog service"
|
||||||
systemd:
|
systemd:
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: "enable tsg-monitor service"
|
- name: "enable tsg-monitor service"
|
||||||
systemd:
|
systemd:
|
||||||
name: tsg-monitor
|
name: tsg-monitor
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: restarted
|
||||||
|
|
||||||
|
- name: "enable tsg_cluster_register.service"
|
||||||
|
systemd:
|
||||||
|
name: tsg_cluster_register
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|||||||
@@ -17,3 +17,18 @@ fs2_stat_file=/home/mesasoft/sapp_run/fs2_kni.status
|
|||||||
|
|
||||||
[tfe]
|
[tfe]
|
||||||
fs2_stat_file=/var/log/tfe/tfe.fs2
|
fs2_stat_file=/var/log/tfe/tfe.fs2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[threshold]
|
||||||
|
#means percent, n%
|
||||||
|
cpu_critical_high={{ oam.alarm_cpu_critical_high }}
|
||||||
|
cpu_major_high={{ oam.alarm_cpu_major_high }}
|
||||||
|
mem_critical_high={{ oam.alarm_mem_critical_high }}
|
||||||
|
mem_major_high={{ oam.alarm_mem_major_high }}
|
||||||
|
disk_critical_high={{ oam.alarm_disk_critical_high }}
|
||||||
|
disk_major_high={{ oam.alarm_disk_major_high }}
|
||||||
|
interface_critical_high={{ oam.alarm_interface_critical_high }}
|
||||||
|
interface_major_high={{ oam.alarm_interface_major_high }}
|
||||||
|
app_network_critical_high={{ oam.alarm_app_network_critical_high }}
|
||||||
|
app_network_major_high={{ oam.alarm_app_network_major_high }}
|
||||||
Binary file not shown.
13
roles/tsg-common-files/tsg_monitor_cleanup_tmp.sh
Normal file
13
roles/tsg-common-files/tsg_monitor_cleanup_tmp.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd /tmp/__tsg_monitor_tmp_dir
|
||||||
|
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
#echo "cd to dir error!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
#cur_dir=`pwd`
|
||||||
|
#echo "cur dir is: $cur_dir"
|
||||||
|
|
||||||
|
find . -ctime +1 -type d -name "_MEI*" | xargs rm -rf
|
||||||
|
|
||||||
79
uninstall.yml
Normal file
79
uninstall.yml
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
---
|
||||||
|
- hosts: blade-mxn
|
||||||
|
tasks:
|
||||||
|
- name: "stop oam_core.service"
|
||||||
|
service:
|
||||||
|
name: oam_core
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: "stop oam_snmp service"
|
||||||
|
service:
|
||||||
|
name: oam_snmp
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: "stop oam_cli service"
|
||||||
|
service:
|
||||||
|
name: oam_cli
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: "stop oam_cli_agent_mxn service"
|
||||||
|
service:
|
||||||
|
name: oam_cli_agent_mxn
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: "stop consul-server-external service"
|
||||||
|
service:
|
||||||
|
name: consul-server-external
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
|
||||||
|
- name: "uninstall oam_core"
|
||||||
|
yum:
|
||||||
|
name: "oam_core"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: "uninstall oam_cli"
|
||||||
|
yum:
|
||||||
|
name: "oam_cli"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: "uninstall oam_snmp"
|
||||||
|
yum:
|
||||||
|
name: "oam_snmp"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: "uninstall oam_cli_agent_mxn"
|
||||||
|
yum:
|
||||||
|
name: "oam_cli_agent_mxn"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
|
||||||
|
- name: "uninstall tsg-cli"
|
||||||
|
yum:
|
||||||
|
name: "tsg-cli"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "stop tsg-monitor service"
|
||||||
|
service:
|
||||||
|
name: tsg-monitor
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: "uninstall tsg-cli"
|
||||||
|
yum:
|
||||||
|
name: "tsg-cli"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: "uninstall oam_cli_agent"
|
||||||
|
yum:
|
||||||
|
name: "oam_cli_agent"
|
||||||
|
state: absent
|
||||||
|
|
||||||
13
uninstall_oam_core.yml
Normal file
13
uninstall_oam_core.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- hosts: blade-mxn
|
||||||
|
tasks:
|
||||||
|
- name: "stop oam_core.service"
|
||||||
|
service:
|
||||||
|
name: oam_core
|
||||||
|
state: stopped
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: "uninstall oam_core"
|
||||||
|
yum:
|
||||||
|
name: "oam_core"
|
||||||
|
state: absent
|
||||||
Reference in New Issue
Block a user