The nrpe agent is working just fine but when executing this code above i still getting this error: java.net.SocketException: Software caused connection abort: recv failed
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());
}
Change the constructor parameter to true to enable SSL and that should fix your issue.