Re: [Nagios-devel] cgi config file name

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] cgi config file name

Post by Guest »

This feature should already be available in the 2.x code. I didn't
add it to the 1.x branch, as it was more of a feature enhancement,
rather than a bug request. Although that argument could be made...


On 9 Aug 2004 at 16:23, duverger wrote:

>
> Hi all,
>
> For H-A cluster purpose, i need to run 2 nagios on the same host. The
> problem is that config file name for cgis is hard coded.
>
> So i added support of environment variable for cgi config file name
> setting.
>
> I hope this could be inserted in nagios dev stream.
>
> Since i do not work with cvs snapshots, i give you a kind of "diff
> file" to see what as changed (very minor) in source code.
>
> In order to use it, you have to load apache env module and declare in
> "NAGIOS/etc/apache.conf" :
>
> SetEnv NAGIOS_CGI_CONFIG_FILE /path/to/cgi/config/filename
>
> *** CUT diff cgiutils.c v1.2 ***
> 240,250d239
> then by parameter given from locations.h */ get_cgi_config_file_by_env(char *filename) env=getenv("NAGIOS_CGI_CONFIG_FILE") ) filename;
> *** CUT diff locations.h.in v1.2 ***
> 34c34
> get_cgi_config_file_by_env("@sysconfdir@/cgi.cfg")
> ---
> > #define DEFAULT_CGI_CONFIG_FILE
> "@sysconfdir@/cgi.cfg"
> *** CUT HERE ***
>
> *** CUT diff cgiutils.h.in v1.2 ***
> 389a390
> > char * get_cgi_config_file_by_env(char *);
> *** CUT HERE ***
>
>
> Regards,
>
> stef



Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org






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