Install delta_reporting.cf into your CFEngine policy. Run bundles in the following order. Use of EFL's main methods bundle is encouraged. Don't forget the null parameters.
same as above, want to do this with efl.
12:
Install bin/dhlogmaker and configure CFEngine to install it on all hosts. /opt/delta_reporting/bin/dhlogmaker suggested.
root@nimmsag: /var/cfengine/outputs # perl /opt/delta_reporting/app/script/load /var/cfengine/delta_reporting/log/client_logs/172.17.14.5.log
[Wed Nov 23 15:40:09 2016] [debug] Reading configuration file "/opt/delta_reporting/app/DeltaR.conf"
hostname: Not a recognized flag: -
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
ERROR: These inputs for Validator::client_log are invalid: policy_server timestamp, skipping record at lib/DeltaR/Query.pm line 536
root@nimmsag: /var/cfengine/delta_reporting/log/client_logs # cat 172.17.10.190.log
2016-11-23T15:30:52CET ;; have_fs_kind ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; November ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs___mounts_15__1__ ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; ipv4_172_16 ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; services_autorun ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs__ ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs_Licensed ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; _stdlib_path_exists_df ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; _stdlib_has_path_diff ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; www_alt_in_low ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs___mount ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; _stdlib_has_path_logger ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; ipv4_172 ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; 172_16_152_24 ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; diskfree_high ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; smtp_in_high ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs___mounts_125__1__ ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs___vol ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; _stdlib_has_path_df ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; _stdlib_path_exists_find ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs___mounts_17__2___ ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; __override_classes_ ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs_of ;; empty ;; empty ;; empty ;; empty
2016-11-23T15:30:52CET ;; have_fs_prevent ;; empty ;; empty ;; empty ;; empty
Enter code here...
root@nimmsag: /var/cfengine/masterfiles/itsv # cat deltarep_bundles.cf
bundle agent b0034_dist_dhlogmaker
{
meta:
"tags" slist => { "itsv" };
files:
"/opt/delta_reporting/bin/."
create => 'true',
perms => m( "644" );
"/opt/delta_reporting/bin/dhlogmaker"
perms => m( "755" ),
copy_from => secure_cp( "${sys.workdir}/bin/dhlogmaker", "${sys.policy_hub}");
reports:
"dist_dhlogmaker was running at ( $(sys.date) ).";
}
bundle agent A_deltarep_prelogging
{
meta:
"tags" slist => { "itsv" };
methods:
"deltarep_prelogging" usebundle => deltarep_prelogging;
reports:
"deltarep_prelogging was running at ( $(sys.date) ).";
}
bundle agent b9998_deltarep_postlogging
{
meta:
"tags" slist => { "itsv" };
methods:
"deltarep_postlogging" usebundle => deltarep_postlogging;
reports:
"deltarep_postlogging was running at ( $(sys.date) ).";
}
bundle agent b9999_deltarep_client_get
{
meta:
"tags" slist => { "itsv" };
policy_server::
methods:
"deltarep_client_get " usebundle => deltarep_client_get;
reports:
"deltarep_client_get was running at ( $(sys.date) ).";
}
> 1. mailto:help-cfengine+unsub...@googlegroups.com