CHECK_NRPE: Socket timeout after 10 seconds

回复 收藏
nagios 报警出现CHECK_NRPE: Socket timeout after 10 seconds错误,实际业务并没有出现问题

官网解释如下:
The check_nrpe plugin returns “CHECK_NRPE: Socket timeout after 10 seconds”

The command that the NRPE daemon was asked to run took longer than 10 seconds to execute. This is the
most likely cause if the error message was “CHECK_NRPE: Socket timeout after 10 seconds”. Use the -t
command line option to specify a longer timeout for the check_nrpe plugin. The following example will
increase the timeout to 30 seconds:

nrpe 插件执行时间大于10秒钟,所以会发报警信息,解决的方法如下:

command.cfg中修改内容
  1. define command{
  2. command_name check_nrpe
  3. command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 30   
  4. # 加上一个 -t 30 指定时间为 30 秒
  5. }
之后重新启动nagios
/etc/init.d/nagios restart

Socket timeout,这个报错信息缺省级别是CRITICAL的,如果不想让其报警,就设置其为UNKNOW
在nagios server端的配置文件中修改check_nrpe参数 加入" -u " ,可执行check_nrpe -h查看帮助
  1. define command {
  2.   command_name  check_nrpe
  3. command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$  -u -t 30   
  4. }
2013-01-22 16:41 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: