The new gmond configuration file syntax is very nice.  Any chance we can
enable include files?  The mods are minor:

--- lib/libgmond.c      9 Feb 2005 19:17:18 -0000       1.1.1.1
+++ lib/libgmond.c      14 Feb 2005 23:02:11 -0000
@@ -115,6 +115,7 @@
   CFG_SEC("udp_recv_channel", udp_recv_channel_opts, CFGF_MULTI),
   CFG_SEC("tcp_accept_channel", tcp_accept_channel_opts, CFGF_MULTI),
   CFG_SEC("collection_group",  collection_group_opts, CFGF_MULTI),
+  CFG_FUNC("include", cfg_include),
   CFG_END()
 };

--- gmond/conf.pod      9 Feb 2005 19:17:18 -0000       1.1.1.1
+++ gmond/conf.pod      14 Feb 2005 23:15:08 -0000
@@ -321,6 +321,17 @@
 It's important to note that all metrics in a collection group are sent
 even when only a single B<value_threshold> is surpassed.

+=head2 include
+
+Useful if you want to include another configuration file; for example:
+
+  include("globals.conf")
+
+  udp_send_channel {
+    mcast_join = 239.2.11.71
+    port       = 8649
+  }
+
 =head1 ACCESS CONTROL

 The B<udp_recv_channel> and B<tcp_accept_channel> directives

Thank you for considering the patch :-).  David

Reply via email to