Plugins 检查\u nt并检查\u nrpe给出共享对象文件的错误

Plugins 检查\u nt并检查\u nrpe给出共享对象文件的错误,plugins,shared,nagios,Plugins,Shared,Nagios,我用cygwin重新编译了nagios,所以现在我有了一个在Windows下工作的nagios。问题是我无法从NSClient或NRPE获得任何信息。我还用这个命令重新编译了插件,所以现在我有了“check\u nt.exe”和“check\u nrpe.exe”。我已将NSClient++安装到我的客户端 当我从命令行运行以下命令时,一切似乎都正常工作 ls\plugins>check_nrpe.exe -H 10.0.0.73 I (0.3.9.328 2011-08-16) seem

我用cygwin重新编译了nagios,所以现在我有了一个在Windows下工作的nagios。问题是我无法从NSClient或NRPE获得任何信息。我还用这个命令重新编译了插件,所以现在我有了“check\u nt.exe”和“check\u nrpe.exe”。我已将NSClient++安装到我的客户端

当我从命令行运行以下命令时,一切似乎都正常工作

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
My services.cfg文件:

define service{
use  generic-service
hostgroup_name   windows-comps
service_description NSClient++ Version
check_command    check_nt!CLIENTVERSION
}
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$
}
My commands.cfg文件:

define service{
use  generic-service
hostgroup_name   windows-comps
service_description NSClient++ Version
check_command    check_nt!CLIENTVERSION
}
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$
}
你知道这是什么原因吗?我怎样才能解决


提前谢谢。

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

不要使用用户凭据安装nagios服务。我以本地系统帐户的身份运行该服务,现在一切正常。;)