![무닌 할당량 사용량](https://rvso.com/image/568273/%EB%AC%B4%EB%8B%8C%20%ED%95%A0%EB%8B%B9%EB%9F%89%20%EC%82%AC%EC%9A%A9%EB%9F%89.png)
Munin이 할당량 사용량을 보고하도록 하려고 하는데 작동하지 않습니다. 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
그래서 그렇게 해봤는데 안 되는 것 같아요.
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.
내가 뭘 잘못하고 있는지 어떤 아이디어가 있습니까? 중요한 경우를 대비해 데비안 6을 실행하고 있습니다. 나는 quota-usage_xvda
(Xen VPS에서 실행 중) 심볼릭 링크를 설정했고 repquota /dev/xvda
정상적으로 실행됩니다.
업데이트 - /etc/munin/plugins/에 넣고 루트로 실행되도록 설정하여 작동하게 했지만(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
차이점이 표시된 대로 편집하면 문제가 해결되지만 현재 그래프에는 내가 가지고 있는 대략 12명의 사용자 대신 2명의 사용자만 보고됩니다. 아 글쎄...
답변1
실행해 보십시오 quota-usage_xvda
. 작동한다면 이 플러그인의 munin-node.conf에 루트 사용자를 추가해야 합니다. 그런 다음 를 통해 확인할 수 있습니다 munin-run quota-usage_xvda
. 귀하의 대표 할당량이 /usr/sbin/ 디렉토리에 있는지 확인하십시오(플러그인에 하드 코딩되어 있으므로). 링크가 좋은 것이 확실합니까? quota_usage_는 /etc/munin/plugins 디렉토리 외부에 있어야 합니다.