标签:nagios
1、使用命令直接运行正常
[root@lvs01 objects]# /usr/local/nagios/libexec/check_nrpe -H 192.168.2.3 -c check_iostat
IOSTAT OK - user 0.62 nice 0.00 sys 1.76 iowait 0.54 idle 0.00 | iowait=0.54%;; idle=0.00%;; user=0.62%;; nice=0.00%;; sys=1.76%;;
2、原因:使用脚本导入时,以变量处理了$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$此行
define command{
command_name check_nrpe
command_line $/check_nrpe -H $ -c $ <--此处命令错误
}
3、正确命令为:
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
本文出自 “guoxianqi” 博客,请务必保留此出处http://guoxianqi.blog.51cto.com/8764300/1549802
Return code of 127 is out of bounds - plugin may be missing
标签:nagios
原文地址:http://8774300.blog.51cto.com/8764300/1549802