cat报错

liangxiao 发布于 2017/03/31 13:52
阅读 189
收藏 0

[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)
 

加载中
0
liangxiao
liangxiao

这个是由于打开了cat的告警,而告警ip是test,导致告警发不出去,报错的。

方法1、把server.xml中的告警设置为false

方法2、全局告警配置-》告警服务端  里面的告警注释掉

返回顶部
顶部