Instantly share code, notes, and snippets.

Embed
What would you like to do?
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