NRPE: Unable to read output

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rahul.srivastava1
Posts: 21
Joined: Mon Feb 06, 2017 6:44 am

Re: NRPE: Unable to read output

Post by rahul.srivastava1 »

Hi,

I tried the other option that you suggested i.e. running the check_jmx plugin from the nagios server.

I got this error:

bash-4.1# ./check_jmx -U service:jmx:rmi:///jndi/rmi://168.162.97.143:7780/jmxrmi -O jboss.system:type=ServerInfo -A TotalMemory -w 3247300864 -c 3251495168
JMX CRITICAL - Error opening RMI connection: Connection refused to host: 168.162.97.143; nested exception is:
java.net.ConnectException: Connection timed out
-bash-4.1# pwd
/usr/local/nagios/libexec/nagios-jmx-plugin-1.2.3

When i am running the check_jmx from nagios server to other remote servers, i am getting the output. Only this host has problem.
Can you advise on this error?

Regards,
Rahul
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Unable to read output

Post by tgriep »

The error "Connection refused to host" looks like it could be a firewall issue blocking the Nagios system from polling the server at IP address 168.162.97.143.
Can you login to the server at IP Address 168.162.97.143 and verify that the firewall settings are setup so that the Nagios server can connect to it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rahul.srivastava1
Posts: 21
Joined: Mon Feb 06, 2017 6:44 am

Re: NRPE: Unable to read output

Post by rahul.srivastava1 »

Hi,

I checked and confirm that firewall settings are in place from nagios server to 168.162.97.143 for port 5666 and 7780.

-bash-4.1# telnet 168.162.97.143 5666
Trying 168.162.97.143...
Connected to 168.162.97.143.
Escape character is '^]'.

-bash-4.1# telnet 168.162.97.143 7780
Trying 168.162.97.143...
Connected to 168.162.97.143.
Escape character is '^]'

Please advise further.

Regards,
Rahul
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE: Unable to read output

Post by tgriep »

You may want to check the settings on the server at 168.162.97.143 to see if it is allowing connections from any IP address.
The firewall maybe open but the server can refuse the connection as well.
Also, check the logs on that server for ant clues as to why the connection errors out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked