我的 3 台服务器上都有 munin-node 的默认配置,我想创建一个显示总输出带宽的摘要图表。
以下是我所做的minin.conf:
[example.com;aggregation]
update no
total_bandwidth.graph_title Aggregated bandwidth
total_bandwidth.upload.label upload
total_bandwidth.upload.sum \
serv1.example.com:if_eth0:up \
serv2.example.com:if_eth0:up \
serv3.example.com:if_eth0:up
但它不起作用,我只得到了损坏的图像而不是图形。在 munin-graph.log 中:
[RRD ERROR] Unable to graph /var/www/munin/example.com/aggregation/total_bandwidth-month.png : opening '': No such file or directory
编辑 :
下列的http://waste.mandragor.org/munin_tutorial/munin.html我尝试过这种方法,但效果并不好:
[example.com;aggregation]
update no
total_bandwidth.graph_title Our total bandwidth
total_bandwidth.out.sum example.com;serv1.example.com:if_eth0:up example.com;serv2.example.com:if_eth0:up
total_bandwidth.out.draw STACK
total_bandwidth.out.label Out bandwidth
total_bandwidth.in.sum example.com;serv1.example.com:if_eth0:down example.com;serv2.example.com:if_eth0:down
total_bandwidth.in.draw STACK
total_bandwidth.in.label In bandwidth
答案1
只需替换if_eth0:down
为if_eth0.down
。