【问题标题】:failed. errno is 2: No such file or directory失败的。 errno 为 2:没有这样的文件或目录
【发布时间】:2016-10-05 00:33:25
【问题描述】:

check_nrpe 脚本可以将自定义监视器解析到主机

/usr/lib64/nagios/plugins/check_nrpe -H 172.31.3.90 -c pinger

在 Nagios 仪表板中,它会引发错误

failed. errno is 2: No such file or directory

网络和其他依赖项工作正常,并且定义命令和服务似乎也很好

define command {
        command_name    pinger
        command_line    check_nrpe!pinger
}

define service {
        use                             local-service         ; Name of service template to use
        host_name                       ci3
        service_description             pinger
        check_command                   pinger
}

Dashboard

【问题讨论】:

    标签: nagios


    【解决方案1】:

    check_nrpe命令必须在文件中添加到nagios服务器

    /usr/local/nagios/etc/objects/commands.cfg
    

    条目引用程序 check_nrpe

    define command {
           command_name                             check_nrpe
           command_line                             /usr/lib64/nagios/plugins/check_nrpe -H $HOSTNAME$ -c pinger
    }
    

    现在服务正在收集数据,可以在Dashboard进行验证

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-20
      • 2015-11-19
      • 2013-03-21
      • 2015-04-09
      • 2019-05-26
      相关资源
      最近更新 更多