Page 1 of 1

Compiling and configuring NRPE in a system running AIX7.x

Posted: Mon Oct 07, 2013 11:04 am
by akrishnan
Hello All,

Has anyone compiled NRPEv2.14 or later in a system (IBM POWER) running AIX7.x or later release?

Thanks.

Re: Compiling and configuring NRPE in a system running AIX7.

Posted: Mon Oct 07, 2013 11:08 am
by slansing
It looks like people have successfully used the AIX NRPE 5.3 binaries on 7.1 and it worked fine:

http://unix.ittoolbox.com/groups/techni ... 71-5251253

There are also other places where people have noted this to be working though it may take some trial and error.

Re: Compiling and configuring NRPE in a system running AIX7.

Posted: Mon Oct 07, 2013 4:11 pm
by akrishnan
Thanks for the reference. I understand that we need to allow the AIX client. In my case the entry is there. So any help is appreciated. If execute the command locally, I get the command executed:
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -n
DISK OK - free space: /var 625 MB (61% inode=92%); / 158 MB (41% inode=74%); /usr 1228 MB (23% inode=81%); /tmp 2044 MB (99% inode=99%); /home 504 MB (49% inode=95%); /opt 133 MB (24% inode=78%);| /var=398MB;921;972;0;1024 /=225MB;345;364;0;384 /usr=3891MB;4608;4864;0;5120 /tmp=3MB;1843;1945;0;2048 /home=519MB;921;972;0;1024 /opt=410MB;489;516;0;544

But the from the Nagios server I am not able to get the message back. Instead I am getting the output:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

The only command that I can execute from the Nagios server (to the AIX client) is:
# ./check_nrpe -H 192.168.230.16 check_disk
NRPE v2.14

Re: Compiling and configuring NRPE in a system running AIX7.

Posted: Mon Oct 07, 2013 4:22 pm
by slansing
You need to define the check command like so:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.230.16 -c check_disk
Do you have the following defined in the remote nrpe.cfg?

Code: Select all

dont_blame_nrpe = 1

Code: Select all

allowed_hosts = 127.0.0.1,host.address.of.nagios.server
And in the commands section do you have a command titled:

check_disk?