免费注册 查看新帖 |

Chinaunix

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

救命啊!nagios 监控出现问题,请各位大牛指点迷津!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-03 16:49 |只看该作者 |倒序浏览
本帖最后由 mytangyou 于 2010-08-03 17:37 编辑

nagios 测试能成功,但是多试几次这条命令就会卡在那里,一动也不动
监控时,一天总要发几条消息"PROBLEM hk202/Free Disk is CRITICAL",但实际上是没有问题的
怎么办啊??
[root@host39 servers]# /usr/local/nagios/libexec/check_by_ssh -H myhost -t 100 -l nagios -i mykey -p 30022 -C "/usr/local/nagios/libexec/check_disk -w 5000M -c 3000M -p / -w 3000M -c 1500M -p /export"
DISK OK - free space: / 5801 MB (43% inode=92%); /export 3666 MB (7% inode=55%);| /=7566MB;9083;11083;0;14083 /export=47027MB;50407;51907;0;53407
这个执行成功了,但是多试几次就会出现超时
[root@host39 servers]# /usr/local/nagios/libexec/check_by_ssh -H myhost -t 100 -l nagios -i mykey -p 30022 -C "/usr/local/nagios/libexec/check_disk -w 5000M -c 3000M -p / -w 3000M -c 1500M -p /export"
CRITICAL - Plugin timed out after 100 seconds

在/var/log/messages中的内容为
nagios: SERVICE ALERT: xx.xx.xx.xx;Free Disk;UNKNOWN;SOFT;1;Remote command execution failed: Connection closed by xx.xx.xx.xx

nagios: SERVICE ALERT: xx.xx.xx.xx;Free Disk;CRITICAL;SOFT;1;CRITICAL - Plugin timed out after 100 seconds

论坛徽章:
0
2 [报告]
发表于 2010-08-03 17:33 |只看该作者
咦??高手在哪??来个高手温暖我的世界吧{:3_198:}

论坛徽章:
9
2015亚冠之阿尔纳斯尔
日期:2015-09-10 16:21:162015亚冠之塔什干火车头
日期:2015-07-01 16:23:022015年亚洲杯之巴勒斯坦
日期:2015-04-20 17:19:46子鼠
日期:2014-11-13 09:51:26未羊
日期:2014-08-28 18:13:36技术图书徽章
日期:2014-02-21 09:30:15酉鸡
日期:2014-01-14 11:12:49天蝎座
日期:2013-12-09 17:56:53平安夜徽章
日期:2015-12-26 00:06:30
3 [报告]
发表于 2010-08-04 10:09 |只看该作者
root@host39 servers]# /usr/local/nagios/libexec/check_by_ssh -H myhost -t 100 -l nagios -i mykey -p 30022 -C "/usr/local/nagios/libexec/check_disk -w 5000M -c 3000M -p / -w 3000M -c 1500M -p /export"
CRITICAL - Plugin timed out after 100 seconds

把-t后面的值调大些
其实这个/usr/local/nagios/libexec/check_by_ssh -h就知道了

论坛徽章:
0
4 [报告]
发表于 2010-08-04 10:12 |只看该作者
是檢查本機的. 其實可以先直接在指令上跑... 跑出結果ok後就把它加到nagios內, 那錯的機會就會少一點了.
還有,可以查看各命令的參數. 看看怎樣配合使用.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP