AIX 7.1 - Testing NRPE-CHECK_NRPE: Error - Could not con ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cmontalvo80
Posts: 4
Joined: Thu Apr 13, 2017 11:02 am

AIX 7.1 - Testing NRPE-CHECK_NRPE: Error - Could not con ...

Post by cmontalvo80 »

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:

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.1
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)

Code: Select all

 /usr/local/nagios/libexec/check_nrpe -H localhost -n
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
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):

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
Next, I made sure that my /etc/services had the entry nrpe 5666 in it (CHECK):

Code: Select all

nrpe                    5666/tcp
I then made sure that the daemon is running correctly (CHECK):

Code: Select all

netstat -at | grep nrpe
tcp6       0      0  *.nrpe                 *.*                    LISTEN
tcp4       0      0  *.nrpe                 *.*                    LISTEN
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.
jfrickson

Re: AIX 7.1 - Testing NRPE-CHECK_NRPE: Error - Could not con

Post by jfrickson »

nrpe and check_nrpe log to syslog, so check those.

Additionally, you might want to turn on SSL messages. Set ssl_logging=-1 in nrpe.cfg and use the -s 0xff switch on check_nrpe.
Locked