collectd-wrapper 336 B

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