Authored by zhengyouwei

add 18652008443

@@ -75,8 +75,12 @@ public class CenterSwitchCtrl { @@ -75,8 +75,12 @@ public class CenterSwitchCtrl {
75 @RequestMapping("/doExe") 75 @RequestMapping("/doExe")
76 @ResponseBody 76 @ResponseBody
77 public BaseResponse doExe(@RequestBody CenterSwitchModel centerSwitchModel) { 77 public BaseResponse doExe(@RequestBody CenterSwitchModel centerSwitchModel) {
  78 + String exe = "sh /home/master/ops_sh/script/oneKeySwitch/";
  79 + if("toQcloud".equals(centerSwitchModel.getExe())){
  80 + exe = "ssh root@10.66.4.25 sh /root/script/oneKeySwitch/";
  81 + }
78 82
79 - StringBuilder commond = new StringBuilder("ssh root@10.66.4.25 sh /root/script/oneKeySwitch/"); 83 + StringBuilder commond = new StringBuilder(exe);
80 commond.append(centerSwitchModel.getName()); 84 commond.append(centerSwitchModel.getName());
81 commond.append(".sh "); 85 commond.append(".sh ");
82 commond.append(centerSwitchModel.getExe()); 86 commond.append(centerSwitchModel.getExe());
@@ -4,14 +4,14 @@ sendsms.username=yohoyw @@ -4,14 +4,14 @@ sendsms.username=yohoyw
4 sendsms.pwd=NCftHmJ9 4 sendsms.pwd=NCftHmJ9
5 sendsms.notice.productid=8 5 sendsms.notice.productid=8
6 6
7 -base_mobile=15905144483,18751986615,18502542319 7 +base_mobile=15905144483,18751986615,18502542319,18652008443
8 swaith_mobile=15905144483,18751986615 8 swaith_mobile=15905144483,18751986615
9 9
10 -dns_exception_mobile=13915992579,18751986615,15905144483 10 +dns_exception_mobile=13915992579,18751986615,15905144483,18652008443
11 11
12 -redis_exception_mobile=13515100825,15905144483,18751986615,18502542319 12 +redis_exception_mobile=13515100825,15905144483,18751986615,18502542319,18652008443
13 13
14 -java_service_alarm_mobile=13515100825,15905144483,18751986615,18502542319,18614066537 14 +java_service_alarm_mobile=13515100825,15905144483,18751986615,18502542319,18614066537,18652008443
15 java_service_alarm_flag=true 15 java_service_alarm_flag=true
16 java_service_alarm_cost_threshold=200 16 java_service_alarm_cost_threshold=200
17 17