Munin节点不会启动Cent OS 5.7

时间:2011-12-04 09:17:49

标签: centos munin

我刚刚通过yum在我的新的cent os 5.7 64bit机器上安装了munin-node。

安装顺利,我过去在许多机器上设置了munin和munin-nodes,但这次我无法启动它。

当我尝试使用以下命令重新启动时,会发生这种情况:

[root@Server2 munin]# service munin-node restart
Stopping Munin Node agents: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
                                                           [FAILED]
Starting Munin Node: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/Daemonize.pm line 61.
Couldn't find pid in existing pid_file at /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/Daemonize.pm line 61.
                                                           [  OK  ]

最后以绿色显示[OK],但我看不到它在任何地方运行。

这也是munin-node.log

的输出
[root@Server2 munin]# tail -n 100 munin-node.log
2011/12/04-03:10:44 Couldn't find pid in existing pid_file at /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/Daemonize.pm line 61.

  at line 276 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server.pm
2011/12/04-03:10:44 Server closing!
2011/12/04-03:10:54 Couldn't find pid in existing pid_file at /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/Daemonize.pm line 61.

  at line 276 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server.pm
2011/12/04-03:10:54 Server closing!

我在Daemonize.pm中查找第61行,它是:

  my $current_pid = $_current_pid =~ /^(\d{1,10})/ ? $1 : die "Couldn't find pid in existing pid_file";

我试图在/etc/munin/munin-node.conf中重命名pid文件,但这也没有改变任何内容。

输出:

  

[root @ Server2插件] #sudo / usr / sbin / munin-node-configure --suggest

http://pastebin.com/Yd6eX5Ss这对我来说似乎都很完美。

知道我能尝试什么吗?

1 个答案:

答案 0 :(得分:0)

删除原始PID文件解决了问题。