我已经在这里工作了几个小时,还没有能够让我的CentOS 5.3服务器输出html文件/生成的资源使用图。
以下是我作为munin用户运行的一些内容,结果如下:
/usr/share/munin/munin-update --nofork --debug
(以上工作正常,需要〜2.4秒完成)
munin-run cpu
(和其他选项/插件(除了“cpu”),所有工作正常,并给予所需的输出)
munin-cron
失败:
[FATAL] There is nothing to do here, since there are no nodes with any plugins. Please refer to http://munin-monitoring.org/wiki/FAQ_no_graphs at /usr/share/munin/munin-html line 38
我想知道如果,也许,我的munin.conf文件中的设置可能会导致一个问题。 下面是该文件的内容(如下):
bdir /var/lib/munin/ htmldir /home/archdev/public_html/monitoring logdir /var/log/munin rundir /var/run/munin/ tmpldir /etc/munin/templates [archstl.archstl.org] address 127.0.0.1 use_node_name yes
另外,当我运行telnet localhost 4949命令,并列出节点的插件时,它将返回默认的munin列表…在munin html创build过程中似乎有些问题。 🙁
我正在运行版本1.4.3。
我结束了通过cPanel / WHM接口安装munin(旧版本),现在一切正常。 奇怪…
可能没有启用插件。 检查
munin-node-configure --suggest --shell
执行这些命令,并应该工作。 这通常在启动时完成,但需要python。
那么现在我正在configuration另一个CentOS 5.5服务器,并且我从EPEL仓库安装了Munin 1.4.5(我从标准的CentOS仓库运行了1.2.5,工作正常)。 从安装1.4.5以来,我没有得到任何graphics和日志中的相同错误…另外,因为我在这台服务器上使用了Klaxo(唉),所以我不能使用WHM / cPanel的自动安装程序来获取最新版本运行。
我已经运行了$ sudo /usr/sbin/munin-node-configure --shell ,但是没有做任何事情(它会持续几秒钟,然后返回到提示符。它应该输出一堆ln -s行使插件符号链接(我可以使用| sudo shpipe道到shell,但它不。
此外,/ var / www / html / munin目录已创build,但不包含任何特定于服务器的文件/graphics(仅包含基本的Munin样式表和graphics)。
如果我看一看/ etc / munin / plugins,那么它是全插件的。 所以我不知道为什么munin-node不工作…确实很奇怪! 我已经尝试了Munin的FAQ_no_graphs页面中的所有步骤,但没有任何帮助。
[编辑:刚看了一下munin-update.log,发现如下:
[错误]主机名'servername_vps2'包含非法字符(http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names)。 请通过用' - 'replace非法字符来解决这个问题。 请记住在主configuration和munin-node上都要这样做。
…似乎我将不得不使用自定义名称(带有下划线)来使用服务器的FQDN(通过在端口4949上执行telnet到服务器的报告),就像我在1.2.5中所做的一样。 我们会看看这是否工作…]
我有同样的问题。 原因:在munin.conf中,我只有一个节点“本地主机”,这与本身并不一样。
解:
telnet localhost 4949 ..... # munin node at your.domain.com ...
所以我把“your.domain.com”,即你的FQDN而不是munin.conf中的localhost。