<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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<br>
<br>
-Gius<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:megamic@gmail.com">megamic@gmail.com</a> wrote:
<blockquote cite="mid:00163641792ba92f80046dc0befd@google.com"
type="cite">Hi<br>
<br>
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.<br>
<br>
Cheers
<pre wrap="">
<hr size="4" width="90%">
------------------------------------------------------------------------------
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
<br>
</body>
</html>