Hello All,
Has anyone compiled NRPEv2.14 or later in a system (IBM POWER) running AIX7.x or later release?
Thanks.
Compiling and configuring NRPE in a system running AIX7.x
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Compiling and configuring NRPE in a system running AIX7.
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.
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.
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
/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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Compiling and configuring NRPE in a system running AIX7.
You need to define the check command like so:
Do you have the following defined in the remote nrpe.cfg?
And in the commands section do you have a command titled:
check_disk?
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 192.168.230.16 -c check_diskCode: Select all
dont_blame_nrpe = 1Code: Select all
allowed_hosts = 127.0.0.1,host.address.of.nagios.servercheck_disk?