0

munin-nodeをyum経由で新しいcentos5.764ビットマシンにインストールしました。

インストールはうまくいきました。過去に多くのマシンで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 に答える