nrpe 代理工作得很好,但是在执行上面的代码时,我仍然收到这个错误:java.net.SocketException:软件导致连接中止:recv 失败
try {
JNRPEClient client = new JNRPEClient("192.168.121.129", 5666, false);
client.setTimeout(30);
ReturnValue ret = client.sendCommand("check_ping -H 192.168.121.129 -t 60 -w 3000.0,80% -c 5000.0,100% -p 5");
System.out.println(ret.getMessage());
System.exit(ret.getStatus().intValue());
} catch (JNRPEClientException exc) {
System.out.println(exc.getCause());
System.out.println(exc.getMessage());
}