Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

NRPE request failing on server

+1 vote
I have a Linux machine running OpenNMS and a client Linux machine with NRPE installed.

In provisiond.log I get the following error

2015-11-03 10:35:18,338 ERROR [scanExecutor-9] o.o.n.p.s.BasicDetector: isServiceDetected: NRPE-NoSSL: An unexpected I/O exception occured contacting address port 5666
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:209) ~[?:1.8.0_60]
        at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_60]
        at java.net.SocketInputStream.read(SocketInputStream.java:223) ~[?:1.8.0_60]
        at org.opennms.netmgt.provision.support.nrpe.NrpePacket.receivePacket(NrpePacket.java:183) ~[opennms-detector-lineoriented-16.0.3.jar:?]
        at org.opennms.netmgt.provision.detector.simple.client.NrpeClient.receiveResponse(NrpeClient.java:160) ~[opennms-detector-lineoriented-16.0.3.jar:?]



In my node foreign-sources xml file I have the following specified:

      <detector name="NRPE-NoSSL" class="org.opennms.netmgt.provision.detector.simple.NrpeDetector">
         <parameter key="command" value="check_load"/>
         <parameter key="port" value="5666"/>
         <parameter key="timeout" value="3000"/>
         <parameter key="retries" value="3"/>
         <parameter key="padding" value="2"/>
         <parameter key="serviceName" value="nrpe"/>
         <parameter key="useSsl" value="false"/>

From my server I can check the load

root@spaceinvader1:/usr/local/nagios/libexec# ./check_nrpe -H -c check_load
OK - load average: 0.68, 0.88, 1.13|load1=0.680;15.000;30.000;0; load5=0.880;10.000;25.000;0; load15=1.130;5.000;20.000;0;


and I can do this from my server

./check_nrpe -H
NRPE v2.8
OpenNMS version
Java version
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Operating system
Linux Ubuntu 12.04
PostgreSQL version
asked Nov 6, 2015 by mkessler_sw (180 points)

Please log in or register to answer this question.