munin-monitoring/contrib — pull request #307 by ShaolinTiger (2013-05-16 10:07:19+00:00)
Title: Added new non Ruby based Unicorn Plugin

The existing Unicorn plugins are written in Ruby, which didn't work well for me due to ENV variables etc.

This plugin monitors number of workers, total memory used and average memory per process for Unicorn.

ln -s /usr/share/munin/plugins/unicorn_ /etc/munin/plugins/unicorn_average
ln -s /usr/share/munin/plugins/unicorn_ /etc/munin/plugins/unicorn_memory
ln -s /usr/share/munin/plugins/unicorn_ /etc/munin/plugins/unicorn_processes

It can easily be adapated to any multi threaded server by just changing the value it searches for 'unicorn worker' in this case.