Page 1 of 1

NRPE on AIX

Posted: Thu Aug 28, 2014 8:13 am
by AMacintosh
I have a few question in regards to the NRPE Agent install on AIX servers.

1.) I have two different documents for the install and the first one lists package dependencies. (fping,awk,etc...) The second doc doesn't mention these. Is there a reason for that?
2.) Why does the ./fullinstallcreate a /opt/nagios directory instead of /usr/local/nagios
3.) How do we configure the NRPE agent to run automatically when the server reboots? I used to have the steps to add the entries to the run levels.
4.) We were trying to verify the packages installed on the server but were facing some issues when using rpm as suggested in the doc. I have attached a screenshot of the commands we were running.

Re: NRPE on AIX

Posted: Thu Aug 28, 2014 9:38 am
by rajasegar
You are in luck. Went though some hassle to get all this figured out.

Install all this in the same sequence.
Download them from the net. This is for AIX 6.1 and above.

rpm -ivh fping-3.8-1.aix5.3.ppc.rpm
rpm -ivh gettext-0.10.40-8.aix5.2.ppc.rpm
rpm -ivh zlib-1.2.8-1.aix5.1.ppc.rpm
rpm -ivh libgcc-4.8.2-1.aix6.1.ppc.rpm
rpm -ivh libffi-3.0.13-1.aix5.1.ppc.rpm
rpm -Uvh gettext-0.18.3.1-1.aix6.1.ppc.rpm --nodeps --force
rpm -Uvh libiconv-1.14-2.aix5.1.ppc.rpm
rpm -ivh libsigsegv-2.10-1.aix5.2.ppc.rpm
rpm -Uvh bash-4.2-7.aix6.1.ppc.rpm
rpm -ivh info-5.1-2.aix5.1.ppc.rpm
rpm -ivh readline-6.2-5.aix5.1.ppc.rpm
rpm -ivh gawk-4.0.2-1.aix5.1.ppc.rpm
rpm -Uvh openssl-1.0.1g-1.aix5.1.ppc.rpm
rpm -ivh net-snmp-5.7.2-1.aix5.1.ppc.rpm
rpm -ivh gdbm-1.10-1.aix5.1.ppc.rpm
rpm -ivh perl-5.8.8-2.aix5.1.ppc.rpm
rpm -ivh perl-DBD-DB2-1-1.aix6.1.ppc.rpm
rpm -ivh perl-DBI-1.622-1.aix5.1.ppc.rpm
rpm -ivh perl-suidperl-5.8.8-2.aix5.1.ppc.rpm
rpm -ivh net-snmp-perl-5.7.2-1.aix5.1.ppc.rpm
rpm -ivh net-snmp-utils-5.7.2-1.aix5.1.ppc.rpm
rpm -ivh openldap-2.4.23-0.3.aix5.1.ppc.rpm
rpm -ivh openldap-devel-2.4.23-0.3.aix5.1.ppc.rpm
rpm -ivh m4-1.4.17-1.aix5.1.ppc.rpm
rpm -ivh bzip2-1.0.6-1.aix5.1.ppc.rpm
rpm -ivh unzip-64bit-6.0-3.aix5.1.ppc.rpm
rpm -ivh make_64-4.0-1.aix5.3.ppc.rpm
rpm -ivh autoconf-2.69-1.aix5.1.ppc.rpm
rpm -ivh automake-1.14.1-1.aix5.1.ppc.rpm
rpm -ivh libidn-1.28-1.aix5.1.ppc.rpm
rpm -ivh pcre-8.34-1.aix5.1.ppc.rpm
rpm -ivh wget-1.15-1.aix5.1.ppc.rpm

Re: NRPE on AIX

Posted: Wed Sep 03, 2014 10:56 am
by AMacintosh
How do we get the agent to run automatically when the server reboots? I thought I remembered that I used to have to create entries in rc2.d

Re: NRPE on AIX

Posted: Wed Sep 03, 2014 3:47 pm
by tmcdonald
Here's a pretty good explanation:

http://unix.ittoolbox.com/groups/techni ... own-912364

Or you could try and run NRPE through xinetd, but that sounds like it could be a lot of extra work (I'm not an AIX guy).

Re: NRPE on AIX

Posted: Wed Sep 03, 2014 6:31 pm
by rajasegar
AMacintosh wrote:How do we get the agent to run automatically when the server reboots? I thought I remembered that I used to have to create entries in rc2.d

Code: Select all


# Make it autostart
mkitab 'nagiosagent:2:once:su - nagios "-c /usr/local/nagios/scripts/yourStartupScript.sh" > /dev/console 2>&1'

#Add to cron to check every 10 minutes if agent is running
crontab -l | awk '{print} END {print "0,10,20,30,40,50 * * * * /usr/local/nagios/scripts/yourAgentAliveCheckScript.sh"}' | crontab

I never use xinetd because it requires root to restart service, if my memory serves me right.
To get root need to go through change management forms, IT Security ID requests etc etc
I rather use the nagios id.

Re: NRPE on AIX

Posted: Thu Sep 04, 2014 2:15 pm
by tmcdonald
Thank you, rajasegar. AMacintosh, let us know how this works out for you.

Re: NRPE on AIX

Posted: Tue Sep 16, 2014 11:01 am
by AMacintosh
Is there a proper document to follow for the installation of NRPE on the different AIX versions? There seem to be a lot floating around and they all differ. We are a bit worried about the packages required as prereqs.

Re: NRPE on AIX

Posted: Tue Sep 16, 2014 11:12 am
by lmiltchev
Is there a proper document to follow for the installation of NRPE on the different AIX versions?
I don't think we do. The only docs that we have on AIX are these:

http://assets.nagios.com/downloads/nagi ... _Agent.pdf

http://assets.nagios.com/downloads/nagi ... Nagios.pdf