私はcygwinでnagiosを再コンパイルしました。今はWindowsで動作するNagiosがあります。問題はNSClientやNRPEから何も得られないということです。また、コマンドでプラグインを再コンパイルしたので、 "check_nt.exe"と "check_nrpe.exe"があります。 NSClient ++をクライアントにインストールしました。check_ntとcheck_nrpeは共有オブジェクトファイルにエラーを返します
次のコマンドをコマンドラインから実行すると、すべて正常に動作しているようです。
ls\plugins>check_nrpe.exe -H 10.0.0.73
I (0.3.9.328 2011-08-16) seem to be doing fine...
ls\plugins>check_nt.exe -H 10.0.0.73 -v CLIENTVERSION -p 12489 -s test
NSClient++ 0.3.9.328 2011-08-16
残念ながら、私はNagiosのを始めています、Nagiosは正常に動作しているが、私はクライアントから何かを得ることができません。プラグインの出力は次のようになります。それは次のエラーを与える私のnagios-たSTDERR.logファイルで
plugin_output=(Return code of 127 is out of bounds - plugin may be missing)
:
/plugins/check_nrpe.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
/plugins/check_nt.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
マイservices.cfgファイル:
define service{
use generic-service
hostgroup_name windows-comps
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
マイcommands.cfgファイル:
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s test -v $ARG1$ $ARG2$
}
どのような原因があり、どのように修正できるかについては何か考えていますか?
ありがとうございます。