how does nagios locate config path?

Michael Potter megamic at gmail.com
Fri Jul 3 09:52:00 CEST 2009


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 <mgius at 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
>
> megamic at 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-users at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090703/0f5cb3e5/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list