Authored by zhengyouwei

modify

... ... @@ -96,7 +96,7 @@ public class MObjectInfoCtrl {
selectGroupId = sourceGroupList.get(0).getId();
List<HostInfo> sourceHostList = hostInfoService.getHostInfosByGroupId(selectGroupId);
List<HostInfo> sourceHostList = hostInfoService.getHostInfosByTag("");
if (sourceHostList.size() > 0) {
selectIp = sourceHostList.get(0).getHostIp();
... ... @@ -109,7 +109,7 @@ public class MObjectInfoCtrl {
}
if (StringUtils.isNotBlank(selectGroup)) {
for (HostInfo info : hostInfoService.getHostInfosByGroupId(selectGroupId)) {
for (HostInfo info : hostInfoService.getHostInfosByTag("")) {
ipList.add(info.getHostIp());
}
}
... ... @@ -154,7 +154,7 @@ public class MObjectInfoCtrl {
}
if (StringUtils.isNotBlank(selectGroup)) {
for (HostInfo info : hostInfoService.getHostInfosByGroupId(selectGroupId)) {
for (HostInfo info : hostInfoService.getHostInfosByTag("")) {
ipList.add(info.getHostIp());
}
}
... ...
... ... @@ -73,7 +73,7 @@ public class HostGroupServiceImpl implements IHostGroupService {
@Override
public BaseResponse<Integer> delHostGroupById(int id) {
List<HostInfo> list = hostInfoMapper.selectHostInfosByGroupId(id);
List<HostInfo> list = hostInfoMapper.selectHostInfosByTag("");
if(list != null && list.size() > 0){
return new BaseResponse<Integer>("有主机绑定此机组,请先删除主机信息");
}else{
... ...
... ... @@ -37,7 +37,7 @@ public class InfluxComp implements Runnable {
influxDBClient = InfluxDBFactory.connect(this.influxUrl, this.influxUser, this.influxPwd);
InterVar.EXECUTOR_SERVICE.submit(this);
// InterVar.EXECUTOR_SERVICE.submit(this);
}
public void doService() {
... ...
... ... @@ -26,7 +26,7 @@ import static com.monitor.middleware.rabbitmq.constant.InterVar.EXECUTOR_SERVICE
@Component
public class RabbitMonitTask {
@Scheduled(cron = "* 0/3 * * * ? ")
// @Scheduled(cron = "* 0/3 * * * ? ")
public void doTask() {
for (Map.Entry<Integer, MObjectInfo> entry : InterVar.moMaps.entrySet()) {
EXECUTOR_SERVICE.submit(new OneJob(new ClusterViewJob(entry.getKey())));
... ...
... ... @@ -29,7 +29,7 @@ public class RabbitScanTask {
ITypeInfoService typeService;
//自动发现rabbit监控对象
@Scheduled(cron = "* 0/1 * * * ? ")
// @Scheduled(cron = "* 0/1 * * * ? ")
public void doTask() {
List<TypeInfo> typeInfosList = typeService.queryAllTypesInfo();
... ...
... ... @@ -16,7 +16,7 @@
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<context:property-placeholder location="classpath:/product/*.properties" />
<context:property-placeholder location="classpath:*.properties" />
<context:component-scan base-package="com.monitor" />
... ...
# ******************** influxdb common configs ********************
influxdb.num=2
influxdb.name=aws;qcloud
influxdb.ip=http://192.168.102.162:8086;http://10.66.4.25:8086
influxdb.user=root;root
influxdb.pwd=root;root
influxdb.connect.timeout=15;15
influxdb.read.timeout=40;40
influxdb.write.timeout=20;20
influxdb.num=3
influxdb.name=aws;qcloud;alarm
influxdb.ip=http://127.0.0.1:8086;http://10.66.4.25:8086;http://172.31.31.170:8086
influxdb.user=root;root;root
influxdb.pwd=root;root;root
influxdb.connect.timeout=15;15;15
influxdb.read.timeout=40;40;40
influxdb.write.timeout=20;20;20
aws.influxdb.url=http://123.206.79.151:8086
aws.influxdb.url=http://172.31.31.170:8086
aws.influxdb.user=root
aws.influxdb.pwd=root
\ No newline at end of file
... ...
#---------jdbc config----------
local.jdbc.url=jdbc:mysql://172.16.6.234:3306/yh_ops?characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull
local.jdbc.user=root
local.jdbc.url=jdbc:mysql://localhost:3306/yh_ops?characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull
local.jdbc.user=ops
local.jdbc.password=123456
#---------jdbc config----------
\ No newline at end of file
... ...
# ******************** send sms common configs ********************
sendsms.url=http://www.ztsms.cn/sendSms.do
sendsms.username=youhuo
sendsms.pwd=I8vX4MtK
sendsms.notice.productid=333333
base_mobile=15905144483,18751986615,18652008443
#------------------------------------------支付回调手机号------------------------------------------------
sendsms.alarm.paycallback=15905144483,18751986615,18652008443
#------------------------------------------支付回调手机号------------------------------------------------
#------------------------------------------订单异常手机号------------------------------------------------
sendsms.alarm.mobile.orderexception=15905144483,13585196262,18652008443
#------------------------------------------订单异常手机号------------------------------------------------
#------------------------------------------用户行为异常手机号------------------------------------------------
sendsms.alarm.mobile.userbehaviour=15905144483,18001582955
#------------------------------------------用户行为异常手机号------------------------------------------------
#------------------------------------------数据库异常手机号------------------------------------------------
sendsms.alarm.mobile.dbexception=15905144483,18652008443,18751986615,13811102093
#------------------------------------------数据库异常手机号------------------------------------------------
#-------------------------------------------服务异常告警手机号----------------------------------------------------
sendsms.alarm.mobile.serviceexception.product=15905144483,18652925653,13451938602,18751986615,18652008443
sendsms.alarm.mobile.serviceexception.search=15905144483,18551640215,18652925653,18751986615,18652008443
sendsms.alarm.mobile.serviceexception.guang=15905144483,18001582955,18652925653,18751986615,18652008443,18551607734,15651035157,13951882433
sendsms.alarm.mobile.serviceexception.users=15905144483,18001582955,18652925653,18751986615,18652008443,13951882433,15651035157,18551607734
sendsms.alarm.mobile.serviceexception.order=15905144483,15950561359,13951634768,18652925653,18751986615,18652008443
sendsms.alarm.mobile.serviceexception.sns=15905144483,13451938602,18652925653,18751986615,18652008443
sendsms.alarm.mobile.serviceexception.promotion=15905144483,18652925653,13451938602,18751986615,18652008443
sendsms.alarm.mobile.serviceexception.message=15905144483,18001582955,18652925653,18751986615,18652008443
sendsms.alarm.mobile.serviceexception.resources=15905144483,15950561359,18652925653,18751986615,18652008443
#-------------服务异常告警手机号-------------------
#---------------------Monitor异常数据告警手机号------------------
sendsms.alarm.mobile.monitor.exception=15905144483,18751986615
#---------------------Monitor异常数据告警手机号------------------
#-----------------------------Logs告警模块---------------------------
#短信发送失败量超过阀值 告警手机号
sendsms.alarm.mobile.logs.sns_send_failed=15905144483,18751986615,18652008443,18001582955
#-----------------------------Logs告警模块--------------------------
#-----------------------------监控系统开发人员--------------------------
sendsms.alarm.mobile.ops_manager.developer=13914772123,15150551036
#-----------------------------监控系统开发人员--------------------------
dnspod.mobile=15905144483,18652008443,18751986615
jmxtrans.mobile=15905144483,18751986615
nginx.config.switch.mobile=15905144483,18652008443,18751986615
#订单校验失败
orderinfocheck.mobile=15905144483,18652008443,15950561359,13902496867,18511020499
... ...