Page 1 of 1

[Nagios-devel] sugested update for location.h.in

Posted: Wed Oct 13, 2010 7:02 pm
by Guest

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset*=utf-8''%E2%80%9Cus-ascii
Content-Disposition: inline

Hello,

My first post to the list... I just started playing with nagios and doing
some test developments. For this I need the location of the directory
where all config files reside. I noticed that all config files are defined
with absolute paths and the config directory itself is not defined.

It like to suggest a change to location.h.in so I can define new config
files within a single source file without needing to update other nagios
core files. The patch is attached. It just adds a DEFAULT_CONFIG_DIR
define to location.h.in.

Thanks

-Marcel
--
======-------- Marcel J.E. Mol MESA Consulting B.V.
=======--------- ph. +31-(0)6-54724868 P.O. Box 112
=======--------- [email protected] 2630 AC Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
They couldn't think of a number, Linux user 1148 -- counter.li.org
so they gave me a name! -- Rupert Hine -- www.ruperthine.com

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset*=utf-8''%E2%80%9Cus-ascii
Content-Disposition: attachment; filename="nagios_location.diff"

--- org/nagios-HEAD/include/locations.h.in 2008-11-30 18:22:59.000000000 +0100
+++ nagios-HEAD/include/locations.h.in 2010-10-13 21:38:12.465572936 +0200
@@ -30,6 +30,7 @@
#define DEFAULT_RETENTION_FILE "@localstatedir@/retention.dat"
#define DEFAULT_COMMAND_FILE "@localstatedir@/rw/nagios.cmd"
#define DEFAULT_CONFIG_FILE "@sysconfdir@/nagios.cfg"
+#define DEFAULT_CONFIG_DIR "@sysconfdir@
#define DEFAULT_PHYSICAL_HTML_PATH "@datadir@"
#define DEFAULT_URL_HTML_PATH "@htmurl@"
#define DEFAULT_PHYSICAL_CGIBIN_PATH "@sbindir@"

--BOKacYhQ+x31HxR3--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]