Skip to content

Instantly share code, notes, and snippets.

@maguec
Created March 16, 2013 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maguec/5177442 to your computer and use it in GitHub Desktop.
Save maguec/5177442 to your computer and use it in GitHub Desktop.
Example configuration for squid collectd exec
###############################################################
# Puppet Controlled Default Template
###############################################################
FQDNLookup false
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
LoadPlugin cpu
LoadPlugin disk
LoadPlugin interface
LoadPlugin memory
LoadPlugin network
LoadPlugin swap
LoadPlugin vmem
LoadPlugin write_graphite
<Plugin "write_graphite">
<Carbon>
Host "<%= graphite_server %>"
Port "<%= graphite_port %>"
Prefix "infra.<%= server_role %>."
EscapeCharacter "_"
StoreRates true
AlwaysAppendDS false
</Carbon>
</Plugin>
<Plugin exec>
Exec "nobody" "/PATH/TO/squid_collectd.rb" "--port" "3128"
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment