AIX 7.1 - Testing NRPE-CHECK_NRPE: Error - Could not con ...
Posted: Fri Apr 21, 2017 2:15 pm
I'm trying to verify that my NRPE is working correctly within an AIX 7.1 environment. I went through the steps of installing nagios, nrpe as well as the check_nrpe to verify things locally. Since this is an AIX environment, I am running the daemon on inetd instead of xinetd.
I've seen a lot of posts about this particular issue I'm facing, when I try to verify the connection with the CHECK_NRPE locally I see the following:
What I've tried to use to troubleshoot this issue were the following steps:
1. Tried to run my command without SSL in case SSL is not set up (although I believe it is)
The result seems like a whole new other issue, so I'm trying to stick with the SSL version of my call. The next thing I made sure of was that nrpe was running (CHECK):
Next, I made sure that my /etc/services had the entry nrpe 5666 in it (CHECK):
I then made sure that the daemon is running correctly (CHECK):
So I'm at a loss, why is my check_nrpe failing? Anyone have any ideas where else I could look, like a log for example? I enabled the debugging in the nrpe config, however I don't know where this is logging to.
I've seen a lot of posts about this particular issue I'm facing, when I try to verify the connection with the CHECK_NRPE locally I see the following:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not connect to 127.0.0.1. Check system logs on 127.0.0.11. Tried to run my command without SSL in case SSL is not set up (although I believe it is)
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -n
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
Code: Select all
ps -ef | grep nrpe
root 9044076 1 0 13:00:29 - 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
Code: Select all
nrpe 5666/tcpCode: Select all
netstat -at | grep nrpe
tcp6 0 0 *.nrpe *.* LISTEN
tcp4 0 0 *.nrpe *.* LISTEN