github.com/ghodss/etcd@v0.3.1-0.20140417172404-cc329bfa55cb/contrib/collectd/collectd-wrapper (about)

     1  #!/bin/bash
     2  
     3  cat /etc/collectd/collectd.conf.tmpl > /etc/collectd/collectd.conf
     4  
     5  cat << EOF >> /etc/collectd/collectd.conf
     6  Hostname "${COLLECTD_LOCAL_HOSTNAME}"
     7  
     8  <Plugin write_graphite>
     9      <Carbon>
    10          Host "${COLLECTD_GRAPHITE_HOSTNAME}"
    11          Port "2003"
    12      </Carbon>
    13  </Plugin>
    14  EOF
    15  
    16  collectd -C /etc/collectd/collectd.conf -f