悠悠源 发表于 2015-10-15 15:37:19

nagios配置完成,监控报错return code of 127 is out of bounds

nagios配置完成,监控报错return code of 127 is out of bounds,监控的JMS,JVM,thread都报这样的错。
插件什么都装了,还是这样,

sky 发表于 2015-10-15 15:40:59

把你的配置文件贴出来瞅瞅

sky 发表于 2015-10-15 15:44:23

要求在服务器上安装如下组件:

# rpm -qa | grep net-snmp
net-snmp-libs-5.1.2-11.el4_6.11.2
net-snmp-5.1.2-11.el4_6.11.2
net-snmp-utils-5.1.2-11.EL4.10

安装上述组件后,再重新安装nagios-plugin插件。

# tar xvf nagios-plugins-1.4.11.tar.gz
# cd nagios-plugins-1.4.11
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
# make
# make install

最后重新启动nagios服务

#service nagios restart

等待2分钟左右,就看到服务器的状态都是up的。

sky 发表于 2015-10-15 15:44:45

不行的话就有可能是你的配置文件配置有问题,贴出来我看看

sky 发表于 2015-10-15 15:46:04

所监控服务报错(Return code of 127 is out of bounds – plugin may be missing)

这行代码 command_line $USER1/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
改成command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ 就对 了

悠悠源 发表于 2015-10-15 16:11:05

sky 发表于 2015-10-15 15:44
要求在服务器上安装如下组件:

# rpm -qa | grep net-snmp


这些早就安装了的

悠悠源 发表于 2015-10-15 16:11:26

sky 发表于 2015-10-15 15:46
所监控服务报错(Return code of 127 is out of bounds – plugin may be missing)

这行代码 command_lin ...

这个看过了,没有问题的

悠悠源 发表于 2015-10-15 16:12:45

需要那些配置文件?

sky 发表于 2015-10-15 17:23:49

监控这个项目的配置文件。

悠悠源 发表于 2015-10-19 10:07:07

sky 发表于 2015-10-15 17:23
监控这个项目的配置文件。

services.cfg下的信息:
define service{
        host_name                                99.12.100.99_7001-8001
        service_description                check_weblogic_jms_7001
        _SERVICE_ID                        212
        check_command                        check_weblogic!'hostname=99.12.100.99&port=7001&username=weblogic&password=jk_2015&jms-runtime=CurrentConnections,500,750'
        max_check_attempts                        6
        normal_check_interval                2
        retry_check_interval                1
        check_period                        24x7
        notification_interval                5
        first_notification_delay                1
        notification_period                24x7
        notification_options                w,u,c,r
        contacts                                tongzhi
}

}

define command{
        command_name                        check_weblogic
        command_line                        $USER1$/wlsagent.sh $ARG1$
}

页: [1]
查看完整版本: nagios配置完成,监控报错return code of 127 is out of bounds