how does nagios locate config path?

Mark Gius mgius at createspace.com
Fri Jul 3 00:56:55 CEST 2009


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 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090702/014496db/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