0
我用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工作正常,但我無法從客戶端得到任何東西。該插件輸出爲:
plugin_output=(Return code of 127 is out of bounds - plugin may be missing)
在我的nagios-stderr.log文件時,它提供了以下錯誤:
/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$
}
你對導致這種情況的原因以及我如何解決它有什麼想法?
在此先感謝。