alibabamama 发表于 2019-1-13 14:12:50

nagios监控服务器,报错:Return code of 127 is out of bounds – plugin may be missing

  今天在公司搭建了一台negios服务器。在添加被监控服务器后,几个监控的服务都是ok的,但主机显示是down的。

  环境说明:
  nagios server:
  redhat 6.3 x64 最小化安装
  关闭selinux and iptables
  nagios-3.4.1.tar.gz
  nagios-plugins-2.0.3.tar.gz
  nrpe-2.15.tar.gz
  按照以前的手册一步步操作。以前都是ok的,不知道这次为何报错。
http://s3.运维网.com/wyfs02/M01/4D/95/wKioL1RTol6Tub7CAAEbwHa1LdI628.jpg
  在百度上搜索了一大圈,看到的解决方案都和我的不一样。我估计是因为我使用的插件和nrpe的版本都是最新导致的。
  后来搜索英文文档,发现一个帖子有解决方案。按照步骤操作。果然ok。
  要求在服务器上安装如下组件:
# 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的。
  

  如果你和我一样,赶快试试吧。



页: [1]
查看完整版本: nagios监控服务器,报错:Return code of 127 is out of bounds – plugin may be missing