Fronting Nagiox XI with Mod_Proxy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jzimmerman
Posts: 20
Joined: Thu Aug 08, 2013 8:17 pm
Location: Portland, Oregon, U.S.A
Contact:

Fronting Nagiox XI with Mod_Proxy

Post by jzimmerman »

Is anyone using Apache with Mod_Proxy (or any other proxy for that matter) to front Nagios XI to the Internet? I've tried multiple configurations that work for me for other applications (Thruk being one) with no luck. I can login to XI, but the navigation on the left is collapsed and most of the components don't work. Basically I just get the menu at the top.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Fronting Nagiox XI with Mod_Proxy

Post by scottwilkerson »

Do you have the correct values in Admin -> Manage System Config for:
Program URL:
External URL:

??

Maybe we are missing something...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jzimmerman
Posts: 20
Joined: Thu Aug 08, 2013 8:17 pm
Location: Portland, Oregon, U.S.A
Contact:

Re: Fronting Nagiox XI with Mod_Proxy

Post by jzimmerman »

As far as I know they are correct.

Program URL is http://ipaddress/nagiosxi/
External URL is https://subdomain.example.com/prefix-nagiosxi/

I can login and the navigation bar shows briefly then collapses.

Current apache config on the front end proxy snippet looks like this....

Code: Select all

    ProxyPass /prefix-nagiosxi/ http://ipaddress/nagiosxi/
    ProxyPassReverse /prefix-nagiosxi/ http://ipaddress/nagiosxi/
    ProxyHTMLURLMap http://ipaddress/nagiosxi /prefix-nagiosxi/
    <Location /prefix-nagiosxi/>
        ProxyPassReverse    /
        SetOutputFilter proxy-html
        ProxyHTMLURLMap http://ipaddress/nagiosxi /prefix-nagiosxi/
        ProxyHTMLURLMap /nagiosxi /prefix-nagiosxi/
        ProxyHTMLURLMap /nagiosxi /prefix-nagiosxi
        RequestHeader   unset   Accept-Encoding
    </Location>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Fronting Nagiox XI with Mod_Proxy

Post by scottwilkerson »

Ohhh, You are changing the path too.... I actually don't believe that is going to work. The path is going to need to be the same for both internal and external calls/redirects etc.

I thought you were just mapping the IP/port.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jzimmerman
Posts: 20
Joined: Thu Aug 08, 2013 8:17 pm
Location: Portland, Oregon, U.S.A
Contact:

Re: Fronting Nagiox XI with Mod_Proxy

Post by jzimmerman »

Ah. My reason for wanting the prefix is because I have Nagios XI in multiple disjointed data centers. I'll see if I can rework it with subdomains distinguishing the XI installations rather than prefixes.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Fronting Nagiox XI with Mod_Proxy

Post by abrist »

jzimmerman wrote:Ah. My reason for wanting the prefix is because I have Nagios XI in multiple disjointed data centers. I'll see if I can rework it with subdomains distinguishing the XI installations rather than prefixes.
Alright. Let us know if you have any further issues.
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.
Locked