我正试着让穆宁报告配额使用情况,但这不起作用。在quota_usage_上面写着:
# Usage: place in /etc/munin/node.d/quota-usage_<dev> (or link it there using
# ln -s), for example quota-usage_hda3. Use underscores instead of slashes, for
# example to monitor /dev/mapper/vol-foo, name this quota-usage_mapper_vol-foo所以我就这么做了,但似乎不起作用。
穆宁-诺德说:
2011/11/25-11:05:08 [23728] Error output from quota_usage_:
2011/11/25-11:05:08 [23728] Can't exec "/etc/munin/plugins/quota_usage_": No such file or directory at /usr/share/perl5/Munin/Node/Service.pm line 215, <STDIN> line 87.
2011/11/25-11:05:08 [23728] # ERROR: Failed to exec.
2011/11/25-11:05:08 [23728] Service 'quota_usage_' exited with status 42/0.知道我做错什么了吗?我在运行Debian 6以防有什么关系。我将它作为quota-usage_xvda (它在Xen上运行)进行符号链接,而repquota /dev/xvda运行得很好。
Update -通过将它放入/etc/munin/plugins/并将其设置为root运行(正如Dom建议的那样),使其工作正常,但现在我在Munin-Graph.log中得到了这样的结果:
2011/11/25 18:15:10 [RRD ERROR] Unable to graph /var/cache/munin/www/xxx/xxx/quota_usage_xvda-week.png : opening '/var/lib/munin/--g.rrd': No such file or directory经过一些研究,看起来这是个bug:http://munin-monitoring.org/ticket/794
正如diff所显示的那样,编辑修复了它,但我现在在图表中只报告了2个用户,而不是我拥有的大约12个用户。哦好吧..。
发布于 2011-11-25 14:54:15
尝试运行quota-usage_xvda。如果它有效,您必须为这个插件在munin-node.conf中添加根用户。然后,您可以通过munin-run quota-usage_xvda进行检查。检查您的rep配额是否在/usr/sbin/目录中(因为它在插件中是硬编码的)。你确定链接很好吗?quota_usage_应该在/etc/munin/plugins dir之外。
https://serverfault.com/questions/334740
复制相似问题