I'm trying to get Munin to report quota usage but it's not working. On top of quota_usage_ it says:
# 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
So I did just that but it doesn't seem to work.
munin-node.log says:
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.
Any ideas what I'm doing wrong? I'm running Debian 6 in case it matters. I have it symlinked as quota-usage_xvda
(it's running on a Xen VPS) and repquota /dev/xvda
runs just fine.
Update - got it working by putting it into /etc/munin/plugins/ and setting it to run as root (as Dom suggested) but I now get this in 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
After some research it looks like that's a bug: http://munin-monitoring.org/ticket/794
Editing as the diff shows fixes it but I only get 2 users reported in the graphs now instead of the roughly dozen I have. Oh well...