- 论坛徽章:
- 0
|
本帖最后由 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 |
|