These plugins are originally taken from muninexchange to have a git repository to check out on every munin node
on your munin node do:
cd /usr/share/munin/plugins (or your munin plugins directory)
sudo git clone git://github.com/basiszwo/munin-varnish.git
sudo chmod a+x /usr/share/munin/plugins/munin-varnish/varnish_*
sudo ln -s /usr/share/munin/plugins/munin-varnish/varnish_* /etc/munin/plugins/
change your munin node config and add the following to /etc/munin/plugin-conf.d/munin-node
[varnish*]
user root
restart your munin node:
sudo /etc/init.d/munin-node restart
This munin plugin for Varnish 2.x has been removed from the varnish repostory. You may find it in the official munin repository
As it was a bit tricky to get this plugin running I want to share my experiences with it.
on your munin node do:
cd /usr/share/munin/plugins (or your munin plugins directory)
sudo git clone git://github.com/basiszwo/munin-varnish.git
sudo chmod a+x /usr/share/munin/plugins/munin-varnish/varnish2_
Depending on what you want to monitor link the varnish2_ script to one of the following:
hit_rate, request_rate, objects, backend_traffic, transfer_rates, threads, memory_usage, uptime, vcl_and_purges, expunge, vcl_and_purges, lru, allocations, shm, shm_writes, session, session_herd, objoverflow, esi, hcb, obj_sendfile_vs_write, losthdr, objects_per_objhead
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_hit_rate
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_request_rate
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_objects
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_backend_traffic
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_transfer_rates
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_threads
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_memory_usage
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_uptime
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_vcl_and_purges
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_expunge;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_vcl_and_purges;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_lru;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_allocations;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_shm;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_shm_writes;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_session;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_session_herd;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_objoverflow;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_esi;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_hcb;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_obj_sendfile_vs_write;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_losthdr;
ln -s /usr/share/munin/plugins/varnish2_ /etc/munin/plugins/varnish2_objects_per_objhead;
Config file is /etc/munin/plugin-conf.d/munin-node
[varnish2_*]
user root
env.varnishstat varnishstat
env.name
restart your munin node:
sudo /etc/init.d/munin-node restart