2012-08-07 07:16:31 +02:00
|
|
|
These are 2 rather crude munin plugins to get at data about zopes ZODB.
|
2014-12-05 00:37:42 +01:00
|
|
|
They have proved very useful, together with the process_memory
|
2012-08-07 07:16:31 +02:00
|
|
|
plugin, in tweaking the zodb cache-size for performance.
|
|
|
|
|
|
|
|
There is no config, auto or otherwise, you have to edit the scripts to change anything.
|
|
|
|
Should not be to hard however :)
|
|
|
|
|
|
|
|
|
|
|
|
To install you have to copy the two scripts in the "scripts_python"
|
|
|
|
folder into zope. Probably easiest just to paste them into an
|
|
|
|
appropriately named new script in the ZMI.
|
|
|
|
|
|
|
|
Click on the proxy tab, and give them the "Manager" role.
|
|
|
|
|
|
|
|
You can test them like this:
|
|
|
|
wget --delete-after -q -O - localhost:8080/<your path>/munin_db_activity.py
|
|
|
|
wget --delete-after -q -O - localhost:8080/<your path>/munin_cache_parameters.py
|
|
|
|
|
|
|
|
Edit zope_db_activity and zope_cache_parameters scripts to reflect
|
2018-08-02 02:03:42 +02:00
|
|
|
<your path> and your instance(s) ports.
|
2012-08-07 07:16:31 +02:00
|
|
|
|
|
|
|
Then move them into your munin plugins lib, and create a symlink under etc according to the
|
|
|
|
usual munin custom:
|
|
|
|
|
|
|
|
mv zope_* /opt/munin/lib/plugins/
|
|
|
|
|
|
|
|
ln -s /opt/munin/lib/plugins/zope_* /etc/opt/munin/plugins/
|
|
|
|
|
|
|
|
Test them with:
|
|
|
|
/opt/munin/sbin/munin-run zope_db_activity
|
|
|
|
/opt/munin/sbin/munin-run zope_cache_parameters
|
|
|
|
|
|
|
|
Restart your munin-node and the graphs should appear shortly.
|
|
|
|
|
|
|
|
If you make any improvements (which should be easy), please update
|
2018-08-02 02:03:42 +02:00
|
|
|
the munin exhange entry, or mail me at gaute(at)pht(dot)no
|