Nagios XI's BasePath in nginx redirection

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Nagios XI's BasePath in nginx redirection

Post by axvers »

We need to hide Nagios XI and other apps behind a single portal with nginx running.

And I can not find something like BasePath settings on Nagios XI to help me set up a proxy_pass config on that nginx.

e.g.

Code: Select all

location /shadow/nagiosxi {
        auth_basic "Restricted";
        auth_basic_user_file /etc/nginx/conf.d/.nxi.htpasswd;
        proxy_pass http://<nagiosxi_ip>:80/;
    }
1. Do you provide basepath settings that we can directly redirect to the inner Nagios XI?
2. Or, could you provide some advice to achieve the hiding?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI's BasePath in nginx redirection

Post by npolovenko »

@axvers, All apache configs that are serving Nagios XI are located in:
/etc/httpd/conf.d/
Particularly, the nagiosxi config is called:
nagiosxi.conf
I have never worked on integrating Nagios and nginx and we don't really have any tutorial in place.

I found a couple third-party tutorials on Nagios Core and NGINX that may give you some insight:
http://johan.cc/2012/02/06/nagios-nginx/
https://www.linuxhelp.com/how-to-instal ... -on-centos
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Nagios XI's BasePath in nginx redirection

Post by axvers »

Got it.

please lock this, thanks!
Locked