Answered my own question:
"you can configure Apache to pass an environment variable named
NAGIOS_CGI_CONFIG (which points to the correct location) to the CGIs."

On Fri, Jul 3, 2009 at 8:56 AM, Mark Gius <mg...@createspace.com> wrote:

>  The main nagios configuration file is configurable in the init script.
> All other files are read based on the cfg_file and cfg_dir directives in
> that main nagios configuration file.  So you can either use the default
> nagios.cfg, which then points to things in /export/nagios, or edit the init
> script to also use a nagios.cfg in /export/nagios
>
> -Gius
>
> mega...@gmail.com wrote:
>
> Hi
>
> I want to build and install Nagios under a certain path (eg /opt/local) but
> tell it to find it's configuration (nagios.cfg, cgi.cfg) elsewhere (eg
> /export/nagios). There is useful configure directive for the lockfile
> (--with-lockfile), is there something similar for configuration path?
> Ideally I don't want to install anything under /export/nagios as part of the
> installation procedure, another process will deploy the correct
> configuration there, I just want to set Nagios to look there when it runs.
>
> Cheers
>
> ------------------------------
>
> ------------------------------------------------------------------------------
>
>
> ------------------------------
>
> _______________________________________________
> Nagios-users mailing 
> listnagios-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to