zope/plone的munin插件
redturtle.munin的Python项目详细描述
简介
- 这个包为munin插件提供zope脚本,zope脚本提供数据。
- 它使用gocept.munin进行插件注册。如果你想编写新的插件,请检查它。
- 有些插件基于munin exchange上的插件(很多都要感谢Gaute Amundsen和Arthur Lutz)
插件
- 有3个插件可用(很快就会有新的提交):
- zope线程-检查可用zope线程
- zope缓存参数-检查数据库缓存参数
- zodb活动-检查zodb活动
如何使用
首先将其包含在构建实例槽中:
[instancne] ... eggs = ... redturtle.munin zcml = ... redturtle.munin
现在您应该可以按如下方式调用插件:
http://localhost:8080/@@redturtle.munin.plugins/update?munin_plugin=zopethreads
其中,zopethreads是插件名。 请注意,出于安全原因,插件只能从本地主机调用(这将在将来得到更好的配置)
现在您需要建立一个从egg到munin插件目录的符号链接:
$ cd /opt/munin/etc/plugins $ ln -s ~/.buildout/eggs/redturtle.munin-0.0.3-py2.4.egg/redturtle/munin/plugins/zodb_activity.py company_zodbactivity_site1
其中,/opt/munin/etc/plugins是您的munin目录,~/.buildout/eggs是您的egg目录,zodb\u activity.py要启用的插件,company您的前缀,site1将在munin中显示的名称
最后在munin中配置插件:
$ cd /opt/munin/etc/plugin-conf.d/ $ vi redturtle.conf ... [company_*_site1] ... env.AUTH myuser:myuser ... env.URL http://localhost:8080/@@redturtle.munin.plugins/update?munin_plugin=%s
其中,myuser是您的zope用户凭证,localhost:8080是您的站点url。 有关插件配置的详细信息,请检查munin。
参考文献
- redturtle.munin在pypi
- gocept.munin在pypi
- munin项目
- munin exchange
更改日志
0.0.3-2009年3月30日
- add documentation [amleczko]
- refactor plugin registration [amleczko]
0.0.2-2009年3月26日
- Small refactoring [amleczko]
0.0.1-2009年3月24日
- Initial release [amleczko]