【问题标题】:check_nt and check_nrpe give error for shared object filecheck_nt 和 check_nrpe 给出共享对象文件的错误
【发布时间】:2011-12-27 13:41:19
【问题描述】:

我用 cygwin 重新编译了 nagios,所以现在我有一个可以在 Windows 中运行的 nagios。问题是我无法从 NSClient 或 NRPE 获得任何东西。我还用命令重新编译了插件,所以现在我有了“check_nt.exe”和“check_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

我的 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$
}

您对导致此问题的原因以及如何解决此问题有任何想法吗?

提前致谢。

【问题讨论】:

    标签: plugins shared nagios


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-30
      • 1970-01-01
      • 2013-04-16
      • 1970-01-01
      • 2016-05-11
      • 1970-01-01
      • 2013-06-26
      • 2018-12-17
      相关资源
      最近更新 更多