2016-10-04 103 views
0

的check_nrpe脚本可以解决自定义显示器到主机失败。错误号为2:没有这样的文件或目录

/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

回答

0

的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

验证在
相关问题