NRPE on AIX

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

NRPE on AIX

Post 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.
You do not have the required permissions to view the files attached to this post.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: NRPE on AIX

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

Re: NRPE on AIX

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE on AIX

Post 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).
Former Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: NRPE on AIX

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE on AIX

Post by tmcdonald »

Thank you, rajasegar. AMacintosh, let us know how this works out for you.
Former Nagios employee
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

Re: NRPE on AIX

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE on AIX

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked