【问题标题】:Munin-node won't start Cent OS 5.7 [closed]Munin-node 不会启动 Cent OS 5.7 [关闭]
【发布时间】:2011-12-04 19:35:55
【问题描述】:

我刚刚通过 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 对我来说似乎很完美。

知道我可以尝试什么吗?

【问题讨论】:

标签: centos munin


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2011-12-22
    • 2015-08-03
    • 2012-02-12
    • 2012-05-21
    • 1970-01-01
    • 1970-01-01
    • 2021-12-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多