Not install in /usr/local

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
capriguy84
Posts: 10
Joined: Wed Mar 27, 2013 2:27 pm

Not install in /usr/local

Post by capriguy84 »

Hi All,

I am a prospective customer of Nagios XI and have trouble installing int a location other than /usr/local.

I'd like to install in /opt/nagiosxi & /opt/nagios if possible. There are too many hard-coded references to /usr/local/nagios which make it impossible to achieve this.

I tried using --prefix=/opt/nagios for core and other components. I also used sed to fix some hard coded values, but it doesn't end there. The Web front end is complaining incorrect permissions to config files but doesn't mention which ones. And import CCM components(Import Config) complains about /usr/local not available.

OS: RHEL 6.2
Nagios XI: download latest from Nagios site.

REAL QUESTION: If we purchase the license, will support help us with the installation?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not install in /usr/local

Post by abrist »

Have you tried using symlinks?

Code: Select all

ln -s /usr/local/nagios /opt/nagios
ln -s /usr/local/nagiosxi /opt/nagiosxi
!DISCLAIMER!: Installing XI in a non standard location is not officially supported, though we will do everything we can to help out.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
capriguy84
Posts: 10
Joined: Wed Mar 27, 2013 2:27 pm

Re: Not install in /usr/local

Post by capriguy84 »

Is using symlinks supported? Any known issues with that?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not install in /usr/local

Post by scottwilkerson »

capriguy84 wrote:Is using symlinks supported? Any known issues with that?
As Andy had mentioned
abrist wrote:!DISCLAIMER!: Installing XI in a non standard location is not officially supported, though we will do everything we can to help out.
We have had other people have success doing this but again, not officially supported. One thing to make sure of is the permissions on the directories you will need to pre-create. Here is what they look like on a standard install

Code: Select all

ls -dl /usr/local/nagios /usr/local/nagiosxi
drwxr-xr-x  9 nagios nagios 4096 Nov 28 13:40 /usr/local/nagios
drwxr-xr-x 10 nagios nagios 4096 Sep 13  2012 /usr/local/nagiosxi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked