Hi,
Is it possible to automatically include subdirectories? So for every config file "<file>.cfg", do an include of the files in "<file>.d"
Stef
On Fri, November 20, 2015 12:57 am, Stef Coene wrote:
Hi,
Is it possible to automatically include subdirectories? So for every config file "<file>.cfg", do an include of the files in "<file>.d"
Stef
Hi,
I actually just committed a change for that earlier this evening :) It'll be in 4.4.
In the meantime, you can simply add a "directory <file>.d/" manually for now and it'll work. For analysis.cfg/d, remember to do your include prior to the 'DEFAULT' section at the very bottom of the file.
HTH -jc
From: Xymon [xymon-bounces at xymon.com] on behalf of Stef Coene [stef.coene at docum.org] Is it possible to automatically include subdirectories? So for every config file "<file>.cfg", do an include of the files in "<file>.d"
This is just so you don't have to put a "directory tasks.d" line in your tasks.cfg?
On 21 Nov 2015 04:26, "Thurston, John R (DOA)" <john.thurston at alaska.gov> wrote:
This is just so you don't have to put a "directory tasks.d" line in your
tasks.cfg?
And if so, will the "directory" option still work?
And if I specify the same directory twice, will the contents be included twice?
J
On Fri, November 20, 2015 5:29 pm, Jeremy Laidman wrote:
On 21 Nov 2015 04:26, "Thurston, John R (DOA)" <john.thurston at alaska.gov> wrote:
This is just so you don't have to put a "directory tasks.d" line in your
tasks.cfg?
And if so, will the "directory" option still work?
And if I specify the same directory twice, will the contents be included twice?
I should clarify here that the change in 4.4 (https://sourceforge.net/p/xymon/code/7755/) is just to have that line present by default in the distributed files and -- probably at the packager/distro level -- create the associated directories.
The change wouldn't automatically come into place or auto search. It's just a convenience line in the default configs.
-jc
participants (4)
-
cleaver@terabithia.org
-
jlaidman@rebel-it.com.au
-
john.thurston@alaska.gov
-
stef.coene@docum.org