[Nagios-users] how does nagios locate config path?

2009-07-02 Thread megamic

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

Re: [Nagios-users] how does nagios locate config path?

2009-07-02 Thread megamic
Thanks for that reply. So the init.d script tell the nagios daemon where to  
find the config files and other things...what about the CGI scripts...how  
do they know where to look?


On Jul 3, 2009 8:56am, 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 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






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