[PATCH] Let the gui use resource macros
Andreas Ericsson
ae at op5.se
Tue Mar 31 15:19:20 CEST 2009
Make resource ($USERx$) macros available in the GUI
The patch is rather simple. We just let the read_main_config_file()
function in cgi/cgiutils.c grok the "resource_file" variable and
move the function read_resource_file() from base/config.c to
common/macros.c so that it's linked into the cgi's as well as the
core daemon.
Signed-off-by: Andreas Ericsson <ae at op5.se>
The attached patch is also available in the gui/resource-macros branch
of git://git.op5.org/nagios.git. To merge it, use the following command:
git pull git://git.op5.org/nagios.git gui/resource-macros
A customer requested this functionality, and since it was so simple
to arrange it was a nobrainer really.
Also attached as a /usr/bin/patch compatible unified diff that applies
cleanly on top of latest cvs head.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gui-resource-macros.patch
Type: text/x-patch
Size: 5836 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090331/a0b393c9/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list