Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
银时 committed Sep 24, 2013
1 parent 69c8cce commit 5579ae3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion taokeeper-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ public void sendAlarm( AlarmSettings alarmSettings, HostPerformanceEntity hostPe
new Message( wangwangList, "ZK Server cpu usage too high-" + clusterName, hostPerformanceEntity.getIp() + " cpu usage too high! " + cpuUsage + "-" + maxCpuUsage + "=" + difference,
Message.MessageType.WANGWANG ),
new Message( phoneList, "ZK Server cpu usage too high-" + clusterName, "ZK Server cpu usage too high-" + clusterName + hostPerformanceEntity.getIp() + " cpu usage too high! " + cpuUsage + "-"
+ maxCpuUsage + "=" + difference, Message.MessageType.WANGWANG )
+ maxCpuUsage + "=" + difference, Message.MessageType.SMS )
) );
LOG.info( "WangWangList: " + wangwangList );
}
}
}
Expand All @@ -119,6 +120,7 @@ public void sendAlarm( AlarmSettings alarmSettings, HostPerformanceEntity hostPe
new Message( phoneList, "", "ZK Server memory usage too high-" + clusterName + hostPerformanceEntity.getIp() + memoryUsage + "-" + maxMemoryUsage + "=" + difference, Message.MessageType.SMS )

) );
LOG.info( "WangWangList: " + wangwangList );
}
}
}
Expand All @@ -142,7 +144,7 @@ public void sendAlarm( AlarmSettings alarmSettings, HostPerformanceEntity hostPe
+ maxLoad + "=" + difference, Message.MessageType.SMS )

) );

LOG.info( "WangWangList: " + wangwangList );
}
}
}
Expand Down Expand Up @@ -184,6 +186,7 @@ public void sendAlarm( AlarmSettings alarmSettings, HostPerformanceEntity hostPe
+ hostPerformanceEntity.getIp() + "," + mountedOn + ": " + diskUsage
+ "%, max setting usage is: " + maxDiskUsage + "%", Message.MessageType.SMS )
) );
LOG.info( "WangWangList: " + wangwangList );
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ private boolean sendMessage( String targetAddresses, String subject, String cont
url = StringUtil.replacePlaceholder( SystemConstant.URL_TEMPLEMENT_OF_MESSAG_SEND, map );
}
}
LOG.info( "[Taokeeper]Send message: " + url );
return "ok".equalsIgnoreCase( NetUtil.getContentOfUrl( url ) );

}
Expand Down

0 comments on commit 5579ae3

Please sign in to comment.