Alternate Path Install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
keith_buckley
Posts: 6
Joined: Thu Sep 20, 2012 1:24 pm

Alternate Path Install

Post by keith_buckley »

I have successfully installed the NRPE agent for AIX on all my AIX 5.3/6.1 Logical Partitions (LPARs). The software gets installed in /opt/nagios.

However, I want to install the agent on some of our Workload Partitions (WPARs). The /opt filesystem on the WPARs is a read-only copy of the /opt filesystem on the hosting global LPAR. So, I need to install it in a different location (say /usr/local/nagios).

Is there a way to tell the fullinstall script to install the software to an alternate install path?

Also, is there an agent yet that supports AIX 7.1?

Thanks!

Keith Buckley

P.S. I have developed an install script that installs all the required prerequisites and installs the agent without any user input if anyone is interested!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Alternate Path Install

Post by scottwilkerson »

you would need to edit the paths in init.sh as well as in nrpe/mods/cfg/nrpe/common.cfg to the desired paths before installing..
keith_buckley wrote:P.S. I have developed an install script that installs all the required prerequisites and installs the agent without any user input if anyone is interested!
Feel free to share it here!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
keith_buckley
Posts: 6
Joined: Thu Sep 20, 2012 1:24 pm

Re: Alternate Path Install

Post by keith_buckley »

I could have sworn that I had posted this before, but I'll try again:

I figured out how to get it to work. You don't need to install the NRPE agent on the WPAr. You just need to configure it:

1. The NRPE agent must be installed on the global LPAR
2. On the global LPAR, copy the /etc/nagios directory to the WPAR:

Code: Select all

cp -r /etc/nagios /wpars/wpar_name/etc/.

3. Copy over file your Nagios install file to /tmp on the destination host
4. Become root: sudo su -
5. Run cd /tmp
6. Unzip and untar the install file
7. Go into the install directory
9. As root, run ./0-prereqs and then ./1-usersgroups
10. Create an SRC entry on the WPAR for nrpe:

Code: Select all

mkssys -s nrpe -p /opt/nagios/bin/nrpe -a "-c /etc/nagios/nrpe.cfg -d -s" -u 0 -R -d -S -n 15 -f 9

11. Start the nrpe service:

Code: Select all

startsrc -s nrpe

12. Verify that the nrpe service and Nagios is running:

Code: Select all

	# lssrc -s nrpe
	Subsystem         Group            PID          Status
	 nrpe                              15138862     active
	root@host:[/etc/nagios/nrpe]
	# ps -ef | grep nagios
	    root 11141294 18284774   0 14:50:19      ?  0:00 grep nagios
	  nagios 15138862  6488214   0 14:50:11      -  0:00 /opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d -s

13. Create /etc/inittab entry:

Code: Select all

mkitab nrpe:2:once:"startsrc -s nrpe >/dev/null 2>&1"
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Alternate Path Install

Post by slansing »

Excellent information thank you for the explanation.
Locked