本地主机上的Munin(telnet只显示期限)

我build立了munin以root身份运行testing,我的相关configuration如下:

munin.conf:

[localhost] address 127.0.0.1 use_node_name yes 

我试过fqnd.mysite.com(但它不能连接),localhost.localdomain这也运行,但我会解释在一秒

穆宁-node.conf:

 allow ^127\.0\.0\.1$ # Which address to bind to; host 127.0.0.1 host_name localhost port 4949 

现在一切正常,如果我inputmunin-run cpu并列出myspecs,但是当我telnet到localhost:4949时,会话将如下所示:

 # munin node at localhost list cpu df df_inode entropy exim_mailstats forks fw_conntrack fw_forwarded_local fw_packets http_loadtime if_err_eth0 if_eth0 interrupts iostat iostat_ios irqstats load memory munin_stats nfs4_client nfsd nfsd4 ntp_kernel_err ntp_kernel_pll_freq ntp_kernel_pll_off ntp_offset open_files open_inodes postfix_mailqueue postfix_mailvolume proc_pri processes swap threads uptime users vmstat fetch df . fetch cpu . 

正如你看到的插件列出! 但由于某种原因它回答了一个'。',我在根下运行这个,所以我不认为这是一个权限问题。 凌晨4点32分,任何线索都会把我从电脑里拿出来!

我不能做比http://munin-monitoring.org/wiki/Debugging_Munin_plugins更好的工作,但是你没有做或没有发布的一个步骤是运行插件/etc/munin/plugins ,看看什么他们说。 尝试

 # /etc/munin/plugins/df 

看看你回来了什么。 你也应该知道,尽pipemunin-node作为root运行,但是插件并不一定这样做。 请参阅/etc/munin/{plugins.conf,plugin-conf.d/*}了解哪个用户可以运行给定的插件。

我发现我的问题,这是所有打印到STDERR而不是STDOUT,这个bug显然只发生在OpenSUSE 9/10,奇怪的是它发生在Ubuntu 10.04 ..

该错误可以在这里find: http : //munin-monitoring.org/ticket/846

补丁如下:

 --- node/lib/Munin/Node/Service.pm.orig 2010-04-26 12:33:56.217889267 +0000 +++ node/lib/Munin/Node/Service.pm 2010-04-26 14:07:09.951259792 +0000 @@ -212,7 +212,14 @@ print STDERR "# About to run '", join (' ', @command), "'\n" if $config->{DEBUG}; - exec @command; + # work around exec bug in SLES10's Perl + # exec @command; + my $res = `@command`; + print STDERR "# '", join (' ', @command), "' returned $res\n" + if $config->{DEBUG}; + print STDOUT $res; + exit; + } 

它发生在我身上,所以我相信也许某个人可以使用这个,但要注意改变文件。 我已经更新了我的原始问题,以更好地被类似的查询search引擎发现,我知道我不得不search了很多find这个。