I need some advice/help with this task - googling for the solution mostly
points me to the docs which I’m not understanding completely.
I’m trying to have cfengine (2.x) look in a specific directory tree and find
all files that end in “part” that are greater than 30 minutes old - once found,
I want to be alerted via email and the email should include the filename.
So, I decided to set up a filter:
filters:
{ GentranPartials
FromCtime: "tminus(0,0,0,0,30,0)"
ToCtime: "now"
Type: "file"
NameRegex: "\>part"
Result: "NameRegex"
}
Then I do this:
files:
GentranQAHost::
${ediQAhomedir}/APPS_STAGE
recurse=inf filter=GentranPartials
But, nothing is happening. I know I don’t understand the “Result” filter
parameter fully so maybe the problem is there?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine