0

我刚刚通过 yum 在我的新 cent os 5.7 64 位机器上安装了 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这对我来说似乎很完美。

知道我可以尝试什么吗?

4

1 回答 1

0

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

于 2011-12-04T11:35:55.487 回答