Tuesday 27 January 2009 8:20:45 am
You can modify this to produce different statistics for each instance on a shared ezPublish box like so:
sfrazer-mbp:Downloads sfrazer$ diff ezpublish.old ezpublish.new 26a27 > EZPUBLISH_INSTANCE=`basename $0` 46c47 < echo 'graph_title eZ Publish statistics' --- > echo 'graph_title ' $EZPUBLISH_INSTANCE ' statistics' 52c53 < echo 'graph_category eZ Publish' --- > echo 'graph_category eZ - ' $EZPUBLISH_INSTANCE 69c70 < echo 'graph_info Statistics for an eZ Publish instance' --- > echo 'graph_info Statistics for eZ Publish instance ' $EZPUBLISH_INSTANCE
Next, when you create the symlink, instead of calling it "ezpublish," make it the same name as the website you are monitoring like so:
sudo ln -sv /usr/share/munin/plugins/www.example.com /etc/munin/plugins
Then, name the section of /etc/munin/plugin-conf.d/munin-node the same as the website name:
Now you can have multiple ez Publish websites monitored on the same server, all from a single munin script.
Tuesday 27 January 2009 9:33:00 am
thanks for the patch.
Actually I am rewriting everything and I added other monitors I already wrote :
ezpublish_content which monitors :
- content objects
- content object attributes
- content nodes
- content object relations
ezpublish_users which monitors :
and I plan to write this week :
ezpublish_cache (almost there actually) which will monitor :
- view cache
writing a plugin to monitor the amount of binary files is also planned but I do not know when I will do it.
Your patch will be integrated in the next release.
Tuesday 27 January 2009 3:30:10 pm
Patch applied in trunk rev : 8.