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中修改内容之后重新启动nagios
/etc/init.d/nagios restart
Socket timeout,这个报错信息缺省级别是CRITICAL的,如果不想让其报警,就设置其为UNKNOW
在nagios server端的配置文件中修改check_nrpe参数 加入" -u " ,可执行check_nrpe -h查看帮助
官网解释如下:
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中修改内容
- define command{
- command_name check_nrpe
- command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 30
- # 加上一个 -t 30 指定时间为 30 秒
- }
/etc/init.d/nagios restart
Socket timeout,这个报错信息缺省级别是CRITICAL的,如果不想让其报警,就设置其为UNKNOW
在nagios server端的配置文件中修改check_nrpe参数 加入" -u " ,可执行check_nrpe -h查看帮助
- define command {
- command_name check_nrpe
- command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u -t 30
- }
编辑回复