Munin 配额使用情况

Munin 配额使用情况

我尝试让 Munin 报告配额使用情况,但不起作用。在配额使用情况顶部显示:

# 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

所以我这样做了但似乎没有效果。

munin-node.log 说:

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 VPS 上运行),并且repquota /dev/xvda运行良好。

更新 - 通过将其放入 /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

经过一番研究,看起来这是一个错误: http://munin-monitoring.org/ticket/794

按照差异显示进行编辑可以修复此问题,但现在图表中报告的用户只有 2 个,而不是大约十几个。哦,好吧……

答案1

尝试运行quota-usage_xvda。如果成功,您必须在 munin-node.conf 中为该插件添加 root 用户。然后您可以通过 进行检查munin-run quota-usage_xvda。检查您的 repquota 是否位于 /usr/sbin/ 目录中(因为它在插件中是硬编码的)。您确定链接正确吗?quota_usage_ 应该位于 /etc/munin/plugins 目录之外

相关内容