安装munin我做了以下几点:
yum install munin munin-node -y
然后设置
htmldir /var/www/virtualhosts/ssl.foo.com/bar [foo.com] address 127.0.0.1 use_node_name yes
在/etc/munin/munin.conf 。 我保持用户为munin根。 重新启动munin( /etc/init.d/munin-node restart )。
穆宁正在奔跑:
[root@server ~]# ps aux | grep munin root 41077 0.1 0.0 143236 8508 ? Ss 10:48 0:00 /usr/sbin/munin-node root 41432 0.0 0.0 103268 828 pts/0 S+ 10:48 0:00 grep munin [root@server ~]# netstat -anp | grep munin-node tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN 41077/munin-node
但是, htmldir没有任何htmldir 。 可能出了什么问题?
注意:
/var/log/munin/munin-node.log没有提到任何错误 所有与munin相关的套餐:
[root@server ~]# yum list installed | grep munin munin.noarch 1.4.7-5.el6 @epel munin-common.noarch 1.4.7-5.el6 @epel munin-node.noarch 1.4.7-5.el6 @epel
并尝试这个#telnet foo.example.com 4949和如果插件运行munin-run而不是通过telnet,你可能有一个path问题,也检查插件的字段名称.value指令每个字段的名称
我不确定你是否改变了它,但是你的munin.conf文件和 munin-node.conf文件中的[foo.com]主机名是否匹配? 如果我记得正确的话,那就停止了我的工作。