免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2896 | 回复: 15
打印 上一主题 下一主题

nagios问题,请各位老大帮忙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-27 16:48 |只看该作者 |倒序浏览
Http Check' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
那位高手遇到过此类问题啊

论坛徽章:
0
2 [报告]
发表于 2008-11-27 16:50 |只看该作者
原帖由 meiqiangwei 于 2008-11-27 16:48 发表
Http Check' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
那位高手遇到过此类问题啊



“localhost” 这个主机 在hosts.cfg文件里面定义了吗?

论坛徽章:
0
3 [报告]
发表于 2008-11-27 16:55 |只看该作者
我把nagios的把有配置文件内容都写在了minimal.cfg文里面,我在主配置文件nagios.cfg把配置都指向了minimal.cfg

论坛徽章:
0
4 [报告]
发表于 2008-11-27 16:55 |只看该作者
在minimal.cfg里我定义了localhost主机

论坛徽章:
0
5 [报告]
发表于 2008-11-27 17:02 |只看该作者
原帖由 meiqiangwei 于 2008-11-27 16:55 发表
在minimal.cfg里我定义了localhost主机


不好意思 我把localhost给干掉了

你把你的nagios.cfg文件关于你配置文件定义的那部分看看

还有就是你的localhost的那一段贴出来看看

localhost这台机器添加到一个组里面了吗?

论坛徽章:
0
6 [报告]
发表于 2008-11-27 17:07 |只看该作者
帮忙看看 谢谢喽
define host{

name generic-host ; The name of this hosttemplate

notifications_enabled 1 ; Host notifications are enabled

event_handler_enabled 1 ; Host event handler is enabled

flap_detection_enabled 1 ; Flap detection is enabled

failure_prediction_enabled 1 ; Failure prediction is enabled

process_perf_data 1 ; Process performance data

retain_status_information 1 ; Retain status information across program restarts

check_interval 1

retain_nonstatus_information 1 ; Retain non-status information across program restarts

register 0 ; DONT REGISTER THIS DEFINITION - ITSNOT A REAL HOST, JUST A TEMPLATE!

}







#Since this is a simple configuration file, we only monitor one host -the

#local host (this machine).




define host{

use generic-host ; Name of host templateto use

host_name localhost

alias host

address 127.0.0.1

check_command check-host-alive

max_check_attempts 10

notification_interval 120

notification_period 24x7

notification_options d,r

contact_groups admins

}




define host{

use generic-host ; Name of host templateto use

host_name master

alias master

address 192.168.200.1

check_command check-host-alive

max_check_attempts 10

notification_interval 120

notification_period 24x7

notification_options d,r

contact_groups admins

}




define host{

use generic-host ; Name of host templateto use

host_name www.direction.cc

alias www

address 60.195.250.59

check_command check-host-alive

max_check_attempts 10

notification_interval 120

notification_period 24x7

notification_options d,r

contact_groups admins

}













###############################################################################

###############################################################################

#

#HOST GROUPS

#

###############################################################################

###############################################################################




#We only have one host in our simple config file, so there is no needto

#create more than one hostgroup.




define hostgroup{

hostgroup_name host

alias Test Servers

members localhost

}










define hostgroup{

hostgroup_name master

alias Master Servers

members master,localhost

}

论坛徽章:
0
7 [报告]
发表于 2008-11-27 17:17 |只看该作者
来吧 tail -f /var/log/nagios/nagios.log看看
或者你nagios -v nagios.cfg看看

论坛徽章:
0
8 [报告]
发表于 2008-11-27 17:18 |只看该作者
Make sure the plugin you're trying to run actually exists.

你的plugin是不是没有拷贝到正确的地方啊?????

论坛徽章:
0
9 [报告]
发表于 2008-11-27 17:19 |只看该作者
我拷到/usr/local/nagios下面了

论坛徽章:
0
10 [报告]
发表于 2008-11-27 17:25 |只看该作者
原帖由 meiqiangwei 于 2008-11-27 17:19 发表
我拷到/usr/local/nagios下面了


cp nagios-plugins/libexec /usr/local/nagios/libexec

这样的吗?

如果你确定拷贝到那个下面的话,你给我贴出一段你的checkcommand的内容

按照你的说法 你应该也是在minimal.cfg文件里面定义的吧????
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP