Return code of 127 is out of bounds - plugin may be missing
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$
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。