Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created October 2, 2012 12:45
Show Gist options
  • Save mathieue/3818788 to your computer and use it in GitHub Desktop.
Save mathieue/3818788 to your computer and use it in GitHub Desktop.
Install varnish on debian squeeze with munin plugins
curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -
echo "deb http://repo.varnish-cache.org/debian/ squeeze varnish-3.0" >> /etc/apt/sources.list
apt-get update
apt-get install varnish
# test
varnishtop -i rxurl
varnishstat
# munin plugins
apt-get install libnet-telnet-perl
cd /usr/share/munin/plugins
git clone git://github.com/basiszwo/munin-varnish.git
chmod a+x /usr/share/munin/plugins/munin-varnish/varnish_*
ln -s /usr/share/munin/plugins/munin-varnish/varnish_* /etc/munin/plugins/ 674 echo "[varnish*]user root" >> /etc/munin/plugin-conf.d/munin-node
/etc/init.d/munin-node restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment