ling飘过 发表于 2014-09-18 13:22

nagios针对监控的linux服务器报错NRPE: Command '-t' not defined

各位,不知道有没有遇到此问题的。只有linux服务器在nagios中报此错误,windows没有报此错误。

NRPE: Command '-t' not defined



修改配置文件/usr/local/nagios/etc/objects/command.cfg
command_line    /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG2$ -t 30
去掉 -t后,报错

No output returned from plugin

请各位能够帮忙,实在是不知道怎么整了。
谢谢。

ling飘过 发表于 2014-09-18 14:41

故障已经解决,谢谢各位大侠

Shell_HAT 发表于 2014-09-22 14:04

回复 2# ling飘过


    把解决方法给大家分享一下吧

aslo_brook 发表于 2014-10-13 16:32

我有碰到过是客服端配置中:
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. parent for this key is found under: /settings/default this is marked as advanced in favour of the parent.
allowed hosts = IP地址/24

这是IP地址没有写对!
allowed hosts可以不启用!

ling飘过 发表于 2014-10-22 10:58

问题出在配置文件
/usr/local/nagios/etc/objects/command.cfg
command_line    /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG2$ -t 60
应为: command_line    /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 60

ling飘过 发表于 2014-10-22 10:59

如图,由于check alive 是正常的。表示应该是能够联通,只是参数不对。:D

回复 4# aslo_brook


   
页: [1]
查看完整版本: nagios针对监控的linux服务器报错NRPE: Command '-t' not defined