[03-31 05:49:01.526] [ERROR] [AbstractSender] test
java.net.UnknownHostException: test
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
at com.dianping.cat.report.alert.sender.sender.AbstractSender.httpPostSend(AbstractSender.java:78)
at com.dianping.cat.report.alert.sender.sender.AbstractSender.httpSend(AbstractSender.java:112)
at com.dianping.cat.report.alert.sender.sender.MailSender.sendEmail(MailSender.java:59)
at com.dianping.cat.report.alert.sender.sender.MailSender.send(MailSender.java:30)
at com.dianping.cat.report.alert.sender.sender.SenderManager.sendAlert(SenderManager.java:39)
at com.dianping.cat.report.alert.sender.AlertManager.send(AlertManager.java:165)
at com.dianping.cat.report.alert.sender.AlertManager.access$600(AlertManager.java:34)
at com.dianping.cat.report.alert.sender.AlertManager$SendExecutor.run(AlertManager.java:277)
at java.lang.Thread.run(Thread.java:744)
这个是由于打开了cat的告警,而告警ip是test,导致告警发不出去,报错的。
方法1、把server.xml中的告警设置为false
方法2、全局告警配置-》告警服务端 里面的告警注释掉
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。