Aleksey, Thank you for your confirmation and suggestion.
Here is my attempt to test reporting. This cf file performs the bundles specified but does not report anything nor send emails. Please assist on what I am missing. # # testing cfengine with the following: # create folder # copy local file # delete local folder # report # body common control { bundlesequence => { "createFolder", "copyLocalFile", "deleteLocalFolder" }; ignore_missing_bundles => "true"; require_comments => "true"; inputs => { "/var/cfengine/inputs/cfengine_stdlib.cf" }; version => "1.0"; } body executor control { mailfrom => "r...@cfengine.com"; mailto => "t...@cfengine.com"; smtpserver => "smtp.cfengine.com"; } body reporter control { reports => { "all" }; build_directory => "$(sys.workdir)/reports"; error_bars => "true"; report_output => "html"; time_stamps => "true"; } body agent control { verbose => "true"; inform => "true"; } bundle agent createFolder { files: # # the stanza below is optional as cfengine creates the tree # "/tmp/test/create_folder1/create_file4.txt" comment => "create file", perms => mog("755", "root", "root"), create => "true"; "/tmp/test/create_folder1/create_folder2/create_file5.txt" comment => "create file", perms => mog("755", "root", "root"), create => "true"; "/tmp/test/create_folder1/create_folder2/create_file7.txt" comment => "create file", perms => mog("755", "root", "root"), create => "true"; "/tmp/test/create_folder1/create_folder3/create_file6.txt" comment => "create file", perms => mog("755", "root", "root"), create => "true"; "/tmp/test/create_folder1/create_folder3/create_file8.txt" comment => "create file", perms => mog("755", "root", "root"), create => "true"; } bundle agent copyLocalFile { files: "/tmp/test/create_folder1/copy_local_file.txt" comment => "copy local file", preserve => "true", copy_from => myLocalCopy("/etc/hosts"); "/tmp/test/create_folder1/copy_local_file2.txt" comment => "copy local file", preserve => "true", copy_from => myLocalCopy("/tmp/test/create_folder1/copy_local_file.txt"); } bundle agent deleteLocalFolder { files: "/tmp/test/create_folder1/create_folder2" comment => "delete local folders", depth_search => recurse("inf"), file_select => by_name(".*"), delete => tidy; "/tmp/test/create_folder1/create_folder2" comment => "delete directory", delete => tidy; } body copy_from myLocalCopy(from) { source => "$(from)"; } body file_select specifyFile(x) { path_name => { "$(x)" }; file_types => { "plain" , "dir" , "reg" }; file_result => "path_name"; } jerome -----Original Message----- From: Aleksey Tsalolikhin [mailto:atsaloli.t...@gmail.com] Sent: Thursday, July 21, 2011 11:25 AM To: Jerome Yanga Cc: help-cfengine@cfengine.org Subject: Re: CFEngine Help: Creating reports I should add that this relates to scalability - if I have a multi-thousand node compute cluster, I don't want thousands of emails every 5 minutes... thus the default run mode is to run silently. On Thu, Jul 21, 2011 at 11:24 AM, Aleksey Tsalolikhin <atsaloli.t...@gmail.com> wrote: > The normal run mode for Cfengine is silent mode. You should only get messages > when an error is encountered, or, if you have inform mode turned on, when > the configuration has been changed. If Cfengine does not change anything, > it will not generate an email. > > Aleksey > > > On Thu, Jul 21, 2011 at 8:47 AM, Jerome Yanga <jya...@esri.com> wrote: >> Is there a way to email reports only when an error is encountered? Or when a >> configuration has been changed? >> >> >> >> I am running on cfengine-community-3.1.5-1.el5. > _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine