2011-12-27 13 views
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$ 
} 

你对导致这种情况的原因以及我如何解决它有什么想法?

在此先感谢。

回答

0

没关系,我做到了。如果有另一个人遇到同样的问题,这里是解决方案。

请勿使用用户凭证安装nagios服务。我以本地系统帐户运行服务,现在eveything正在运行。 ;)

相关问题