Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Created September 29, 2014 09:12
Show Gist options
  • Save tolleiv/a15f167a0387672670d0 to your computer and use it in GitHub Desktop.
Save tolleiv/a15f167a0387672670d0 to your computer and use it in GitHub Desktop.
Building a statsd backage with the Zabbix backend configured
https://github.com/etsy/statsd
https://github.com/parkerd/statsd-zabbix-backend
https://www.digitalocean.com/community/tutorials/how-to-configure-statsd-to-collect-arbitrary-stats-for-graphite-on-ubuntu-14-04
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install git nodejs npm devscripts debhelper
mkdir ~/build
cd ~/build
git clone https://github.com/etsy/statsd.git
cd statsd
npm install statsd-zabbix-backend
echo "node_modules/* /usr/share/statsd/node_modules“ >> debian/statsd.install
dpkg-buildpackage
cd ..
dpkg -i statsd*.deb
cat > /opt/statsd/localConfig.js <<EOT
{
debug: true,
flushInterval: 10000,
percentThreshold: [95, 99],
backends: ["./node_modules/statsd-zabbix-backend"],
zabbixPort: 10051,
zabbixHost: "localhost",
zabbixSender: "/usr/bin/zabbix_sender“
}
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment