Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3382

Directory listing for '<directory>' recorded each agent run when directory monitored for change

    XMLWordPrintable

    Details

    • Story Points:
      5
    • Found in version (details):
      3.17.0a

      Description

      When a directory is recursively monitored for change an inform message is emitted during each agent run for each directory.

      For example, given this files promise to recursively montior /etc for chagnes:

            "/etc/"
              changes => detect_all_change_using("md5"),
              depth_search => recurse("inf"),
              handle => "changes",
              # TODO: Warn when action bg is used with classes?
              # You may not get the classes by the time you need them.
              # e.g. I cant find these classes unless I don't background
              action => bg("10","5"),
              classes => results( "bundle", "_changes_etc_");
      

      I see this output running with inform logging:

      [root@hub masterfiles]# echo "First run"; cf-agent -KI | grep "Record" ; echo "Second Run"; cf-agent -KI | grep "Record"
      First run
          info: Recorded directory listing for '/etc/xinetd.d'
          info: Recorded directory listing for '/etc/terminfo'
          info: Recorded directory listing for '/etc/cron.weekly'
          info: Recorded directory listing for '/etc/selinux/targeted/logins'
          info: Recorded directory listing for '/etc/selinux/targeted/policy'
          info: Recorded directory listing for '/etc/selinux/targeted/contexts/users'
          info: Recorded directory listing for '/etc/selinux/targeted/contexts/files'
          info: Recorded directory listing for '/etc/selinux/targeted/contexts'
          info: Recorded directory listing for '/etc/selinux/targeted/modules/active/modules'
          info: Recorded directory listing for '/etc/selinux/targeted/modules/active'
          info: Recorded directory listing for '/etc/selinux/targeted/modules'
          info: Recorded directory listing for '/etc/selinux/targeted'
          info: Recorded directory listing for '/etc/selinux'
          info: Recorded directory listing for '/etc/pki/tls/certs'
          info: Recorded directory listing for '/etc/pki/tls/private'
          info: Recorded directory listing for '/etc/pki/tls/misc'
          info: Recorded directory listing for '/etc/pki/tls'
          info: Recorded directory listing for '/etc/pki/CA/crl'
          info: Recorded directory listing for '/etc/pki/CA/certs'
          info: Recorded directory listing for '/etc/pki/CA/private'
          info: Recorded directory listing for '/etc/pki/CA/newcerts'
          info: Recorded directory listing for '/etc/pki/CA'
          info: Recorded directory listing for '/etc/pki/rpm-gpg'
          info: Recorded directory listing for '/etc/pki/nssdb'
          info: Recorded directory listing for '/etc/pki/java'
          info: Recorded directory listing for '/etc/pki/rsyslog'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted/openssl'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted/pem'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted/java'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted'
          info: Recorded directory listing for '/etc/pki/ca-trust/source/blacklist'
          info: Recorded directory listing for '/etc/pki/ca-trust/source/anchors'
          info: Recorded directory listing for '/etc/pki/ca-trust/source'
          info: Recorded directory listing for '/etc/pki/ca-trust'
          info: Recorded directory listing for '/etc/pki'
          info: Recorded directory listing for '/etc/modprobe.d'
          info: Recorded directory listing for '/etc/yum/vars'
          info: Recorded directory listing for '/etc/yum/pluginconf.d'
          info: Recorded directory listing for '/etc/yum/protected.d'
          info: Recorded directory listing for '/etc/yum'
          info: Recorded directory listing for '/etc/NetworkManager/dispatcher.d'
          info: Recorded directory listing for '/etc/NetworkManager'
          info: Recorded directory listing for '/etc/plymouth'
          info: Recorded directory listing for '/etc/iproute2'
          info: Recorded directory listing for '/etc/opt'
          info: Recorded directory listing for '/etc/profile.d'
          info: Recorded directory listing for '/etc/dhcp/dhclient.d'
          info: Recorded directory listing for '/etc/dhcp'
          info: Recorded directory listing for '/etc/skel'
          info: Recorded directory listing for '/etc/logrotate.d'
          info: Recorded directory listing for '/etc/cron.hourly'
          info: Recorded directory listing for '/etc/dbus-1/system.d'
          info: Recorded directory listing for '/etc/dbus-1'
          info: Recorded directory listing for '/etc/pkcs11/modules'
          info: Recorded directory listing for '/etc/pkcs11'
          info: Recorded directory listing for '/etc/rwtab.d'
          info: Recorded directory listing for '/etc/dracut.conf.d'
          info: Recorded directory listing for '/etc/cron.d'
          info: Recorded directory listing for '/etc/ppp/peers'
          info: Recorded directory listing for '/etc/ppp'
          info: Recorded directory listing for '/etc/statetab.d'
          info: Recorded directory listing for '/etc/depmod.d'
          info: Recorded directory listing for '/etc/sasl2'
          info: Recorded directory listing for '/etc/bash_completion.d'
          info: Recorded directory listing for '/etc/audit'
          info: Recorded directory listing for '/etc/pam.d'
          info: Recorded directory listing for '/etc/X11/applnk'
          info: Recorded directory listing for '/etc/X11/fontpath.d'
          info: Recorded directory listing for '/etc/X11'
          info: Recorded directory listing for '/etc/cron.monthly'
          info: Recorded directory listing for '/etc/sysconfig/cbq'
          info: Recorded directory listing for '/etc/sysconfig/network-scripts'
          info: Recorded directory listing for '/etc/sysconfig/networking/devices'
          info: Recorded directory listing for '/etc/sysconfig/networking/profiles/default'
          info: Recorded directory listing for '/etc/sysconfig/networking/profiles'
          info: Recorded directory listing for '/etc/sysconfig/networking'
          info: Recorded directory listing for '/etc/sysconfig/console'
          info: Recorded directory listing for '/etc/sysconfig/modules'
          info: Recorded directory listing for '/etc/sysconfig'
          info: Recorded directory listing for '/etc/audisp/plugins.d'
          info: Recorded directory listing for '/etc/audisp'
          info: Recorded directory listing for '/etc/udev/rules.d'
          info: Recorded directory listing for '/etc/udev/makedev.d'
          info: Recorded directory listing for '/etc/udev'
          info: Recorded directory listing for '/etc/postfix'
          info: Recorded directory listing for '/etc/makedev.d'
          info: Recorded directory listing for '/etc/xdg/autostart'
          info: Recorded directory listing for '/etc/xdg'
          info: Recorded directory listing for '/etc/ssh'
          info: Recorded directory listing for '/etc/gcrypt'
          info: Recorded directory listing for '/etc/cron.daily'
          info: Recorded directory listing for '/etc/request-key.d'
          info: Recorded directory listing for '/etc/alternatives'
          info: Recorded directory listing for '/etc/gnupg'
          info: Recorded directory listing for '/etc/rpm'
          info: Recorded directory listing for '/etc/chkconfig.d'
          info: Recorded directory listing for '/etc/rsyslog.d'
          info: Recorded directory listing for '/etc/pm/power.d'
          info: Recorded directory listing for '/etc/pm/sleep.d'
          info: Recorded directory listing for '/etc/pm/config.d'
          info: Recorded directory listing for '/etc/pm'
          info: Recorded directory listing for '/etc/rc.d/rc2.d'
          info: Recorded directory listing for '/etc/rc.d/rc3.d'
          info: Recorded directory listing for '/etc/rc.d/rc6.d'
          info: Recorded directory listing for '/etc/rc.d/rc1.d'
          info: Recorded directory listing for '/etc/rc.d/rc4.d'
          info: Recorded directory listing for '/etc/rc.d/init.d'
          info: Recorded directory listing for '/etc/rc.d/rc0.d'
          info: Recorded directory listing for '/etc/rc.d/rc5.d'
          info: Recorded directory listing for '/etc/rc.d'
          info: Recorded directory listing for '/etc/ssl'
          info: Recorded directory listing for '/etc/sudoers.d'
          info: Recorded directory listing for '/etc/lvm/backup'
          info: Recorded directory listing for '/etc/lvm/cache'
          info: Recorded directory listing for '/etc/lvm/archive'
          info: Recorded directory listing for '/etc/lvm'
          info: Recorded directory listing for '/etc/default'
          info: Recorded directory listing for '/etc/yum.repos.d'
          info: Recorded directory listing for '/etc/ld.so.conf.d'
          info: Recorded directory listing for '/etc/init'
          info: Recorded directory listing for '/etc/security/limits.d'
          info: Recorded directory listing for '/etc/security/console.apps'
          info: Recorded directory listing for '/etc/security/namespace.d'
          info: Recorded directory listing for '/etc/security/console.perms.d'
          info: Recorded directory listing for '/etc/security'
          info: Recorded directory listing for '/etc/blkid'
          info: Recorded directory listing for '/etc/popt.d'
          info: Recorded directory listing for '/etc/openldap/certs'
          info: Recorded directory listing for '/etc/openldap'
          info: Recorded directory listing for '/etc/'
      Second Run
          info: Recorded directory listing for '/etc/xinetd.d'
          info: Recorded directory listing for '/etc/terminfo'
          info: Recorded directory listing for '/etc/cron.weekly'
          info: Recorded directory listing for '/etc/selinux/targeted/logins'
          info: Recorded directory listing for '/etc/selinux/targeted/policy'
          info: Recorded directory listing for '/etc/selinux/targeted/contexts/users'
          info: Recorded directory listing for '/etc/selinux/targeted/contexts/files'
          info: Recorded directory listing for '/etc/selinux/targeted/contexts'
          info: Recorded directory listing for '/etc/selinux/targeted/modules/active/modules'
          info: Recorded directory listing for '/etc/selinux/targeted/modules/active'
          info: Recorded directory listing for '/etc/selinux/targeted/modules'
          info: Recorded directory listing for '/etc/selinux/targeted'
          info: Recorded directory listing for '/etc/selinux'
          info: Recorded directory listing for '/etc/pki/tls/certs'
          info: Recorded directory listing for '/etc/pki/tls/private'
          info: Recorded directory listing for '/etc/pki/tls/misc'
          info: Recorded directory listing for '/etc/pki/tls'
          info: Recorded directory listing for '/etc/pki/CA/crl'
          info: Recorded directory listing for '/etc/pki/CA/certs'
          info: Recorded directory listing for '/etc/pki/CA/private'
          info: Recorded directory listing for '/etc/pki/CA/newcerts'
          info: Recorded directory listing for '/etc/pki/CA'
          info: Recorded directory listing for '/etc/pki/rpm-gpg'
          info: Recorded directory listing for '/etc/pki/nssdb'
          info: Recorded directory listing for '/etc/pki/java'
          info: Recorded directory listing for '/etc/pki/rsyslog'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted/openssl'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted/pem'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted/java'
          info: Recorded directory listing for '/etc/pki/ca-trust/extracted'
          info: Recorded directory listing for '/etc/pki/ca-trust/source/blacklist'
          info: Recorded directory listing for '/etc/pki/ca-trust/source/anchors'
          info: Recorded directory listing for '/etc/pki/ca-trust/source'
          info: Recorded directory listing for '/etc/pki/ca-trust'
          info: Recorded directory listing for '/etc/pki'
          info: Recorded directory listing for '/etc/modprobe.d'
          info: Recorded directory listing for '/etc/yum/vars'
          info: Recorded directory listing for '/etc/yum/pluginconf.d'
          info: Recorded directory listing for '/etc/yum/protected.d'
          info: Recorded directory listing for '/etc/yum'
          info: Recorded directory listing for '/etc/NetworkManager/dispatcher.d'
          info: Recorded directory listing for '/etc/NetworkManager'
          info: Recorded directory listing for '/etc/plymouth'
          info: Recorded directory listing for '/etc/iproute2'
          info: Recorded directory listing for '/etc/opt'
          info: Recorded directory listing for '/etc/profile.d'
          info: Recorded directory listing for '/etc/dhcp/dhclient.d'
          info: Recorded directory listing for '/etc/dhcp'
          info: Recorded directory listing for '/etc/skel'
          info: Recorded directory listing for '/etc/logrotate.d'
          info: Recorded directory listing for '/etc/cron.hourly'
          info: Recorded directory listing for '/etc/dbus-1/system.d'
          info: Recorded directory listing for '/etc/dbus-1'
          info: Recorded directory listing for '/etc/pkcs11/modules'
          info: Recorded directory listing for '/etc/pkcs11'
          info: Recorded directory listing for '/etc/rwtab.d'
          info: Recorded directory listing for '/etc/dracut.conf.d'
          info: Recorded directory listing for '/etc/cron.d'
          info: Recorded directory listing for '/etc/ppp/peers'
          info: Recorded directory listing for '/etc/ppp'
          info: Recorded directory listing for '/etc/statetab.d'
          info: Recorded directory listing for '/etc/depmod.d'
          info: Recorded directory listing for '/etc/sasl2'
          info: Recorded directory listing for '/etc/bash_completion.d'
          info: Recorded directory listing for '/etc/audit'
          info: Recorded directory listing for '/etc/pam.d'
          info: Recorded directory listing for '/etc/X11/applnk'
          info: Recorded directory listing for '/etc/X11/fontpath.d'
          info: Recorded directory listing for '/etc/X11'
          info: Recorded directory listing for '/etc/cron.monthly'
          info: Recorded directory listing for '/etc/sysconfig/cbq'
          info: Recorded directory listing for '/etc/sysconfig/network-scripts'
          info: Recorded directory listing for '/etc/sysconfig/networking/devices'
          info: Recorded directory listing for '/etc/sysconfig/networking/profiles/default'
          info: Recorded directory listing for '/etc/sysconfig/networking/profiles'
          info: Recorded directory listing for '/etc/sysconfig/networking'
          info: Recorded directory listing for '/etc/sysconfig/console'
          info: Recorded directory listing for '/etc/sysconfig/modules'
          info: Recorded directory listing for '/etc/sysconfig'
          info: Recorded directory listing for '/etc/audisp/plugins.d'
          info: Recorded directory listing for '/etc/audisp'
          info: Recorded directory listing for '/etc/udev/rules.d'
          info: Recorded directory listing for '/etc/udev/makedev.d'
          info: Recorded directory listing for '/etc/udev'
          info: Recorded directory listing for '/etc/postfix'
          info: Recorded directory listing for '/etc/makedev.d'
          info: Recorded directory listing for '/etc/xdg/autostart'
          info: Recorded directory listing for '/etc/xdg'
          info: Recorded directory listing for '/etc/ssh'
          info: Recorded directory listing for '/etc/gcrypt'
          info: Recorded directory listing for '/etc/cron.daily'
          info: Recorded directory listing for '/etc/request-key.d'
          info: Recorded directory listing for '/etc/alternatives'
          info: Recorded directory listing for '/etc/gnupg'
          info: Recorded directory listing for '/etc/rpm'
          info: Recorded directory listing for '/etc/chkconfig.d'
          info: Recorded directory listing for '/etc/rsyslog.d'
          info: Recorded directory listing for '/etc/pm/power.d'
          info: Recorded directory listing for '/etc/pm/sleep.d'
          info: Recorded directory listing for '/etc/pm/config.d'
          info: Recorded directory listing for '/etc/pm'
          info: Recorded directory listing for '/etc/rc.d/rc2.d'
          info: Recorded directory listing for '/etc/rc.d/rc3.d'
          info: Recorded directory listing for '/etc/rc.d/rc6.d'
          info: Recorded directory listing for '/etc/rc.d/rc1.d'
          info: Recorded directory listing for '/etc/rc.d/rc4.d'
          info: Recorded directory listing for '/etc/rc.d/init.d'
          info: Recorded directory listing for '/etc/rc.d/rc0.d'
          info: Recorded directory listing for '/etc/rc.d/rc5.d'
          info: Recorded directory listing for '/etc/rc.d'
          info: Recorded directory listing for '/etc/ssl'
          info: Recorded directory listing for '/etc/sudoers.d'
          info: Recorded directory listing for '/etc/lvm/backup'
          info: Recorded directory listing for '/etc/lvm/cache'
          info: Recorded directory listing for '/etc/lvm/archive'
          info: Recorded directory listing for '/etc/lvm'
          info: Recorded directory listing for '/etc/default'
          info: Recorded directory listing for '/etc/yum.repos.d'
          info: Recorded directory listing for '/etc/ld.so.conf.d'
          info: Recorded directory listing for '/etc/init'
          info: Recorded directory listing for '/etc/security/limits.d'
          info: Recorded directory listing for '/etc/security/console.apps'
          info: Recorded directory listing for '/etc/security/namespace.d'
          info: Recorded directory listing for '/etc/security/console.perms.d'
          info: Recorded directory listing for '/etc/security'
          info: Recorded directory listing for '/etc/blkid'
          info: Recorded directory listing for '/etc/popt.d'
          info: Recorded directory listing for '/etc/openldap/certs'
          info: Recorded directory listing for '/etc/openldap'
          info: Recorded directory listing for '/etc/'
      
      • It should emit Updated directory listing for '<directory>' only when the directory listing actually changes.

        Attachments

          Activity

            People

            • Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel