/etc/diamond/collectors/ConnTrackCollector.conf:
  file.managed:
    - source: salt://monitoring/client/configs/Collector.conf.jinja
    - template: jinja
    - context:
      collector:
        enabled: True
        dir: /proc/sys/net/netfilter
        files: '"nf_conntrack_count,nf_conntrack_max"'
    - use:
      - file: /etc/diamond/diamond.conf
    - watch_in:
      - service: diamond

{% set collectors = [
  "CPU", "DiskSpace", "DiskUsage", "EntropyStat", "LoadAverage", "Memory",
  "Network", "Ntpd", "TCP", "UDP",
] %}

{% for collector in collectors %}
/etc/diamond/collectors/{{ collector }}Collector.conf:
  file.managed:
    - source: salt://monitoring/client/configs/Collector.conf.jinja
    - template: jinja
    - context:
      collector:
        enabled: True
    - use:
      - file: /etc/diamond/diamond.conf
    - watch_in:
      - service: diamond
{% endfor %}


/etc/diamond/collectors/HttpdCollector.conf:
  file.managed:
    - source: salt://monitoring/client/configs/Collector.conf.jinja
    - template: jinja
    - context:
      collector:
        enabled: False
    - use:
      - file: /etc/diamond/diamond.conf
    - watch_in:
      - service: diamond

monitoring-collectors-default-packages:
  pkg.installed:
    - pkgs:
      - python-utmp


/etc/diamond/collectors/ConnTrackCollector.conf:
  file.managed:
    - source: salt://monitoring/client/configs/Collector.conf.jinja
    - template: jinja
    - context:
      collector:
        enabled: True
        dir: /proc/sys/net/netfilter
        files: '"nf_conntrack_count,nf_conntrack_max"'
    - use:
      - file: /etc/diamond/diamond.conf
    - watch_in:
      - service: diamond


{% set collectors = [
  "CPU", "DiskSpace", "DiskUsage", "EntropyStat", "LoadAverage", "Memory",
  "Network", "Ntpd", "TCP", "UDP", "Users",
] %}

{% for collector in collectors %}
/etc/diamond/collectors/{{ collector }}Collector.conf:
  file.managed:
    - source: salt://monitoring/client/configs/Collector.conf.jinja
    - template: jinja
    - context:
      collector:
        enabled: True
    - use:
      - file: /etc/diamond/diamond.conf
    - watch_in:
      - service: diamond
{% endfor %}


/etc/diamond/collectors/HttpdCollector.conf:
  file.managed:
    - source: salt://monitoring/client/configs/Collector.conf.jinja
    - template: jinja
    - context:
      collector:
        enabled: False
    - use:
      - file: /etc/diamond/diamond.conf
    - watch_in:
      - service: diamond

Enable the UsersCollector as well
Enable the UsersCollector as well

zware/psf-salt,python/psf-salt,zware/psf-salt,caktus/psf-salt,zooba/psf-salt,caktus/psf-salt,dstufft/psf-salt,zooba/psf-salt,python/psf-salt,zware/psf-salt,zooba/psf-salt,python/psf-salt,dstufft/psf-salt,dstufft/psf-salt,caktus/psf-salt,python/psf-salt,zware/psf-salt