|
@@ -231,15 +231,15 @@ public class ErrorLogJob implements Callable { |
|
@@ -231,15 +231,15 @@ public class ErrorLogJob implements Callable { |
231
|
|
231
|
|
232
|
errorSeriesModel.setMessage(oneRow.get(KINDEMAPS.get("err_msg")).toString());
|
232
|
errorSeriesModel.setMessage(oneRow.get(KINDEMAPS.get("err_msg")).toString());
|
233
|
|
233
|
|
234
|
- if (errorSeriesModel.getMessage().contains("Lua")) {
|
234
|
+ if (errorSeriesModel.getMessage().contains("[lua]")) {
|
235
|
|
235
|
|
236
|
- errorSeriesModel.setType("Lua");
|
236
|
+ errorSeriesModel.setType("Lua-error");
|
237
|
|
237
|
|
238
|
} else if (errorSeriesModel.getMessage().contains(": Connection")) {
|
238
|
} else if (errorSeriesModel.getMessage().contains(": Connection")) {
|
239
|
|
239
|
|
240
|
- errorSeriesModel.setType("Connection");
|
240
|
+ errorSeriesModel.setType("Connection-error");
|
241
|
} else {
|
241
|
} else {
|
242
|
- errorSeriesModel.setType("Others");
|
242
|
+ errorSeriesModel.setType("Others-error");
|
243
|
}
|
243
|
}
|
244
|
|
244
|
|
245
|
errorSeriesModelList.add(errorSeriesModel);
|
245
|
errorSeriesModelList.add(errorSeriesModel);
|
|
@@ -260,7 +260,7 @@ public class ErrorLogJob implements Callable { |
|
@@ -260,7 +260,7 @@ public class ErrorLogJob implements Callable { |
260
|
private String buildAlarmMsg() {
|
260
|
private String buildAlarmMsg() {
|
261
|
|
261
|
|
262
|
StringBuilder builder = new StringBuilder();
|
262
|
StringBuilder builder = new StringBuilder();
|
263
|
- builder.append("{");
|
263
|
+ builder.append("{Warn:Nginx-Error;");
|
264
|
builder.append("云:").append(type).append(";");
|
264
|
builder.append("云:").append(type).append(";");
|
265
|
builder.append("总计:").append(this.errorSeriesModelList.size()).append(";");
|
265
|
builder.append("总计:").append(this.errorSeriesModelList.size()).append(";");
|
266
|
List<ErrorStaModel> operList = null;
|
266
|
List<ErrorStaModel> operList = null;
|
|
@@ -270,7 +270,7 @@ public class ErrorLogJob implements Callable { |
|
@@ -270,7 +270,7 @@ public class ErrorLogJob implements Callable { |
270
|
operList = InterVar.QC_NGINX_ERROR_LIST;
|
270
|
operList = InterVar.QC_NGINX_ERROR_LIST;
|
271
|
}
|
271
|
}
|
272
|
for (ErrorStaModel errorStaModel : operList) {
|
272
|
for (ErrorStaModel errorStaModel : operList) {
|
273
|
- builder.append(errorStaModel.getType()).append(":").append(errorStaModel.getErrorSeriesModelList().size());
|
273
|
+ builder.append("Error:").append(errorStaModel.getType()).append("-").append(errorStaModel.getErrorSeriesModelList().size());
|
274
|
}
|
274
|
}
|
275
|
|
275
|
|
276
|
builder.append("}");
|
276
|
builder.append("}");
|