Nagios in a subdirectory

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
priwac
Posts: 1
Joined: Sun Apr 05, 2015 4:22 am

Nagios in a subdirectory

Post by priwac »

Hello,

I have installed Nagios on Ubuntu 14.04 server which running nging. Installation process went fine and nagios server is started and running already. The only problem I got is that I cannot set up properly the nginx configuration file, in order to access nagios through my web browser.

I would like to have nagios in a subdirectory, domain.com/stats/nagios. The directories that Nagios is being installed on the server are /etc/nagios and /usr/local/share/nagios.

Can you please help me with the nginx rules?

Thank you.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios in a subdirectory

Post by jdalrymple »

Have you got a cgi wrapper module configured for nginx? If so which one? Here is one individuals howto:

http://johan.cc/2012/02/06/nagios-nginx/

If you don't already have a cgi wrapper you may be best served using default Apache on a different port and using nginx to reverse proxy it.
Locked