diff --git a/deploy.yml b/deploy.yml deleted file mode 100644 index 904eb64..0000000 --- a/deploy.yml +++ /dev/null @@ -1,63 +0,0 @@ -- hosts: all - roles: - - jdk1.8.0_73 - -- hosts: blade-mxn - roles: - - consul-external - - tsg-cli-mxn - - oam_cli_agent_mxn - - oam_cli - - oam_core - - oam_snmp - - ipython - -- hosts: blade-mcn0 - roles: - #- consul-internal_mcn01 - - telegraf - - influxdb - - grafana - - tsg-cli-mcn0 - #- mariadb - - oam_cli_agent - -- hosts: blade-mcn1 - roles: - #- consul-internal_mcn01 - - tsg-cli-mcn1 - - oam_cli_agent - -- hosts: blade-mcn2 - roles: - #- consul-internal_mcn23 - - tsg-cli-mcn2 - - oam_cli_agent - -- hosts: blade-mcn3 - roles: - #- consul-internal_mcn23 - - tsg-cli-mcn3 - - oam_cli_agent - -- hosts: blade-mxn - roles: - - oam_mxn_start - -- hosts: cluster_server - roles: - - oam_cluster - - consul-cluster - # mariadb复用毕方 - #- mariadb - - influxdb - - ha_master - -- hosts: cluster_server_backup - roles: - - oam_cluster - - consul-cluster-backup - # mariadb复用毕方 - #- mariadb - - influxdb - - ha_backup \ No newline at end of file diff --git a/install_config/group_vars/all.yml b/install_config/group_vars/all.yml index 26ba45d..ccc2ba3 100644 --- a/install_config/group_vars/all.yml +++ b/install_config/group_vars/all.yml @@ -1,53 +1,54 @@ -grafana: - http_port: 53000 - -influxdb: - cluster_ip: "192.168.44.56" - cluster_ip_backup: "192.168.44.57" - dbname: tsg_stat - username: admin - passwd: tsg2019 - meta_dir: /var/lib/influxdb/meta - data_dir: /var/lib/influxdb/data - wal_dir: /var/lib/influxdb/wal-dir - -consul: - datacenter: consul-kz - dckey: "XwXLAbVN1C44dLUVJ6UL5A==" - cluster_ip: "192.168.44.56" - cluster_ip_backup: "192.168.44.57" - cluster_ethname: em1 - external_ethname: enp2s0 - mcn01_internal_ethname: ens1f3 - mcn23_internal_ethname: ens8f3 - -mariadb: - username: root - password: 111111 - cluster_ip: "192.168.40.210" - -oam: - snmptrapd_ip: "127.0.0.1" - snmptrapd_port: 162 - mcn0_ip: "192.168.100.1" - -tsg_cli: - rpm_file_name: "tsg-cli-1.1.0.32ab89f-1.el7.x86_64.rpm" - -ha_master: - instance_state: MASTER - ethname: eth0 - virtual_ip: "192.168.44.58" - oam_virtual_router_id: 54 - -ha_backup: - instance_state: BACKUP - ethname: eth0 - virtual_ip: "192.168.44.58" - oam_virtual_router_id: 54 - -java_version: jdk1.8.0_73 -bifang_api_ip: "192.168.43.5" -bifang_api_port: 8080 - -tag_location: "xinxigang" \ No newline at end of file +grafana: + http_port: 53000 + +influxdb: + cluster_ip: "10.4.62.5" + cluster_ip_backup: "10.4.62.6" + dbname: tsg_stat + username: admin + passwd: tsg2019 + meta_dir: /var/lib/influxdb/meta + data_dir: /var/lib/influxdb/data + wal_dir: /var/lib/influxdb/wal-dir + +consul: + datacenter: consul-kz + dckey: "XwXLAbVN1C44dLUVJ6UL5A==" + cluster_ip: + - "10.4.62.5" + - "10.4.62.6" + - "10.4.63.3" + cluster_ethname: em1 + client_ethname: enp2s0 + +mariadb: + username: root + password: 111111 + cluster_password: tsg369258 + cluster_ip: "10.4.62.252" + +oam: + snmptrapd_ip: "127.0.0.1" + snmptrapd_port: 164 + mcn0_ip: "192.168.100.1" + +tsg_cli: + rpm_file_name: "tsg-cli-1.1.1.ea016fc-1.el7.x86_64.rpm" + +ha_master: + instance_state: MASTER + ethname: em1 + virtual_ip: "10.4.62.251" + oam_virtual_router_id: 54 + +ha_backup: + instance_state: BACKUP + ethname: em1 + virtual_ip: "10.4.62.251" + oam_virtual_router_id: 54 + +java_version: jdk1.8.0_73 +bifang_api_ip: "10.4.62.252" +bifang_api_port: 8080 + +tag_location: "Nur-sultan" diff --git a/install_config/hosts b/install_config/hosts index afe1893..10d332f 100644 --- a/install_config/hosts +++ b/install_config/hosts @@ -1,24 +1,281 @@ -[all:vars] -ansible_user=root -use_chassis_hardware_sn=false - -[cluster_server] -192.168.44.56 influxdb_cluster=true - -[cluster_server_backup] -192.168.44.57 influxdb_cluster=true - -[blade-mxn] -192.168.40.25 - -[blade-mcn0] -192.168.40.21 - -[blade-mcn1] -192.168.40.22 - -[blade-mcn2] -192.168.40.23 - -[blade-mcn3] -192.168.40.24 +[all:vars] +ansible_user=root + +[cluster_master] +10.4.62.5 influxdb_cluster=true + +[cluster_slave1] +10.4.62.6 influxdb_cluster=true + +[cluster_slave2] +10.4.63.3 + +[blade-mxn] +10.4.55.21 SN=GN200108CHK104ES6072 +10.4.55.22 SN=GN200119CHK177ES6008 +10.4.55.23 SN=GN200108CHK104ES6041 +10.4.55.24 SN=GN200116CHK105ES6130 +10.4.55.25 SN=GN200108CHK104ES6046 +10.4.55.26 SN=GN200108CHK104ES6029 +10.4.55.27 SN=GN200108CHK104ES6069 +10.4.55.28 SN=GN200108CHK104ES6070 +10.4.55.29 SN=GN200108CHK104ES6062 +10.4.55.30 SN=GN200116CHK105ES6133 +10.4.55.31 SN=GN200108CHK104ES6067 +10.4.55.32 SN=GN200116CHK105ES6060 +10.4.55.33 SN=GN200119CHK177ES6002 +10.4.55.34 SN=GN200116CHK105ES6134 +10.4.55.35 SN=GN200116CHK105ES6056 +10.4.55.36 SN=GN200108CHK104ES6030 +10.4.55.37 SN=GN200116CHK105ES6059 +10.4.55.38 SN=GN200116CHK105ES6057 +10.4.55.39 SN=GN200108CHK104ES6026 +10.4.55.40 SN=GN200108CHK104ES6061 +10.4.55.41 SN=GN200116CHK105ES6132 +10.4.55.42 SN=GN200108CHK104ES6019 +10.4.55.43 SN=GN200108CHK104ES6028 +10.4.55.44 SN=GN200116CHK105ES6058 +10.4.55.45 SN=GN200116CHK105ES6061 +10.4.55.46 SN=GN200108CHK104ES6037 +10.4.55.47 SN=GN200108CHK104ES6009 +10.4.55.48 SN=GN200108CHK104ES6075 +10.4.55.49 SN=GN200108CHK104ES6047 +10.4.55.56 SN=GN200108CHK104ES6023 +10.4.55.57 SN=GN200108CHK104ES6031 +10.4.55.58 SN=GN200108CHK104ES6005 +10.4.55.59 SN=GN200108CHK104ES6012 +10.4.55.60 SN=GN200108CHK104ES6001 +10.4.55.61 SN=GN200119CHK177ES6003 +10.4.55.62 SN=GN200108CHK104ES6052 +10.4.55.63 SN=GN200108CHK104ES6021 +10.4.55.64 SN=GN200119CHK177ES6001 +10.4.55.65 SN=GN200108CHK104ES6057 +10.4.55.66 SN=GN200116CHK105ES6128 +10.4.55.67 SN=GN200108CHK104ES6049 +10.4.55.68 SN=GN200108CHK104ES6056 +10.4.55.69 SN=GN200108CHK104ES6020 +10.4.55.70 SN=GN200108CHK104ES6032 +10.4.55.71 SN=GN200108CHK104ES6065 +10.4.55.72 SN=GN200108CHK104ES6053 +10.4.55.73 SN=GN200108CHK104ES6051 +10.4.55.74 SN=GN200108CHK104ES6013 +10.4.55.75 SN=GN200108CHK104ES6035 +10.4.55.76 SN=GN200116CHK105ES6024 +10.4.55.77 SN=GN200116CHK105ES6035 +10.4.55.78 SN=GN200116CHK105ES6033 + +[blade-mcn0] +10.4.51.21 SN=GN200108CHK104ES6072 +10.4.51.22 SN=GN200119CHK177ES6008 +10.4.51.23 SN=GN200108CHK104ES6041 +10.4.51.24 SN=GN200116CHK105ES6130 +10.4.51.25 SN=GN200108CHK104ES6046 +10.4.51.26 SN=GN200108CHK104ES6029 +10.4.51.27 SN=GN200108CHK104ES6069 +10.4.51.28 SN=GN200108CHK104ES6070 +10.4.51.29 SN=GN200108CHK104ES6062 +10.4.51.30 SN=GN200116CHK105ES6133 +10.4.51.31 SN=GN200108CHK104ES6067 +10.4.51.32 SN=GN200116CHK105ES6060 +10.4.51.33 SN=GN200119CHK177ES6002 +10.4.51.34 SN=GN200116CHK105ES6134 +10.4.51.35 SN=GN200116CHK105ES6056 +10.4.51.36 SN=GN200108CHK104ES6030 +10.4.51.37 SN=GN200116CHK105ES6059 +10.4.51.38 SN=GN200116CHK105ES6057 +10.4.51.39 SN=GN200108CHK104ES6026 +10.4.51.40 SN=GN200108CHK104ES6061 +10.4.51.41 SN=GN200116CHK105ES6132 +10.4.51.42 SN=GN200108CHK104ES6019 +10.4.51.43 SN=GN200108CHK104ES6028 +10.4.51.44 SN=GN200116CHK105ES6058 +10.4.51.45 SN=GN200116CHK105ES6061 +10.4.51.46 SN=GN200108CHK104ES6037 +10.4.51.47 SN=GN200108CHK104ES6009 +10.4.51.48 SN=GN200108CHK104ES6075 +10.4.51.49 SN=GN200108CHK104ES6047 +10.4.51.56 SN=GN200108CHK104ES6023 +10.4.51.57 SN=GN200108CHK104ES6031 +10.4.51.58 SN=GN200108CHK104ES6005 +10.4.51.59 SN=GN200108CHK104ES6012 +10.4.51.60 SN=GN200108CHK104ES6001 +10.4.51.61 SN=GN200119CHK177ES6003 +10.4.51.62 SN=GN200108CHK104ES6052 +10.4.51.63 SN=GN200108CHK104ES6021 +10.4.51.64 SN=GN200119CHK177ES6001 +10.4.51.65 SN=GN200108CHK104ES6057 +10.4.51.66 SN=GN200116CHK105ES6128 +10.4.51.67 SN=GN200108CHK104ES6049 +10.4.51.68 SN=GN200108CHK104ES6056 +10.4.51.69 SN=GN200108CHK104ES6020 +10.4.51.70 SN=GN200108CHK104ES6032 +10.4.51.71 SN=GN200108CHK104ES6065 +10.4.51.72 SN=GN200108CHK104ES6053 +10.4.51.73 SN=GN200108CHK104ES6051 +10.4.51.74 SN=GN200108CHK104ES6013 +10.4.51.75 SN=GN200108CHK104ES6035 +10.4.51.76 SN=GN200116CHK105ES6024 +10.4.51.77 SN=GN200116CHK105ES6035 +10.4.51.78 SN=GN200116CHK105ES6033 + +[blade-mcn1] +10.4.52.21 SN=GN200108CHK104ES6072 +10.4.52.22 SN=GN200119CHK177ES6008 +10.4.52.23 SN=GN200108CHK104ES6041 +10.4.52.24 SN=GN200116CHK105ES6130 +10.4.52.25 SN=GN200108CHK104ES6046 +10.4.52.26 SN=GN200108CHK104ES6029 +10.4.52.27 SN=GN200108CHK104ES6069 +10.4.52.28 SN=GN200108CHK104ES6070 +10.4.52.29 SN=GN200108CHK104ES6062 +10.4.52.30 SN=GN200116CHK105ES6133 +10.4.52.31 SN=GN200108CHK104ES6067 +10.4.52.32 SN=GN200116CHK105ES6060 +10.4.52.33 SN=GN200119CHK177ES6002 +10.4.52.34 SN=GN200116CHK105ES6134 +10.4.52.35 SN=GN200116CHK105ES6056 +10.4.52.36 SN=GN200108CHK104ES6030 +10.4.52.37 SN=GN200116CHK105ES6059 +10.4.52.38 SN=GN200116CHK105ES6057 +10.4.52.39 SN=GN200108CHK104ES6026 +10.4.52.40 SN=GN200108CHK104ES6061 +10.4.52.41 SN=GN200116CHK105ES6132 +10.4.52.42 SN=GN200108CHK104ES6019 +10.4.52.43 SN=GN200108CHK104ES6028 +10.4.52.44 SN=GN200116CHK105ES6058 +10.4.52.45 SN=GN200116CHK105ES6061 +10.4.52.46 SN=GN200108CHK104ES6037 +10.4.52.47 SN=GN200108CHK104ES6009 +10.4.52.48 SN=GN200108CHK104ES6075 +10.4.52.49 SN=GN200108CHK104ES6047 +10.4.52.56 SN=GN200108CHK104ES6023 +10.4.52.57 SN=GN200108CHK104ES6031 +10.4.52.58 SN=GN200108CHK104ES6005 +10.4.52.59 SN=GN200108CHK104ES6012 +10.4.52.60 SN=GN200108CHK104ES6001 +10.4.52.61 SN=GN200119CHK177ES6003 +10.4.52.62 SN=GN200108CHK104ES6052 +10.4.52.63 SN=GN200108CHK104ES6021 +10.4.52.64 SN=GN200119CHK177ES6001 +10.4.52.65 SN=GN200108CHK104ES6057 +10.4.52.66 SN=GN200116CHK105ES6128 +10.4.52.67 SN=GN200108CHK104ES6049 +10.4.52.68 SN=GN200108CHK104ES6056 +10.4.52.69 SN=GN200108CHK104ES6020 +10.4.52.70 SN=GN200108CHK104ES6032 +10.4.52.71 SN=GN200108CHK104ES6065 +10.4.52.72 SN=GN200108CHK104ES6053 +10.4.52.73 SN=GN200108CHK104ES6051 +10.4.52.74 SN=GN200108CHK104ES6013 +10.4.52.75 SN=GN200108CHK104ES6035 +10.4.52.76 SN=GN200116CHK105ES6024 +10.4.52.77 SN=GN200116CHK105ES6035 +10.4.52.78 SN=GN200116CHK105ES6033 + +[blade-mcn2] +10.4.53.21 SN=GN200108CHK104ES6072 +10.4.53.22 SN=GN200119CHK177ES6008 +10.4.53.23 SN=GN200108CHK104ES6041 +10.4.53.24 SN=GN200116CHK105ES6130 +10.4.53.25 SN=GN200108CHK104ES6046 +10.4.53.26 SN=GN200108CHK104ES6029 +10.4.53.27 SN=GN200108CHK104ES6069 +10.4.53.28 SN=GN200108CHK104ES6070 +10.4.53.29 SN=GN200108CHK104ES6062 +10.4.53.30 SN=GN200116CHK105ES6133 +10.4.53.31 SN=GN200108CHK104ES6067 +10.4.53.32 SN=GN200116CHK105ES6060 +10.4.53.33 SN=GN200119CHK177ES6002 +10.4.53.34 SN=GN200116CHK105ES6134 +10.4.53.35 SN=GN200116CHK105ES6056 +10.4.53.36 SN=GN200108CHK104ES6030 +10.4.53.37 SN=GN200116CHK105ES6059 +10.4.53.38 SN=GN200116CHK105ES6057 +10.4.53.39 SN=GN200108CHK104ES6026 +10.4.53.40 SN=GN200108CHK104ES6061 +10.4.53.41 SN=GN200116CHK105ES6132 +10.4.53.42 SN=GN200108CHK104ES6019 +10.4.53.43 SN=GN200108CHK104ES6028 +10.4.53.44 SN=GN200116CHK105ES6058 +10.4.53.45 SN=GN200116CHK105ES6061 +10.4.53.46 SN=GN200108CHK104ES6037 +10.4.53.47 SN=GN200108CHK104ES6009 +10.4.53.48 SN=GN200108CHK104ES6075 +10.4.53.49 SN=GN200108CHK104ES6047 +10.4.53.56 SN=GN200108CHK104ES6023 +10.4.53.57 SN=GN200108CHK104ES6031 +10.4.53.58 SN=GN200108CHK104ES6005 +10.4.53.59 SN=GN200108CHK104ES6012 +10.4.53.60 SN=GN200108CHK104ES6001 +10.4.53.61 SN=GN200119CHK177ES6003 +10.4.53.62 SN=GN200108CHK104ES6052 +10.4.53.63 SN=GN200108CHK104ES6021 +10.4.53.64 SN=GN200119CHK177ES6001 +10.4.53.65 SN=GN200108CHK104ES6057 +10.4.53.66 SN=GN200116CHK105ES6128 +10.4.53.67 SN=GN200108CHK104ES6049 +10.4.53.68 SN=GN200108CHK104ES6056 +10.4.53.69 SN=GN200108CHK104ES6020 +10.4.53.70 SN=GN200108CHK104ES6032 +10.4.53.71 SN=GN200108CHK104ES6065 +10.4.53.72 SN=GN200108CHK104ES6053 +10.4.53.73 SN=GN200108CHK104ES6051 +10.4.53.74 SN=GN200108CHK104ES6013 +10.4.53.75 SN=GN200108CHK104ES6035 +10.4.53.76 SN=GN200116CHK105ES6024 +10.4.53.77 SN=GN200116CHK105ES6035 +10.4.53.78 SN=GN200116CHK105ES6033 + +[blade-mcn3] +10.4.54.21 SN=GN200108CHK104ES6072 +10.4.54.22 SN=GN200119CHK177ES6008 +10.4.54.23 SN=GN200108CHK104ES6041 +10.4.54.24 SN=GN200116CHK105ES6130 +10.4.54.25 SN=GN200108CHK104ES6046 +10.4.54.26 SN=GN200108CHK104ES6029 +10.4.54.27 SN=GN200108CHK104ES6069 +10.4.54.28 SN=GN200108CHK104ES6070 +10.4.54.29 SN=GN200108CHK104ES6062 +10.4.54.30 SN=GN200116CHK105ES6133 +10.4.54.31 SN=GN200108CHK104ES6067 +10.4.54.32 SN=GN200116CHK105ES6060 +10.4.54.33 SN=GN200119CHK177ES6002 +10.4.54.34 SN=GN200116CHK105ES6134 +10.4.54.35 SN=GN200116CHK105ES6056 +10.4.54.36 SN=GN200108CHK104ES6030 +10.4.54.37 SN=GN200116CHK105ES6059 +10.4.54.38 SN=GN200116CHK105ES6057 +10.4.54.39 SN=GN200108CHK104ES6026 +10.4.54.40 SN=GN200108CHK104ES6061 +10.4.54.41 SN=GN200116CHK105ES6132 +10.4.54.42 SN=GN200108CHK104ES6019 +10.4.54.43 SN=GN200108CHK104ES6028 +10.4.54.44 SN=GN200116CHK105ES6058 +10.4.54.45 SN=GN200116CHK105ES6061 +10.4.54.46 SN=GN200108CHK104ES6037 +10.4.54.47 SN=GN200108CHK104ES6009 +10.4.54.48 SN=GN200108CHK104ES6075 +10.4.54.49 SN=GN200108CHK104ES6047 +10.4.54.56 SN=GN200108CHK104ES6023 +10.4.54.57 SN=GN200108CHK104ES6031 +10.4.54.58 SN=GN200108CHK104ES6005 +10.4.54.59 SN=GN200108CHK104ES6012 +10.4.54.60 SN=GN200108CHK104ES6001 +10.4.54.61 SN=GN200119CHK177ES6003 +10.4.54.62 SN=GN200108CHK104ES6052 +10.4.54.63 SN=GN200108CHK104ES6021 +10.4.54.64 SN=GN200119CHK177ES6001 +10.4.54.65 SN=GN200108CHK104ES6057 +10.4.54.66 SN=GN200116CHK105ES6128 +10.4.54.67 SN=GN200108CHK104ES6049 +10.4.54.68 SN=GN200108CHK104ES6056 +10.4.54.69 SN=GN200108CHK104ES6020 +10.4.54.70 SN=GN200108CHK104ES6032 +10.4.54.71 SN=GN200108CHK104ES6065 +10.4.54.72 SN=GN200108CHK104ES6053 +10.4.54.73 SN=GN200108CHK104ES6051 +10.4.54.74 SN=GN200108CHK104ES6013 +10.4.54.75 SN=GN200108CHK104ES6035 +10.4.54.76 SN=GN200116CHK105ES6024 +10.4.54.77 SN=GN200116CHK105ES6035 +10.4.54.78 SN=GN200116CHK105ES6033 diff --git a/roles/consul-cluster/files/consul-cluster/install.sh b/roles/consul-cluster/files/consul-cluster/install.sh index 34ba446..12b0942 100755 --- a/roles/consul-cluster/files/consul-cluster/install.sh +++ b/roles/consul-cluster/files/consul-cluster/install.sh @@ -3,6 +3,7 @@ rm -rf /usr/lib/systemd/system/consul*service rm -rf /usr/lib/systemd/system/consul*service rm -rf /var/consul* -cp -f /opt/consul-cluster/etc/systemd/consul-server.service /usr/lib/systemd/system/consul-server-cluster.service +cp -f /opt/consul-cluster/etc/systemd/consul-server.service /usr/lib/systemd/system/consul-cluster.service cp -f /opt/consul-cluster/bin/consul /usr/bin/ ln -sf /opt/consul-cluster/script/consul_path_setup.sh /etc/profile.d/ + diff --git a/roles/consul-cluster/tasks/main.yml b/roles/consul-cluster/tasks/main.yml index 83d4677..23a4fe0 100644 --- a/roles/consul-cluster/tasks/main.yml +++ b/roles/consul-cluster/tasks/main.yml @@ -21,7 +21,7 @@ - name: "Start consul-cluster" systemd: - name: consul-server-cluster + name: consul-cluster state: restarted enabled: yes daemon_reload: yes diff --git a/roles/consul-cluster/templates/config-server.json.j2 b/roles/consul-cluster/templates/config-server.json.j2 index a2589bc..463ad15 100644 --- a/roles/consul-cluster/templates/config-server.json.j2 +++ b/roles/consul-cluster/templates/config-server.json.j2 @@ -7,7 +7,7 @@ "bootstrap" : true, "log_file" : "/var/consul-cluster/log/consul_cluster.log", "log_level" : "info", - "retry_join" : ["{{ consul.cluster_ip }}","{{ consul.cluster_ip_backup }}"], + "retry_join" : ["{{ consul.cluster_ip[0] }}","{{ consul.cluster_ip[1] }}","{{ consul.cluster_ip[2] }}"], "retry_interval" : "10s" } diff --git a/roles/consul-external/files/consul-external/bin/consul b/roles/consul-external/files/consul-external/bin/consul deleted file mode 100755 index ab545e3..0000000 Binary files a/roles/consul-external/files/consul-external/bin/consul and /dev/null differ diff --git a/roles/consul-external/files/consul-external/bin/consul-replicate b/roles/consul-external/files/consul-external/bin/consul-replicate deleted file mode 100755 index ff88875..0000000 Binary files a/roles/consul-external/files/consul-external/bin/consul-replicate and /dev/null differ diff --git a/roles/consul-external/files/consul-external/bin/consul_replicate.sh b/roles/consul-external/files/consul-external/bin/consul_replicate.sh deleted file mode 100755 index 629595c..0000000 --- a/roles/consul-external/files/consul-external/bin/consul_replicate.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# -killall -9 consul-replicate -cd /opt/consul-internal/bin/;./consul-replicate -prefix "device_info@consul-external_new" &>/dev/null & -cd /opt/consul-internal/bin/;./consul-replicate -prefix "device_list@consul-external_new" &>/dev/null & -cd /opt/consul-internal/bin/;./consul-replicate -prefix "tags@consul-external_new" &>/dev/null & diff --git a/roles/consul-external/files/consul-external/etc/consul/config-server.json b/roles/consul-external/files/consul-external/etc/consul/config-server.json deleted file mode 100644 index 28d9939..0000000 --- a/roles/consul-external/files/consul-external/etc/consul/config-server.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "server" : true, - "datacenter" : "consul-ADC01", - "data_dir" : "/var/consul-external", - "encrypt" : "h1fHoHnJ+n+764ObqTNVjw==", - "disable_update_check" : true, - "log_file" : "/var/consul-external/log/consul_external.log", - "retry_join" : ["192.168.200.5"], - "retry_interval" : "10s" -} - diff --git a/roles/consul-external/files/consul-external/etc/systemd/consul-server.service b/roles/consul-external/files/consul-external/etc/systemd/consul-server.service deleted file mode 100644 index b543262..0000000 --- a/roles/consul-external/files/consul-external/etc/systemd/consul-server.service +++ /dev/null @@ -1,14 +0,0 @@ -# Systemd unit file for default tomcat -# - -[Unit] -Description=Consul-external -After=network.target - -[Service] -EnvironmentFile=/opt/consul-external/etc/systemd/consul.conf -ExecStartPre=/opt/consul-external/script/consul_bind_ip_generate.sh -ExecStart=/opt/consul-external/bin/consul agent -config-dir /opt/consul-external/etc/ -config-file /opt/consul-external/etc/consul/config-client.json -bind ${CONSUL_BIND_ADDRESS} -client 0.0.0.0 - -[Install] -WantedBy=multi-user.target diff --git a/roles/consul-external/files/consul-external/etc/systemd/consul.conf b/roles/consul-external/files/consul-external/etc/systemd/consul.conf deleted file mode 100644 index e69de29..0000000 diff --git a/roles/consul-external/files/consul-external/install.sh b/roles/consul-external/files/consul-external/install.sh deleted file mode 100755 index 96c1354..0000000 --- a/roles/consul-external/files/consul-external/install.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -rm -rf /usr/lib/systemd/system/consul*service -rm -rf /usr/lib/systemd/system/consul*service -rm -rf /var/consul* -cp -f /opt/consul-external/etc/systemd/consul-server.service /usr/lib/systemd/system/consul-server-external.service -cp -f /opt/consul-external/bin/consul /usr/bin/ -ln -sf /opt/consul-external/script/consul_path_setup.sh /etc/profile.d/ - - - diff --git a/roles/consul-external/files/consul-external/script/consul_bind_ip_generate.sh b/roles/consul-external/files/consul-external/script/consul_bind_ip_generate.sh deleted file mode 100755 index cf601d4..0000000 --- a/roles/consul-external/files/consul-external/script/consul_bind_ip_generate.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -#BIND_ADDRESS=$(/usr/sbin/ip route | /usr/bin/grep default | head -n 1 | /usr/bin/awk '{print $5}' | /usr/bin/xargs ifconfig | /usr/bin/grep "inet" | /usr/bin/grep -v "inet6" | /usr/bin/awk '{print $2}') -BIND_ADDRESS=$(ifconfig ens1.200 | grep inet | head -1 |awk '{print $2}') -#BIND_ADDRESS=192.168.200.5 -systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS} diff --git a/roles/consul-external/files/consul-external/script/consul_path_setup.sh b/roles/consul-external/files/consul-external/script/consul_path_setup.sh deleted file mode 100755 index e32711b..0000000 --- a/roles/consul-external/files/consul-external/script/consul_path_setup.sh +++ /dev/null @@ -1,3 +0,0 @@ - -PATH=/opt/consul-external/bin:${PATH} -export PATH diff --git a/roles/consul-external/tasks/main.yml b/roles/consul-external/tasks/main.yml deleted file mode 100644 index 170f2a5..0000000 --- a/roles/consul-external/tasks/main.yml +++ /dev/null @@ -1,29 +0,0 @@ -- name: "copy consul-external to destination server" - copy: - src: "{{ role_path }}/files/" - dest: /opt - mode: 0755 - -- name: "Template consul_bind_ip_generate.sh" - template: - src: "{{ role_path }}/templates/consul_bind_ip_generate.sh.j2" - dest: /opt/consul-external/script/consul_bind_ip_generate.sh - tags: template - -- name: "Template config-server.json" - template: - #src: "{{ role_path }}/templates/config-server.json.j2" - #dest: /opt/consul-external/etc/consul/config-server.json - src: "{{ role_path }}/templates/config-client.json.j2" - dest: /opt/consul-external/etc/consul/config-client.json - tags: template - -- name: "Install consul-external" - shell: cd /opt/consul-external;sh install.sh - -- name: "Start consul-external" - systemd: - name: consul-server-external - state: restarted - enabled: yes - daemon_reload: yes diff --git a/roles/consul-external/templates/config-client.json.j2 b/roles/consul-external/templates/config-client.json.j2 deleted file mode 100644 index c2ed014..0000000 --- a/roles/consul-external/templates/config-client.json.j2 +++ /dev/null @@ -1,9 +0,0 @@ -{ - "server" : false, - "datacenter" : "{{ consul.datacenter }}", - "data_dir" : "/var/consul-external", - "encrypt" : "{{ consul.dckey }}", - "disable_update_check" : true, - "retry_join" : ["{{ consul.cluster_ip }}","{{ consul.cluster_ip_backup }}"], - "retry_interval" : "10s" -} diff --git a/roles/consul-external/templates/config-server.json.j2 b/roles/consul-external/templates/config-server.json.j2 deleted file mode 100644 index eb09769..0000000 --- a/roles/consul-external/templates/config-server.json.j2 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "server" : true, - "datacenter" : "{{ consul.datacenter }}", - "data_dir" : "/var/consul-external", - "encrypt" : "{{ consul.dckey }}", - "disable_update_check" : true, - "log_file" : "/var/consul-external/log/consul_external.log", - "retry_join" : ["{{ consul.cluster_ip }}"], - "retry_interval" : "10s" -} - diff --git a/roles/consul-external/templates/consul_bind_ip_generate.sh.j2 b/roles/consul-external/templates/consul_bind_ip_generate.sh.j2 deleted file mode 100755 index 4d1f074..0000000 --- a/roles/consul-external/templates/consul_bind_ip_generate.sh.j2 +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -BIND_ADDRESS=$(ifconfig {{ consul.external_ethname }} | grep inet | head -1 |awk '{print $2}') -systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS} diff --git a/roles/consul-internal_mcn01/files/consul-internal/bin/consul b/roles/consul-internal_mcn01/files/consul-internal/bin/consul deleted file mode 100755 index ab545e3..0000000 Binary files a/roles/consul-internal_mcn01/files/consul-internal/bin/consul and /dev/null differ diff --git a/roles/consul-internal_mcn01/files/consul-internal/bin/consul-replicate b/roles/consul-internal_mcn01/files/consul-internal/bin/consul-replicate deleted file mode 100755 index ff88875..0000000 Binary files a/roles/consul-internal_mcn01/files/consul-internal/bin/consul-replicate and /dev/null differ diff --git a/roles/consul-internal_mcn01/files/consul-internal/etc/consul/config-client.json b/roles/consul-internal_mcn01/files/consul-internal/etc/consul/config-client.json deleted file mode 100644 index 03fe824..0000000 --- a/roles/consul-internal_mcn01/files/consul-internal/etc/consul/config-client.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "server" : false, - "datacenter" : "consul-ADC01", - "data_dir" : "/var/consul-internal", - "encrypt" : "h1fHoHnJ+n+764ObqTNVjw==", - "disable_update_check" : true, - "log_level" : "err", - "log_file" : "/var/consul-internal/log/consul_internal.log", - "retry_join" : ["192.168.200.5"], - "retry_interval" : "10s" -} diff --git a/roles/consul-internal_mcn01/files/consul-internal/etc/systemd/consul-client.service b/roles/consul-internal_mcn01/files/consul-internal/etc/systemd/consul-client.service deleted file mode 100644 index 5ba0713..0000000 --- a/roles/consul-internal_mcn01/files/consul-internal/etc/systemd/consul-client.service +++ /dev/null @@ -1,14 +0,0 @@ -# Systemd unit file for default tomcat -# - -[Unit] -Description=Consul-internal -After=network.target - -[Service] -EnvironmentFile=/opt/consul-internal/etc/systemd/consul.conf -ExecStartPre=/opt/consul-internal/script/consul_bind_ip_generate.sh -ExecStart=/opt/consul-internal/bin/consul agent -config-dir /opt/consul-internal/etc/ -config-file /opt/consul-internal/etc/consul/config-client.json -bind ${CONSUL_BIND_ADDRESS} - -[Install] -WantedBy=multi-user.target diff --git a/roles/consul-internal_mcn01/files/consul-internal/etc/systemd/consul.conf b/roles/consul-internal_mcn01/files/consul-internal/etc/systemd/consul.conf deleted file mode 100644 index e69de29..0000000 diff --git a/roles/consul-internal_mcn01/files/consul-internal/install.sh b/roles/consul-internal_mcn01/files/consul-internal/install.sh deleted file mode 100755 index ce3a01a..0000000 --- a/roles/consul-internal_mcn01/files/consul-internal/install.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -rm -f /usr/lib/systemd/system/consul*service -rm -f /usr/lib/systemd/system/consul*service -cp -f /opt/consul-internal/etc/systemd/consul-client.service /usr/lib/systemd/system/consul-client-internal.service -cp -f /opt/consul-internal/bin/consul /usr/bin/ -ln -sf /opt/consul-internal/script/consul_path_setup.sh /etc/profile.d/ - - - diff --git a/roles/consul-internal_mcn01/files/consul-internal/script/consul_bind_ip_generate.sh b/roles/consul-internal_mcn01/files/consul-internal/script/consul_bind_ip_generate.sh deleted file mode 100755 index df570e9..0000000 --- a/roles/consul-internal_mcn01/files/consul-internal/script/consul_bind_ip_generate.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -BIND_ADDRESS=$(ifconfig ens1.200 | grep inet | head -1 |awk '{print $2}') -systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS} diff --git a/roles/consul-internal_mcn01/files/consul-internal/script/consul_path_setup.sh b/roles/consul-internal_mcn01/files/consul-internal/script/consul_path_setup.sh deleted file mode 100755 index f97b3cf..0000000 --- a/roles/consul-internal_mcn01/files/consul-internal/script/consul_path_setup.sh +++ /dev/null @@ -1,3 +0,0 @@ - -PATH=/opt/consul-internal/bin:${PATH} -export PATH diff --git a/roles/consul-internal_mcn01/tasks/main.yml b/roles/consul-internal_mcn01/tasks/main.yml deleted file mode 100644 index a73ce25..0000000 --- a/roles/consul-internal_mcn01/tasks/main.yml +++ /dev/null @@ -1,27 +0,0 @@ -- name: "copy consul-internal to destination server" - copy: - src: "{{ role_path }}/files/" - dest: /opt - mode: 0755 - -- name: "Template consul_bind_ip_generate.sh" - template: - src: "{{ role_path }}/templates/consul_bind_ip_generate.sh.j2" - dest: /opt/consul-internal/script/consul_bind_ip_generate.sh - tags: template - -- name: "Template config-client.json" - template: - src: "{{ role_path }}/templates/config-client.json.j2" - dest: /opt/consul-internal/etc/consul/config-client.json - tags: template - -- name: "Install consul-internal" - shell: cd /opt/consul-internal;sh install.sh - -- name: "Start consul-internal" - systemd: - name: consul-client-internal - state: restarted - enabled: yes - daemon_reload: yes diff --git a/roles/consul-internal_mcn01/templates/config-client.json.j2 b/roles/consul-internal_mcn01/templates/config-client.json.j2 deleted file mode 100644 index f640272..0000000 --- a/roles/consul-internal_mcn01/templates/config-client.json.j2 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "server" : false, - "datacenter" : "{{ consul.datacenter }}", - "data_dir" : "/var/consul-internal", - "encrypt" : "{{ consul.dckey }}", - "disable_update_check" : true, - "log_level" : "err", - "log_file" : "/var/consul-internal/log/consul_internal.log", - "retry_join" : ["{{ server_ip }}"], - "retry_interval" : "10s" -} diff --git a/roles/consul-internal_mcn01/templates/consul_bind_ip_generate.sh.j2 b/roles/consul-internal_mcn01/templates/consul_bind_ip_generate.sh.j2 deleted file mode 100755 index f5e07de..0000000 --- a/roles/consul-internal_mcn01/templates/consul_bind_ip_generate.sh.j2 +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -BIND_ADDRESS=$(ifconfig {{ consul.mcn01_internal_ethname }} | grep inet | head -1 |awk '{print $2}') -systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS} diff --git a/roles/consul-internal_mcn23/files/consul-internal/bin/consul b/roles/consul-internal_mcn23/files/consul-internal/bin/consul deleted file mode 100755 index ab545e3..0000000 Binary files a/roles/consul-internal_mcn23/files/consul-internal/bin/consul and /dev/null differ diff --git a/roles/consul-internal_mcn23/files/consul-internal/bin/consul-replicate b/roles/consul-internal_mcn23/files/consul-internal/bin/consul-replicate deleted file mode 100755 index ff88875..0000000 Binary files a/roles/consul-internal_mcn23/files/consul-internal/bin/consul-replicate and /dev/null differ diff --git a/roles/consul-internal_mcn23/files/consul-internal/etc/consul/config-client.json b/roles/consul-internal_mcn23/files/consul-internal/etc/consul/config-client.json deleted file mode 100644 index 03fe824..0000000 --- a/roles/consul-internal_mcn23/files/consul-internal/etc/consul/config-client.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "server" : false, - "datacenter" : "consul-ADC01", - "data_dir" : "/var/consul-internal", - "encrypt" : "h1fHoHnJ+n+764ObqTNVjw==", - "disable_update_check" : true, - "log_level" : "err", - "log_file" : "/var/consul-internal/log/consul_internal.log", - "retry_join" : ["192.168.200.5"], - "retry_interval" : "10s" -} diff --git a/roles/consul-internal_mcn23/files/consul-internal/etc/systemd/consul-client.service b/roles/consul-internal_mcn23/files/consul-internal/etc/systemd/consul-client.service deleted file mode 100644 index 5ba0713..0000000 --- a/roles/consul-internal_mcn23/files/consul-internal/etc/systemd/consul-client.service +++ /dev/null @@ -1,14 +0,0 @@ -# Systemd unit file for default tomcat -# - -[Unit] -Description=Consul-internal -After=network.target - -[Service] -EnvironmentFile=/opt/consul-internal/etc/systemd/consul.conf -ExecStartPre=/opt/consul-internal/script/consul_bind_ip_generate.sh -ExecStart=/opt/consul-internal/bin/consul agent -config-dir /opt/consul-internal/etc/ -config-file /opt/consul-internal/etc/consul/config-client.json -bind ${CONSUL_BIND_ADDRESS} - -[Install] -WantedBy=multi-user.target diff --git a/roles/consul-internal_mcn23/files/consul-internal/etc/systemd/consul.conf b/roles/consul-internal_mcn23/files/consul-internal/etc/systemd/consul.conf deleted file mode 100644 index e69de29..0000000 diff --git a/roles/consul-internal_mcn23/files/consul-internal/install.sh b/roles/consul-internal_mcn23/files/consul-internal/install.sh deleted file mode 100755 index ce3a01a..0000000 --- a/roles/consul-internal_mcn23/files/consul-internal/install.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -rm -f /usr/lib/systemd/system/consul*service -rm -f /usr/lib/systemd/system/consul*service -cp -f /opt/consul-internal/etc/systemd/consul-client.service /usr/lib/systemd/system/consul-client-internal.service -cp -f /opt/consul-internal/bin/consul /usr/bin/ -ln -sf /opt/consul-internal/script/consul_path_setup.sh /etc/profile.d/ - - - diff --git a/roles/consul-internal_mcn23/files/consul-internal/script/consul_bind_ip_generate.sh b/roles/consul-internal_mcn23/files/consul-internal/script/consul_bind_ip_generate.sh deleted file mode 100755 index df570e9..0000000 --- a/roles/consul-internal_mcn23/files/consul-internal/script/consul_bind_ip_generate.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -BIND_ADDRESS=$(ifconfig ens1.200 | grep inet | head -1 |awk '{print $2}') -systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS} diff --git a/roles/consul-internal_mcn23/files/consul-internal/script/consul_path_setup.sh b/roles/consul-internal_mcn23/files/consul-internal/script/consul_path_setup.sh deleted file mode 100755 index f97b3cf..0000000 --- a/roles/consul-internal_mcn23/files/consul-internal/script/consul_path_setup.sh +++ /dev/null @@ -1,3 +0,0 @@ - -PATH=/opt/consul-internal/bin:${PATH} -export PATH diff --git a/roles/consul-internal_mcn23/tasks/main.yml b/roles/consul-internal_mcn23/tasks/main.yml deleted file mode 100644 index a73ce25..0000000 --- a/roles/consul-internal_mcn23/tasks/main.yml +++ /dev/null @@ -1,27 +0,0 @@ -- name: "copy consul-internal to destination server" - copy: - src: "{{ role_path }}/files/" - dest: /opt - mode: 0755 - -- name: "Template consul_bind_ip_generate.sh" - template: - src: "{{ role_path }}/templates/consul_bind_ip_generate.sh.j2" - dest: /opt/consul-internal/script/consul_bind_ip_generate.sh - tags: template - -- name: "Template config-client.json" - template: - src: "{{ role_path }}/templates/config-client.json.j2" - dest: /opt/consul-internal/etc/consul/config-client.json - tags: template - -- name: "Install consul-internal" - shell: cd /opt/consul-internal;sh install.sh - -- name: "Start consul-internal" - systemd: - name: consul-client-internal - state: restarted - enabled: yes - daemon_reload: yes diff --git a/roles/consul-internal_mcn23/templates/config-client.json.j2 b/roles/consul-internal_mcn23/templates/config-client.json.j2 deleted file mode 100644 index f640272..0000000 --- a/roles/consul-internal_mcn23/templates/config-client.json.j2 +++ /dev/null @@ -1,11 +0,0 @@ -{ - "server" : false, - "datacenter" : "{{ consul.datacenter }}", - "data_dir" : "/var/consul-internal", - "encrypt" : "{{ consul.dckey }}", - "disable_update_check" : true, - "log_level" : "err", - "log_file" : "/var/consul-internal/log/consul_internal.log", - "retry_join" : ["{{ server_ip }}"], - "retry_interval" : "10s" -} diff --git a/roles/consul-internal_mcn23/templates/consul_bind_ip_generate.sh.j2 b/roles/consul-internal_mcn23/templates/consul_bind_ip_generate.sh.j2 deleted file mode 100755 index 2928f91..0000000 --- a/roles/consul-internal_mcn23/templates/consul_bind_ip_generate.sh.j2 +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -BIND_ADDRESS=$(ifconfig {{ consul.mcn23_internal_ethname }} | grep inet | head -1 |awk '{print $2}') -systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS} diff --git a/roles/oam_cluster/templates/application-centos2.properties.j2 b/roles/oam_cluster/templates/application-centos2.properties.j2 index 879ca42..b811d4c 100644 --- a/roles/oam_cluster/templates/application-centos2.properties.j2 +++ b/roles/oam_cluster/templates/application-centos2.properties.j2 @@ -1,3 +1,3 @@ -spring.datasource.password={{ mariadb.password }} +spring.datasource.password={{ mariadb.cluster_password }} server.port=50080 -oam.cluster.db.ip={{ mariadb.cluster_ip }} \ No newline at end of file +oam.cluster.db.ip={{ mariadb.cluster_ip }} diff --git a/roles/oam_core/templates/application-centos2.properties.j2 b/roles/oam_core/templates/application-centos2.properties.j2 index 3318b86..56bb817 100644 --- a/roles/oam_core/templates/application-centos2.properties.j2 +++ b/roles/oam_core/templates/application-centos2.properties.j2 @@ -1,59 +1,59 @@ -sn.config=/opt/tsg/etc/tsg_sn.json -mxn.config=/opt/tsg/etc/tsg_chassis_ip.json -tags.config=/opt/tsg/etc/tsg_tags.json -port.config=/opt/tsg/etc/tsg_chassis_port.json - -mxn.dir=/opt/tsg/bin/ -mxn.tsg_software_reboot=${mxn.dir}tsg_software_reboot -mxn.tsg_hardware_reboot=${mxn.dir}tsg_hardware_reboot - -oam.syslog.dir=/var/log -# 系统日志最近处理时间保存文件 -oam.syslog.time.file=/opt/tsg/oam_core/syslog_time.txt - -ipmi.sensor.mxn=ipmitool sensor -ipmi.sensor.mcn0=ipmitool -t 0x90 sensor -ipmi.sensor.mcn1=ipmitool -t 0x80 sensor -ipmi.sensor.mcn2=ipmitool -t 0x98 sensor -ipmi.sensor.mcn3=ipmitool -t 0x88 sensor -ipmi.fru.mxn=ipmitool fru -ipmi.fru.mcn0=ipmitool -t 0x90 fru -ipmi.fru.mcn1=ipmitool -t 0x80 fru -ipmi.fru.mcn2=ipmitool -t 0x98 fru -ipmi.fru.mcn3=ipmitool -t 0x88 fru -network.data=/opt/tsg/oam_core/shell/network.sh - -# 本机influx和mariadb地址 -oam.local.server.mariadb.ip={{ oam.mcn0_ip }} -oam.local.server.influxdb.ip={{ oam.mcn0_ip }} -# 集群influx和mariadb地址 -oam.cluster.server.mariadb.ip={{ mariadb.cluster_ip }} -oam.cluster.server.influxdb.ip={{ influxdb.cluster_ip }} - -# influxdb端口 -oam.influx.port=58086 - -# influxdb - cluster -oam.writer.influxcluster.db={{ influxdb.dbname }} - -# datasource - local -datasource.first.password={{ mariadb.password }} - -# datasource - cluster -datasource.second.username={{ mariadb.username }} -datasource.second.password={{ mariadb.password }} - - -oam.writer.scheduler.interval=60000 -oam.writer.scheduler.ipmi.interval=180000 - -logging.level.com.tsg.oam=ERROR -logging.level.com.cs.oam=ERROR - -# Absolute path -oam.rest.oam_core=/opt/tsg/oam_core/application-centos2.properties -oam.rest.oam_snmp=/opt/tsg/snmp/application.properties -oam.rest.oam_snmp_user=/opt/tsg/snmp/AgentConfig.properties -#oam.rest.cli_agent=opt/tsg/snmp/application-centos2.properties -oam.rest.cli=/home/tsgroot/opt/tsg/cli/application.properties - +sn.config=/opt/tsg/etc/tsg_sn.json +mxn.config=/opt/tsg/etc/tsg_chassis_ip.json +tags.config=/opt/tsg/etc/tsg_tags.json +port.config=/opt/tsg/etc/tsg_chassis_port.json + +mxn.dir=/opt/tsg/bin/ +mxn.tsg_software_reboot=${mxn.dir}tsg_software_reboot +mxn.tsg_hardware_reboot=${mxn.dir}tsg_hardware_reboot + +oam.syslog.dir=/var/log +# 系统日志最近处理时间保存文件 +oam.syslog.time.file=/opt/tsg/oam_core/syslog_time.txt + +ipmi.sensor.mxn=ipmitool sensor +ipmi.sensor.mcn0=ipmitool -t 0x90 sensor +ipmi.sensor.mcn1=ipmitool -t 0x80 sensor +ipmi.sensor.mcn2=ipmitool -t 0x98 sensor +ipmi.sensor.mcn3=ipmitool -t 0x88 sensor +ipmi.fru.mxn=ipmitool fru +ipmi.fru.mcn0=ipmitool -t 0x90 fru +ipmi.fru.mcn1=ipmitool -t 0x80 fru +ipmi.fru.mcn2=ipmitool -t 0x98 fru +ipmi.fru.mcn3=ipmitool -t 0x88 fru +network.data=/opt/tsg/oam_core/shell/network.sh + +# 本机influx和mariadb地址 +oam.local.server.mariadb.ip={{ oam.mcn0_ip }} +oam.local.server.influxdb.ip={{ oam.mcn0_ip }} +# 集群influx和mariadb地址 +oam.cluster.server.mariadb.ip={{ mariadb.cluster_ip }} +oam.cluster.server.influxdb.ip={{ influxdb.cluster_ip }} + +# influxdb端口 +oam.influx.port=58086 + +# influxdb - cluster +oam.writer.influxcluster.db={{ influxdb.dbname }} + +# datasource - local +datasource.first.password={{ mariadb.password }} + +# datasource - cluster +datasource.second.username={{ mariadb.username }} +datasource.second.password={{ mariadb.cluster_password }} + + +oam.writer.scheduler.interval=60000 +oam.writer.scheduler.ipmi.interval=180000 + +logging.level.com.tsg.oam=ERROR +logging.level.com.cs.oam=ERROR + +# Absolute path +oam.rest.oam_core=/opt/tsg/oam_core/application-centos2.properties +oam.rest.oam_snmp=/opt/tsg/snmp/application.properties +oam.rest.oam_snmp_user=/opt/tsg/snmp/AgentConfig.properties +#oam.rest.cli_agent=opt/tsg/snmp/application-centos2.properties +oam.rest.cli=/home/tsgroot/opt/tsg/cli/application.properties + diff --git a/roles/oam_core/templates/application.properties.j2 b/roles/oam_core/templates/application.properties.j2 index 5e83eb8..59609c3 100644 --- a/roles/oam_core/templates/application.properties.j2 +++ b/roles/oam_core/templates/application.properties.j2 @@ -74,7 +74,7 @@ datasource.first.configuration.maximum-pool-size=30 # datasource - second datasource.second.jdbc-url=jdbc:mysql://${oam.cluster.server.mariadb.ip}/tsg_cluster?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true datasource.second.username={{ mariadb.username }} -datasource.second.password={{ mariadb.password }} +datasource.second.password={{ mariadb.cluster_password }} datasource.second.driver-class-name=com.mysql.jdbc.Driver datasource.second.configuration.maximum-pool-size=30 @@ -108,4 +108,4 @@ oam.alarm.trap.ipport={{ oam.snmptrapd_ip }}:{{ oam.snmptrapd_port }} oam.alarm.trap.public=public oam.snmp.version=3 oam.snmp.username=tsgadmin -oam.snmp.password=cli202001 +oam.snmp.password=cli202011 diff --git a/roles/oam_mxn_start/tasks/main.yml b/roles/oam_mxn_start/tasks/main.yml index 13ce65e..477c537 100644 --- a/roles/oam_mxn_start/tasks/main.yml +++ b/roles/oam_mxn_start/tasks/main.yml @@ -27,7 +27,7 @@ - name: "Start consul" systemd: - name: consul-server-external + name: consul-client state: restarted enabled: yes daemon_reload: yes diff --git a/roles/oam_snmp/files/snmptrapd.conf b/roles/oam_snmp/files/snmptrapd.conf index 89abb63..a9fabe1 100755 --- a/roles/oam_snmp/files/snmptrapd.conf +++ b/roles/oam_snmp/files/snmptrapd.conf @@ -5,10 +5,10 @@ # authCommunity log,execute,net public # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold -traphandle default /root/traphandler.sh +traphandle default /opt/tsg/snmp/traphandler.sh authCommunity log,execute,net public -createUser -e 0x8000000001020304 tsgadmin SHA cli202004 AES cli202004 +createUser -e 0x8000000001020304 tsgadmin SHA cli202011 AES cli202011 authuser log tsgadmin diff --git a/roles/oam_snmp/tasks/main.yml b/roles/oam_snmp/tasks/main.yml index f2eab09..f15f4a8 100644 --- a/roles/oam_snmp/tasks/main.yml +++ b/roles/oam_snmp/tasks/main.yml @@ -37,6 +37,12 @@ dest: /etc/snmp/ mode: 0755 +- name: "copy traphandler.sh" + copy: + src: "{{role_path}}/files/traphandler.sh" + dest: /opt/tsg/snmp/ + mode: 0755 + - name: "stop snmpd" shell: killall -9 snmpd ignore_errors: true @@ -44,4 +50,4 @@ - name: "restart snmpd" shell: /usr/sbin/snmpd -C -c /etc/snmp/snmpd.conf ignore_errors: true - \ No newline at end of file + diff --git a/roles/setup_mariadb/tasks/main.yml b/roles/setup_mariadb/tasks/main.yml index 4ecbb61..61c226b 100644 --- a/roles/setup_mariadb/tasks/main.yml +++ b/roles/setup_mariadb/tasks/main.yml @@ -5,7 +5,7 @@ - name: "set tsg_oam database" shell: mysql -uroot -p{{ mariadb.password }} -e "create database tsg_oam" - when: return.rc != 0 + #when: return.rc != 0 - name: "Templates tsg_threshold.sql" template: diff --git a/roles/setup_mariadb/templates/tsg_threshold.sql.j2 b/roles/setup_mariadb/templates/tsg_threshold.sql.j2 index 8aa2f2d..3325e20 100644 --- a/roles/setup_mariadb/templates/tsg_threshold.sql.j2 +++ b/roles/setup_mariadb/templates/tsg_threshold.sql.j2 @@ -32,246 +32,256 @@ CREATE TABLE `tsg_threshold` ( `minor_high` float DEFAULT NULL, `minor_low` float DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of tsg_threshold -- ---------------------------- -INSERT INTO `tsg_threshold` VALUES ('1', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'CMM_TEMP', '55', '-10', '46', '-5', '39', '0'); -INSERT INTO `tsg_threshold` VALUES ('2', '{{ adc_tsg_sn.stdout }}_mxn_network_port_1', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('3', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'COME_TEMP', '90', '-10', '76', '-5', '63', '0'); -INSERT INTO `tsg_threshold` VALUES ('4', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'RRC_TEMP', '90', '-10', '76', '-5', '63', '0'); -INSERT INTO `tsg_threshold` VALUES ('5', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'P1V', '1.15', '0.85', '1.1', '0.9', '1.05', '0.95'); -INSERT INTO `tsg_threshold` VALUES ('6', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'PVDDS', '1.07', '0.71', '1.04', '0.73', '1', '0.76'); -INSERT INTO `tsg_threshold` VALUES ('7', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'PVDDF', '1.12', '0.71', '1.1', '0.73', '1.05', '0.76'); -INSERT INTO `tsg_threshold` VALUES ('8', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'P3V3', '3.636', '2.964', '3.535', '3.066', '3.475', '3.139'); -INSERT INTO `tsg_threshold` VALUES ('9', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'P5V', '5.745', '4.234', '5.494', '4.486', '5.242', '4.738'); -INSERT INTO `tsg_threshold` VALUES ('10', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'P12V', '13.583', '10.415', '13.072', '10.926', '12.51', '11.488'); -INSERT INTO `tsg_threshold` VALUES ('11', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'P1V_RT', '1.15', '0.85', '1.1', '0.9', '1.05', '0.95'); -INSERT INTO `tsg_threshold` VALUES ('12', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'Fan_1', '9472', '512', '8672', '672', '7872', '832'); -INSERT INTO `tsg_threshold` VALUES ('13', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'Fan_2', '9472', '512', '8672', '672', '7872', '832'); -INSERT INTO `tsg_threshold` VALUES ('14', '{{ adc_tsg_sn.stdout }}_mxn_hardware', 'Fan_3', '9472', '512', '8672', '672', '7872', '832'); -INSERT INTO `tsg_threshold` VALUES ('15', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0'); -INSERT INTO `tsg_threshold` VALUES ('16', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0'); -INSERT INTO `tsg_threshold` VALUES ('17', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0'); -INSERT INTO `tsg_threshold` VALUES ('18', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'HS_Current0', '40.25', '0', '37.25', '0', '36.75', '0'); -INSERT INTO `tsg_threshold` VALUES ('19', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125'); -INSERT INTO `tsg_threshold` VALUES ('20', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125'); -INSERT INTO `tsg_threshold` VALUES ('21', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125'); -INSERT INTO `tsg_threshold` VALUES ('22', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125'); -INSERT INTO `tsg_threshold` VALUES ('23', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1'); -INSERT INTO `tsg_threshold` VALUES ('24', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1'); -INSERT INTO `tsg_threshold` VALUES ('25', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1'); -INSERT INTO `tsg_threshold` VALUES ('26', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'P1V05_PCH', '1.147', '0.941', '1.117', '0.97', '1.098', '1'); -INSERT INTO `tsg_threshold` VALUES ('27', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('28', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('29', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('30', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'P1V2_DDR0', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('31', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('32', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('33', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('34', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'P1V2_DDR1', '1.303', '1.078', '1.284', '1.117', '1.254', '1.137'); -INSERT INTO `tsg_threshold` VALUES ('35', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12'); -INSERT INTO `tsg_threshold` VALUES ('36', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12'); -INSERT INTO `tsg_threshold` VALUES ('37', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12'); -INSERT INTO `tsg_threshold` VALUES ('38', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'P3V3', '3.569', '2.945', '3.51', '3.042', '3.452', '3.12'); -INSERT INTO `tsg_threshold` VALUES ('39', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74'); -INSERT INTO `tsg_threshold` VALUES ('40', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74'); -INSERT INTO `tsg_threshold` VALUES ('41', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74'); -INSERT INTO `tsg_threshold` VALUES ('42', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74'); -INSERT INTO `tsg_threshold` VALUES ('43', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('44', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('45', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('46', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'PVCCIN_CPU0', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('47', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('48', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('49', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('50', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); -INSERT INTO `tsg_threshold` VALUES ('51', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902'); -INSERT INTO `tsg_threshold` VALUES ('52', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902'); -INSERT INTO `tsg_threshold` VALUES ('53', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902'); -INSERT INTO `tsg_threshold` VALUES ('54', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'PVCCIO', '1.029', '0.853', '1.009', '0.882', '1', '0.902'); -INSERT INTO `tsg_threshold` VALUES ('55', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('56', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('57', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('58', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('59', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('60', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('61', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('62', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('63', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('64', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('65', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('66', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('67', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('68', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('69', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('70', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); -INSERT INTO `tsg_threshold` VALUES ('71', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('72', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('73', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('74', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('75', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('76', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('77', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('78', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_XL710_82599', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('79', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('80', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('81', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('82', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('83', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('84', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('85', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('86', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); -INSERT INTO `tsg_threshold` VALUES ('87', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('88', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('89', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('90', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('91', '{{ adc_tsg_sn.stdout }}_mcn0_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('92', '{{ adc_tsg_sn.stdout }}_mcn1_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('93', '{{ adc_tsg_sn.stdout }}_mcn2_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('94', '{{ adc_tsg_sn.stdout }}_mcn3_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); -INSERT INTO `tsg_threshold` VALUES ('95', '{{ adc_tsg_sn.stdout }}_mxn_cpu', 'laLoad_1', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('96', '{{ adc_tsg_sn.stdout }}_mcn0_cpu', 'laLoad_1', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('97', '{{ adc_tsg_sn.stdout }}_mcn1_cpu', 'laLoad_1', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('98', '{{ adc_tsg_sn.stdout }}_mcn2_cpu', 'laLoad_1', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('99', '{{ adc_tsg_sn.stdout }}_mcn3_cpu', 'laLoad_1', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('100', '{{ adc_tsg_sn.stdout }}_mxn_cpu', 'laLoad_5', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('101', '{{ adc_tsg_sn.stdout }}_mcn0_cpu', 'laLoad_5', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('102', '{{ adc_tsg_sn.stdout }}_mcn1_cpu', 'laLoad_5', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('103', '{{ adc_tsg_sn.stdout }}_mcn2_cpu', 'laLoad_5', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('104', '{{ adc_tsg_sn.stdout }}_mcn3_cpu', 'laLoad_5', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('105', '{{ adc_tsg_sn.stdout }}_mxn_cpu', 'laLoad_10', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('106', '{{ adc_tsg_sn.stdout }}_mcn0_cpu', 'laLoad_10', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('107', '{{ adc_tsg_sn.stdout }}_mcn1_cpu', 'laLoad_10', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('108', '{{ adc_tsg_sn.stdout }}_mcn2_cpu', 'laLoad_10', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('109', '{{ adc_tsg_sn.stdout }}_mcn3_cpu', 'laLoad_10', '99', null, '85', null, null, null); -INSERT INTO `tsg_threshold` VALUES ('110', '{{ adc_tsg_sn.stdout }}_mxn_cpu', 'ssCpuUser', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('111', '{{ adc_tsg_sn.stdout }}_mcn0_cpu', 'ssCpuUser', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('112', '{{ adc_tsg_sn.stdout }}_mcn1_cpu', 'ssCpuUser', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('113', '{{ adc_tsg_sn.stdout }}_mcn2_cpu', 'ssCpuUser', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('114', '{{ adc_tsg_sn.stdout }}_mcn3_cpu', 'ssCpuUser', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('115', '{{ adc_tsg_sn.stdout }}_mxn_cpu', 'ssCpuSystem', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('116', '{{ adc_tsg_sn.stdout }}_mcn0_cpu', 'ssCpuSystem', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('117', '{{ adc_tsg_sn.stdout }}_mcn1_cpu', 'ssCpuSystem', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('118', '{{ adc_tsg_sn.stdout }}_mcn2_cpu', 'ssCpuSystem', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('119', '{{ adc_tsg_sn.stdout }}_mcn3_cpu', 'ssCpuSystem', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('120', '{{ adc_tsg_sn.stdout }}_mxn_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); -INSERT INTO `tsg_threshold` VALUES ('121', '{{ adc_tsg_sn.stdout }}_mcn0_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); -INSERT INTO `tsg_threshold` VALUES ('122', '{{ adc_tsg_sn.stdout }}_mcn1_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); -INSERT INTO `tsg_threshold` VALUES ('123', '{{ adc_tsg_sn.stdout }}_mcn2_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); -INSERT INTO `tsg_threshold` VALUES ('124', '{{ adc_tsg_sn.stdout }}_mcn3_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); -INSERT INTO `tsg_threshold` VALUES ('125', '{{ adc_tsg_sn.stdout }}_mxn_memory', 'memTotalReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('126', '{{ adc_tsg_sn.stdout }}_mcn0_memory', 'memTotalReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('127', '{{ adc_tsg_sn.stdout }}_mcn1_memory', 'memTotalReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('128', '{{ adc_tsg_sn.stdout }}_mcn2_memory', 'memTotalReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('129', '{{ adc_tsg_sn.stdout }}_mcn3_memory', 'memTotalReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('130', '{{ adc_tsg_sn.stdout }}_mxn_memory', 'memAvailReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('131', '{{ adc_tsg_sn.stdout }}_mcn0_memory', 'memAvailReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('132', '{{ adc_tsg_sn.stdout }}_mcn1_memory', 'memAvailReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('133', '{{ adc_tsg_sn.stdout }}_mcn2_memory', 'memAvailReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('134', '{{ adc_tsg_sn.stdout }}_mcn3_memory', 'memAvailReal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('135', '{{ adc_tsg_sn.stdout }}_mxn_memory', 'memTotalSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('136', '{{ adc_tsg_sn.stdout }}_mcn0_memory', 'memTotalSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('137', '{{ adc_tsg_sn.stdout }}_mcn1_memory', 'memTotalSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('138', '{{ adc_tsg_sn.stdout }}_mcn2_memory', 'memTotalSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('139', '{{ adc_tsg_sn.stdout }}_mcn3_memory', 'memTotalSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('140', '{{ adc_tsg_sn.stdout }}_mxn_memory', 'memAvailSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('141', '{{ adc_tsg_sn.stdout }}_mcn0_memory', 'memAvailSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('142', '{{ adc_tsg_sn.stdout }}_mcn1_memory', 'memAvailSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('143', '{{ adc_tsg_sn.stdout }}_mcn2_memory', 'memAvailSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('144', '{{ adc_tsg_sn.stdout }}_mcn3_memory', 'memAvailSwap', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('145', '{{ adc_tsg_sn.stdout }}_mxn_memory', 'memTotalFree', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('146', '{{ adc_tsg_sn.stdout }}_mcn0_memory', 'memTotalFree', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('147', '{{ adc_tsg_sn.stdout }}_mcn1_memory', 'memTotalFree', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('148', '{{ adc_tsg_sn.stdout }}_mcn2_memory', 'memTotalFree', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('149', '{{ adc_tsg_sn.stdout }}_mcn3_memory', 'memTotalFree', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('150', '{{ adc_tsg_sn.stdout }}_mxn_disk', 'dskTotal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('151', '{{ adc_tsg_sn.stdout }}_mcn0_disk', 'dskTotal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('152', '{{ adc_tsg_sn.stdout }}_mcn1_disk', 'dskTotal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('153', '{{ adc_tsg_sn.stdout }}_mcn2_disk', 'dskTotal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('154', '{{ adc_tsg_sn.stdout }}_mcn3_disk', 'dskTotal', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('155', '{{ adc_tsg_sn.stdout }}_mxn_disk', 'dskUsed', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('156', '{{ adc_tsg_sn.stdout }}_mcn0_disk', 'dskUsed', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('157', '{{ adc_tsg_sn.stdout }}_mcn1_disk', 'dskUsed', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('158', '{{ adc_tsg_sn.stdout }}_mcn2_disk', 'dskUsed', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('159', '{{ adc_tsg_sn.stdout }}_mcn3_disk', 'dskUsed', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('160', '{{ adc_tsg_sn.stdout }}_mxn_disk', 'dskAvail', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('161', '{{ adc_tsg_sn.stdout }}_mcn0_disk', 'dskAvail', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('162', '{{ adc_tsg_sn.stdout }}_mcn1_disk', 'dskAvail', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('163', '{{ adc_tsg_sn.stdout }}_mcn2_disk', 'dskAvail', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('164', '{{ adc_tsg_sn.stdout }}_mcn3_disk', 'dskAvail', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('165', '{{ adc_tsg_sn.stdout }}_mxn_disk', 'dskPercent', '90', null, '80', null, '70', null); -INSERT INTO `tsg_threshold` VALUES ('166', '{{ adc_tsg_sn.stdout }}_mcn0_disk', 'dskPercent', '90', null, '80', null, '70', null); -INSERT INTO `tsg_threshold` VALUES ('167', '{{ adc_tsg_sn.stdout }}_mcn1_disk', 'dskPercent', '90', null, '80', null, '70', null); -INSERT INTO `tsg_threshold` VALUES ('168', '{{ adc_tsg_sn.stdout }}_mcn2_disk', 'dskPercent', '90', null, '80', null, '70', null); -INSERT INTO `tsg_threshold` VALUES ('169', '{{ adc_tsg_sn.stdout }}_mcn3_disk', 'dskPercent', '90', null, '80', null, '70', null); -INSERT INTO `tsg_threshold` VALUES ('170', '{{ adc_tsg_sn.stdout }}_mxn_disk', 'dskPercentSled', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('171', '{{ adc_tsg_sn.stdout }}_mcn0_disk', 'dskPercentSled', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('172', '{{ adc_tsg_sn.stdout }}_mcn1_disk', 'dskPercentSled', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('173', '{{ adc_tsg_sn.stdout }}_mcn2_disk', 'dskPercentSled', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('174', '{{ adc_tsg_sn.stdout }}_mcn3_disk', 'dskPercentSled', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('175', '{{ adc_tsg_sn.stdout }}_mxn_network_port_1', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('176', '{{ adc_tsg_sn.stdout }}_mxn_network_port_2', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('177', '{{ adc_tsg_sn.stdout }}_mxn_network_port_3', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('178', '{{ adc_tsg_sn.stdout }}_mxn_network_port_4', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('179', '{{ adc_tsg_sn.stdout }}_mxn_network_port_5', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('180', '{{ adc_tsg_sn.stdout }}_mxn_network_port_6', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('181', '{{ adc_tsg_sn.stdout }}_mxn_network_port_9', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('182', '{{ adc_tsg_sn.stdout }}_mxn_network_port_10', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('183', '{{ adc_tsg_sn.stdout }}_mxn_network_port_37', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('184', '{{ adc_tsg_sn.stdout }}_mxn_network_port_39', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('185', '{{ adc_tsg_sn.stdout }}_mxn_network_port_41', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('186', '{{ adc_tsg_sn.stdout }}_mxn_network_port_43', 'ifInOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('187', '{{ adc_tsg_sn.stdout }}_mxn_network_port_2', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('188', '{{ adc_tsg_sn.stdout }}_mxn_network_port_3', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('189', '{{ adc_tsg_sn.stdout }}_mxn_network_port_4', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('190', '{{ adc_tsg_sn.stdout }}_mxn_network_port_5', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('191', '{{ adc_tsg_sn.stdout }}_mxn_network_port_6', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('192', '{{ adc_tsg_sn.stdout }}_mxn_network_port_9', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('193', '{{ adc_tsg_sn.stdout }}_mxn_network_port_10', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('194', '{{ adc_tsg_sn.stdout }}_mxn_network_port_37', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('195', '{{ adc_tsg_sn.stdout }}_mxn_network_port_39', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('196', '{{ adc_tsg_sn.stdout }}_mxn_network_port_41', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('197', '{{ adc_tsg_sn.stdout }}_mxn_network_port_43', 'ifInUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('198', '{{ adc_tsg_sn.stdout }}_mxn_network_port_1', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('199', '{{ adc_tsg_sn.stdout }}_mxn_network_port_2', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('200', '{{ adc_tsg_sn.stdout }}_mxn_network_port_3', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('201', '{{ adc_tsg_sn.stdout }}_mxn_network_port_4', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('202', '{{ adc_tsg_sn.stdout }}_mxn_network_port_5', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('203', '{{ adc_tsg_sn.stdout }}_mxn_network_port_6', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('204', '{{ adc_tsg_sn.stdout }}_mxn_network_port_9', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('205', '{{ adc_tsg_sn.stdout }}_mxn_network_port_10', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('206', '{{ adc_tsg_sn.stdout }}_mxn_network_port_37', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('207', '{{ adc_tsg_sn.stdout }}_mxn_network_port_39', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('208', '{{ adc_tsg_sn.stdout }}_mxn_network_port_41', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('209', '{{ adc_tsg_sn.stdout }}_mxn_network_port_43', 'ifInErrors', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('210', '{{ adc_tsg_sn.stdout }}_mxn_network_port_1', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('211', '{{ adc_tsg_sn.stdout }}_mxn_network_port_2', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('212', '{{ adc_tsg_sn.stdout }}_mxn_network_port_3', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('213', '{{ adc_tsg_sn.stdout }}_mxn_network_port_4', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('214', '{{ adc_tsg_sn.stdout }}_mxn_network_port_5', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('215', '{{ adc_tsg_sn.stdout }}_mxn_network_port_6', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('216', '{{ adc_tsg_sn.stdout }}_mxn_network_port_9', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('217', '{{ adc_tsg_sn.stdout }}_mxn_network_port_10', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('218', '{{ adc_tsg_sn.stdout }}_mxn_network_port_37', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('219', '{{ adc_tsg_sn.stdout }}_mxn_network_port_39', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('220', '{{ adc_tsg_sn.stdout }}_mxn_network_port_41', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('221', '{{ adc_tsg_sn.stdout }}_mxn_network_port_43', 'ifOutOctets', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('222', '{{ adc_tsg_sn.stdout }}_mxn_network_port_1', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('223', '{{ adc_tsg_sn.stdout }}_mxn_network_port_2', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('224', '{{ adc_tsg_sn.stdout }}_mxn_network_port_3', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('225', '{{ adc_tsg_sn.stdout }}_mxn_network_port_4', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('226', '{{ adc_tsg_sn.stdout }}_mxn_network_port_5', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('227', '{{ adc_tsg_sn.stdout }}_mxn_network_port_6', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('228', '{{ adc_tsg_sn.stdout }}_mxn_network_port_9', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('229', '{{ adc_tsg_sn.stdout }}_mxn_network_port_10', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('230', '{{ adc_tsg_sn.stdout }}_mxn_network_port_37', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('231', '{{ adc_tsg_sn.stdout }}_mxn_network_port_39', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('232', '{{ adc_tsg_sn.stdout }}_mxn_network_port_41', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('233', '{{ adc_tsg_sn.stdout }}_mxn_network_port_43', 'ifOutUcastPkts', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('234', '{{ adc_tsg_sn.stdout }}_mxn_memory', 'memPercent', null, null, null, null, null, null); -INSERT INTO `tsg_threshold` VALUES ('235', '{{ adc_tsg_sn.stdout }}_mcn0_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null); -INSERT INTO `tsg_threshold` VALUES ('236', '{{ adc_tsg_sn.stdout }}_mcn1_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null); -INSERT INTO `tsg_threshold` VALUES ('237', '{{ adc_tsg_sn.stdout }}_mcn2_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null); -INSERT INTO `tsg_threshold` VALUES ('238', '{{ adc_tsg_sn.stdout }}_mcn3_memory', 'memPercent', '0.9', null, '0.8', null, '0.7', null); +INSERT INTO `tsg_threshold` VALUES ('1', '{{ SN }}_mxn_hardware', 'CMM_TEMP', '55', '-10', '46', '-5', '39', '0'); +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 ('4', '{{ SN }}_mxn_hardware', 'RRC_TEMP', '90', '-10', '76', '-5', '63', '0'); +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 ('6', '{{ SN }}_mxn_hardware', 'PVDDS', '1.07', '0.71', '1.04', '0.73', '1', '0.76'); +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 ('8', '{{ SN }}_mxn_hardware', 'P3V3', '3.636', '2.964', '3.535', '3.066', '3.475', '3.139'); +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 ('10', '{{ SN }}_mxn_hardware', 'P12V', '13.583', '10.415', '13.072', '10.926', '12.51', '11.488'); +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 ('12', '{{ SN }}_mxn_hardware', 'Fan_1', '9472', '512', '8672', '672', '7872', '832'); +INSERT INTO `tsg_threshold` VALUES ('13', '{{ SN }}_mxn_hardware', 'Fan_2', '9472', '512', '8672', '672', '7872', '832'); +INSERT INTO `tsg_threshold` VALUES ('14', '{{ SN }}_mxn_hardware', 'Fan_3', '9472', '512', '8672', '672', '7872', '832'); +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 ('16', '{{ SN }}_mcn1_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', '36.75', '0'); +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 ('19', '{{ SN }}_mcn0_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', '12.25', '11.125'); +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 ('22', '{{ SN }}_mcn3_hardware', 'HS_Volt0', '12.75', '10.5', '12.5', '10.875', '12.25', '11.125'); +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 ('24', '{{ SN }}_mcn1_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', '1.098', '1'); +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 ('27', '{{ SN }}_mcn0_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', '1.254', '1.137'); +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 ('30', '{{ SN }}_mcn3_hardware', 'P1V2_DDR0', '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', '1.254', '1.137'); +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 ('33', '{{ SN }}_mcn2_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', '1.254', '1.137'); +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 ('36', '{{ SN }}_mcn1_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', '3.452', '3.12'); +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 ('39', '{{ SN }}_mcn0_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', '5.233', '4.74'); +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 ('42', '{{ SN }}_mcn3_hardware', 'P5V', '5.453', '4.494', '5.343', '4.631', '5.233', '4.74'); +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 ('44', '{{ SN }}_mcn1_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', '1.94', '1.352'); +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 ('47', '{{ SN }}_mcn0_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', '1.94', '1.352'); +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 ('50', '{{ SN }}_mcn3_hardware', 'PVCCIN_CPU1', '2.019', '1.323', '1.98', '1.343', '1.94', '1.352'); +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 ('52', '{{ SN }}_mcn1_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', '1', '0.902'); +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 ('55', '{{ SN }}_mcn0_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('56', '{{ SN }}_mcn1_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('57', '{{ SN }}_mcn2_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('58', '{{ SN }}_mcn3_hardware', 'Temp_LL', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('59', '{{ SN }}_mcn0_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('60', '{{ SN }}_mcn1_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('61', '{{ SN }}_mcn2_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('62', '{{ SN }}_mcn3_hardware', 'Temp_LR', '45', '-10', '42', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('63', '{{ SN }}_mcn0_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('64', '{{ SN }}_mcn1_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('65', '{{ SN }}_mcn2_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('66', '{{ SN }}_mcn3_hardware', 'Temp_PCH', '82', '-10', '74', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('67', '{{ SN }}_mcn0_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('68', '{{ SN }}_mcn1_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('69', '{{ SN }}_mcn2_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('70', '{{ SN }}_mcn3_hardware', 'Temp_UL', '85', '-10', '75', '-5', '66', '0'); +INSERT INTO `tsg_threshold` VALUES ('71', '{{ SN }}_mcn0_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('72', '{{ SN }}_mcn1_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('73', '{{ SN }}_mcn2_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('74', '{{ SN }}_mcn3_hardware', 'Temp_UR', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('75', '{{ SN }}_mcn0_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', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('77', '{{ SN }}_mcn2_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', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('79', '{{ SN }}_mcn0_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('80', '{{ SN }}_mcn1_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('81', '{{ SN }}_mcn2_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('82', '{{ SN }}_mcn3_hardware', 'Temp_mIO0', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('83', '{{ SN }}_mcn0_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('84', '{{ SN }}_mcn1_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('85', '{{ SN }}_mcn2_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('86', '{{ SN }}_mcn3_hardware', 'Temp_mIO1', '60', '-10', '50', '-5', '40', '0'); +INSERT INTO `tsg_threshold` VALUES ('87', '{{ SN }}_mcn0_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('88', '{{ SN }}_mcn1_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('89', '{{ SN }}_mcn2_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('90', '{{ SN }}_mcn3_hardware', 'PECI_CPU0', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('91', '{{ SN }}_mcn0_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('92', '{{ SN }}_mcn1_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('93', '{{ SN }}_mcn2_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('94', '{{ SN }}_mcn3_hardware', 'PECI_CPU1', '90', '-10', '80', '-5', '70', '0'); +INSERT INTO `tsg_threshold` VALUES ('95', '{{ SN }}_mxn_cpu', 'laLoad_1', '99', null, '85', 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 ('97', '{{ SN }}_mcn1_cpu', 'laLoad_1', '99', null, '85', 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 ('99', '{{ SN }}_mcn3_cpu', 'laLoad_1', '99', null, '85', 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 ('101', '{{ SN }}_mcn0_cpu', 'laLoad_5', '99', null, '85', 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 ('103', '{{ SN }}_mcn2_cpu', 'laLoad_5', '99', null, '85', 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 ('105', '{{ SN }}_mxn_cpu', 'laLoad_10', '99', null, '85', 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 ('107', '{{ SN }}_mcn1_cpu', 'laLoad_10', '99', null, '85', 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 ('109', '{{ SN }}_mcn3_cpu', 'laLoad_10', '99', null, '85', 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 ('112', '{{ SN }}_mcn1_cpu', 'ssCpuUser', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('113', '{{ SN }}_mcn2_cpu', 'ssCpuUser', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('114', '{{ SN }}_mcn3_cpu', 'ssCpuUser', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('115', '{{ SN }}_mxn_cpu', 'ssCpuSystem', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('116', '{{ SN }}_mcn0_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 ('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 ('121', '{{ SN }}_mcn0_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); +INSERT INTO `tsg_threshold` VALUES ('122', '{{ SN }}_mcn1_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); +INSERT INTO `tsg_threshold` VALUES ('123', '{{ SN }}_mcn2_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); +INSERT INTO `tsg_threshold` VALUES ('124', '{{ SN }}_mcn3_cpu', 'ssCpuIdle', null, '15', null, '30', null, '40'); +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 ('127', '{{ SN }}_mcn1_memory', 'memTotalReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('128', '{{ SN }}_mcn2_memory', 'memTotalReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('129', '{{ SN }}_mcn3_memory', 'memTotalReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('130', '{{ SN }}_mxn_memory', 'memAvailReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('131', '{{ SN }}_mcn0_memory', 'memAvailReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('132', '{{ SN }}_mcn1_memory', 'memAvailReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('133', '{{ SN }}_mcn2_memory', 'memAvailReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('134', '{{ SN }}_mcn3_memory', 'memAvailReal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('135', '{{ SN }}_mxn_memory', 'memTotalSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('136', '{{ SN }}_mcn0_memory', 'memTotalSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('137', '{{ SN }}_mcn1_memory', 'memTotalSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('138', '{{ SN }}_mcn2_memory', 'memTotalSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('139', '{{ SN }}_mcn3_memory', 'memTotalSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('140', '{{ SN }}_mxn_memory', 'memAvailSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('141', '{{ SN }}_mcn0_memory', 'memAvailSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('142', '{{ SN }}_mcn1_memory', 'memAvailSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('143', '{{ SN }}_mcn2_memory', 'memAvailSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('144', '{{ SN }}_mcn3_memory', 'memAvailSwap', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('145', '{{ SN }}_mxn_memory', 'memTotalFree', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('146', '{{ SN }}_mcn0_memory', 'memTotalFree', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('147', '{{ SN }}_mcn1_memory', 'memTotalFree', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('148', '{{ SN }}_mcn2_memory', 'memTotalFree', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('149', '{{ SN }}_mcn3_memory', 'memTotalFree', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('150', '{{ SN }}_mxn_disk', 'dskTotal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('151', '{{ SN }}_mcn0_disk', 'dskTotal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('152', '{{ SN }}_mcn1_disk', 'dskTotal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('153', '{{ SN }}_mcn2_disk', 'dskTotal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('154', '{{ SN }}_mcn3_disk', 'dskTotal', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('155', '{{ SN }}_mxn_disk', 'dskUsed', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('156', '{{ SN }}_mcn0_disk', 'dskUsed', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('157', '{{ SN }}_mcn1_disk', 'dskUsed', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('158', '{{ SN }}_mcn2_disk', 'dskUsed', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('159', '{{ SN }}_mcn3_disk', 'dskUsed', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('160', '{{ SN }}_mxn_disk', 'dskAvail', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('161', '{{ SN }}_mcn0_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 ('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 ('166', '{{ SN }}_mcn0_disk', 'dskPercent', '90', null, '80', null, '70', null); +INSERT INTO `tsg_threshold` VALUES ('167', '{{ SN }}_mcn1_disk', 'dskPercent', '90', null, '80', null, '70', null); +INSERT INTO `tsg_threshold` VALUES ('168', '{{ SN }}_mcn2_disk', 'dskPercent', '90', null, '80', null, '70', null); +INSERT INTO `tsg_threshold` VALUES ('169', '{{ SN }}_mcn3_disk', 'dskPercent', '90', null, '80', null, '70', 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 ('172', '{{ SN }}_mcn1_disk', 'dskPercentSled', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('173', '{{ SN }}_mcn2_disk', 'dskPercentSled', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('174', '{{ SN }}_mcn3_disk', 'dskPercentSled', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('175', '{{ SN }}_mxn_network_port_1', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('176', '{{ SN }}_mxn_network_port_2', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('177', '{{ SN }}_mxn_network_port_3', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('178', '{{ SN }}_mxn_network_port_4', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('179', '{{ SN }}_mxn_network_port_5', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('180', '{{ SN }}_mxn_network_port_6', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('181', '{{ SN }}_mxn_network_port_9', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('182', '{{ SN }}_mxn_network_port_10', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('183', '{{ SN }}_mxn_network_port_37', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('184', '{{ SN }}_mxn_network_port_39', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('185', '{{ SN }}_mxn_network_port_41', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('186', '{{ SN }}_mxn_network_port_43', 'ifInOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('187', '{{ SN }}_mxn_network_port_2', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('188', '{{ SN }}_mxn_network_port_3', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('189', '{{ SN }}_mxn_network_port_4', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('190', '{{ SN }}_mxn_network_port_5', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('191', '{{ SN }}_mxn_network_port_6', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('192', '{{ SN }}_mxn_network_port_9', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('193', '{{ SN }}_mxn_network_port_10', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('194', '{{ SN }}_mxn_network_port_37', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('195', '{{ SN }}_mxn_network_port_39', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('196', '{{ SN }}_mxn_network_port_41', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('197', '{{ SN }}_mxn_network_port_43', 'ifInUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('198', '{{ SN }}_mxn_network_port_1', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('199', '{{ SN }}_mxn_network_port_2', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('200', '{{ SN }}_mxn_network_port_3', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('201', '{{ SN }}_mxn_network_port_4', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('202', '{{ SN }}_mxn_network_port_5', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('203', '{{ SN }}_mxn_network_port_6', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('204', '{{ SN }}_mxn_network_port_9', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('205', '{{ SN }}_mxn_network_port_10', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('206', '{{ SN }}_mxn_network_port_37', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('207', '{{ SN }}_mxn_network_port_39', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('208', '{{ SN }}_mxn_network_port_41', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('209', '{{ SN }}_mxn_network_port_43', 'ifInErrors', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('210', '{{ SN }}_mxn_network_port_1', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('211', '{{ SN }}_mxn_network_port_2', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('212', '{{ SN }}_mxn_network_port_3', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('213', '{{ SN }}_mxn_network_port_4', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('214', '{{ SN }}_mxn_network_port_5', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('215', '{{ SN }}_mxn_network_port_6', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('216', '{{ SN }}_mxn_network_port_9', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('217', '{{ SN }}_mxn_network_port_10', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('218', '{{ SN }}_mxn_network_port_37', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('219', '{{ SN }}_mxn_network_port_39', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('220', '{{ SN }}_mxn_network_port_41', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('221', '{{ SN }}_mxn_network_port_43', 'ifOutOctets', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('222', '{{ SN }}_mxn_network_port_1', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('223', '{{ SN }}_mxn_network_port_2', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('224', '{{ SN }}_mxn_network_port_3', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('225', '{{ SN }}_mxn_network_port_4', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('226', '{{ SN }}_mxn_network_port_5', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('227', '{{ SN }}_mxn_network_port_6', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('228', '{{ SN }}_mxn_network_port_9', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('229', '{{ SN }}_mxn_network_port_10', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('230', '{{ SN }}_mxn_network_port_37', 'ifOutUcastPkts', null, null, null, null, null, null); +INSERT INTO `tsg_threshold` VALUES ('231', '{{ SN }}_mxn_network_port_39', '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 ('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 ('236', '{{ SN }}_mcn1_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.8', null, '0.7', 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 ('239', '{{ SN }}_mcn0_app', 'AppRxLoss', '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, '0.00001', 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 ('242', '{{ SN }}_mcn1_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, '0.00001', 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 ('245', '{{ SN }}_mcn0_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, '0.00001', 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 ('248', '{{ SN }}_mcn3_interface', 'PhyTxLoss', '0.0005', null, '0.0001', null, '0.00001', null); diff --git a/roles/tsg-cli-mcn0/tasks/main.yml b/roles/tsg-cli-mcn0/tasks/main.yml index 47c90b2..5082a0f 100644 --- a/roles/tsg-cli-mcn0/tasks/main.yml +++ b/roles/tsg-cli-mcn0/tasks/main.yml @@ -17,13 +17,12 @@ src: "{{ role_path }}/templates/tsg_sn.json.j2" dest: /opt/tsg/etc/tsg_sn.json tags: template - when: not use_chassis_hardware_sn | bool -- name: "copy tsg_sn.json to destination server" - synchronize: - src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" - dest: "/opt/tsg/etc/tsg_sn.json" - when: use_chassis_hardware_sn | bool +#- name: "copy tsg_sn.json to destination server" +# synchronize: +# src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" +# dest: "/opt/tsg/etc/tsg_sn.json" +# when: use_chassis_hardware_sn | bool - name: Template the tsg_tags.json template: @@ -48,7 +47,6 @@ dest: "/opt/tsg/etc/" - name: "copy tsg-monitor.sh to destination server" - #synchronize: copy: src: "{{ role_path }}/files/tsg-monitor.sh" dest: "/opt/tsg/tsg-monitor/" diff --git a/roles/tsg-cli-mcn1/tasks/main.yml b/roles/tsg-cli-mcn1/tasks/main.yml index 6e4796a..98401d2 100644 --- a/roles/tsg-cli-mcn1/tasks/main.yml +++ b/roles/tsg-cli-mcn1/tasks/main.yml @@ -17,13 +17,12 @@ src: "{{ role_path }}/templates/tsg_sn.json.j2" dest: /opt/tsg/etc/tsg_sn.json tags: template - when: not use_chassis_hardware_sn | bool -- name: "copy tsg_sn.json to destination server" - synchronize: - src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" - dest: "/opt/tsg/etc/tsg_sn.json" - when: use_chassis_hardware_sn | bool +#- name: "copy tsg_sn.json to destination server" +# synchronize: +# src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" +# dest: "/opt/tsg/etc/tsg_sn.json" +# when: use_chassis_hardware_sn | bool - name: Template the tsg_tags.json template: @@ -48,7 +47,6 @@ dest: "/opt/tsg/etc/" - name: "copy tsg-monitor.sh to destination server" - #synchronize: copy: src: "{{ role_path }}/files/tsg-monitor.sh" dest: "/opt/tsg/tsg-monitor/" diff --git a/roles/tsg-cli-mcn2/tasks/main.yml b/roles/tsg-cli-mcn2/tasks/main.yml index 3841dc8..c487c5e 100644 --- a/roles/tsg-cli-mcn2/tasks/main.yml +++ b/roles/tsg-cli-mcn2/tasks/main.yml @@ -17,13 +17,12 @@ src: "{{ role_path }}/templates/tsg_sn.json.j2" dest: /opt/tsg/etc/tsg_sn.json tags: template - when: not use_chassis_hardware_sn | bool -- name: "copy tsg_sn.json to destination server" - synchronize: - src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" - dest: "/opt/tsg/etc/tsg_sn.json" - when: use_chassis_hardware_sn | bool +#- name: "copy tsg_sn.json to destination server" +# synchronize: +# src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" +# dest: "/opt/tsg/etc/tsg_sn.json" +# when: use_chassis_hardware_sn | bool - name: Template the tsg_tags.json template: @@ -48,7 +47,6 @@ dest: "/opt/tsg/etc/" - name: "copy tsg-monitor.sh to destination server" - #synchronize: copy: src: "{{ role_path }}/files/tsg-monitor.sh" dest: "/opt/tsg/tsg-monitor/" @@ -69,4 +67,4 @@ name: tsg-monitor enabled: yes daemon_reload: yes - state: restarted \ No newline at end of file + state: restarted diff --git a/roles/tsg-cli-mcn3/tasks/main.yml b/roles/tsg-cli-mcn3/tasks/main.yml index 5a740f8..b31b61b 100644 --- a/roles/tsg-cli-mcn3/tasks/main.yml +++ b/roles/tsg-cli-mcn3/tasks/main.yml @@ -17,13 +17,12 @@ src: "{{ role_path }}/templates/tsg_sn.json.j2" dest: /opt/tsg/etc/tsg_sn.json tags: template - when: not use_chassis_hardware_sn | bool -- name: "copy tsg_sn.json to destination server" - synchronize: - src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" - dest: "/opt/tsg/etc/tsg_sn.json" - when: use_chassis_hardware_sn | bool +#- name: "copy tsg_sn.json to destination server" +# synchronize: +# src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" +# dest: "/opt/tsg/etc/tsg_sn.json" +# when: use_chassis_hardware_sn | bool - name: Template the tsg_tags.json template: @@ -48,7 +47,6 @@ dest: "/opt/tsg/etc/" - name: "copy tsg-monitor.sh to destination server" - #synchronize: copy: src: "{{ role_path }}/files/tsg-monitor.sh" dest: "/opt/tsg/tsg-monitor/" @@ -69,4 +67,4 @@ name: tsg-monitor enabled: yes daemon_reload: yes - state: restarted \ No newline at end of file + state: restarted diff --git a/roles/tsg-cli-mxn/tasks/main.yml b/roles/tsg-cli-mxn/tasks/main.yml index 93d38cb..872dcf9 100644 --- a/roles/tsg-cli-mxn/tasks/main.yml +++ b/roles/tsg-cli-mxn/tasks/main.yml @@ -1,32 +1,32 @@ --- -- name: "copy tsg_read_sn.sh to destination server" - copy: - src: "{{ role_path }}/files/tsg_read_sn.sh" - dest: "/tmp/tsg-cli-deploy/" - mode: 0755 - when: use_chassis_hardware_sn | bool - -- name: "copy cmm_api_tst to destination server" - copy: - src: "{{ role_path }}/files/cmm_api_tst" - dest: "/tmp/tsg-cli-deploy/" - mode: 0755 - when: use_chassis_hardware_sn | bool - -- name: "run tsg_read_sn.sh on destination server" - shell: ./tsg_read_sn.sh - args: - chdir: /tmp/tsg-cli-deploy/ - when: use_chassis_hardware_sn | bool - -- name: "scp tsg_sn.json from destination server to local" - fetch: - src: "/tmp/tsg-cli-deploy/tsg_sn.json" - dest: "{{ role_path }}/../tsg-common-files/tsg_sn.json" - flat: yes - when: use_chassis_hardware_sn | bool +#- name: "copy tsg_read_sn.sh to destination server" +# copy: +# src: "{{ role_path }}/files/tsg_read_sn.sh" +# dest: "/tmp/tsg-cli-deploy/" +# mode: 0755 +# when: use_chassis_hardware_sn | bool +# +#- name: "copy cmm_api_tst to destination server" +# copy: +# src: "{{ role_path }}/files/cmm_api_tst" +# dest: "/tmp/tsg-cli-deploy/" +# mode: 0755 +# when: use_chassis_hardware_sn | bool +# +#- name: "run tsg_read_sn.sh on destination server" +# shell: ./tsg_read_sn.sh +# args: +# chdir: /tmp/tsg-cli-deploy/ +# when: use_chassis_hardware_sn | bool +# +#- name: "scp tsg_sn.json from destination server to local" +# fetch: +# src: "/tmp/tsg-cli-deploy/tsg_sn.json" +# dest: "{{ role_path }}/../tsg-common-files/tsg_sn.json" +# flat: yes +# when: use_chassis_hardware_sn | bool -- name: "copy tsg-cli rmp to destination server" +- name: "copy tsg-cli rpm to destination server" synchronize: src: "{{ role_path }}/../tsg-common-files/{{ tsg_cli.rpm_file_name }}" dest: "/tmp/tsg-cli-deploy/" @@ -39,18 +39,22 @@ packages: - /tmp/tsg-cli-deploy/{{ tsg_cli.rpm_file_name }} +- name: "create /opt/tsg/etc/" + file: + path: /opt/tsg/etc + state: directory + - name: Template the tsg_sn.json template: src: "{{ role_path }}/templates/tsg_sn.json.j2" dest: "/opt/tsg/etc/tsg_sn.json" tags: template - when: not use_chassis_hardware_sn | bool -- name: "copy tsg_sn.json to destination server" - copy: - src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" - dest: "/opt/tsg/etc/tsg_sn.json" - when: use_chassis_hardware_sn | bool +#- name: "copy tsg_sn.json to destination server" +# copy: +# src: "{{ role_path }}/../tsg-common-files/tsg_sn.json" +# dest: "/opt/tsg/etc/tsg_sn.json" +# when: use_chassis_hardware_sn | bool - name: Template the tsg_tags.json template: @@ -77,7 +81,6 @@ dest: "/usr/lib/systemd/system" - name: "copy tsg-monitor.sh to destination server" - #synchronize: copy: src: "{{ role_path }}/files/tsg-monitor.sh" dest: "/opt/tsg/tsg-monitor/" diff --git a/roles/tsg-common-files/tsg-cli-1.1.0.32ab89f-1.el7.x86_64.rpm b/roles/tsg-common-files/tsg-cli-1.1.0.32ab89f-1.el7.x86_64.rpm deleted file mode 100644 index d5b405f..0000000 Binary files a/roles/tsg-common-files/tsg-cli-1.1.0.32ab89f-1.el7.x86_64.rpm and /dev/null differ