- 论坛徽章:
- 24
|
main.sh 针对被临控端(IP),写反了吧
或者反过来说是, config里的IP写反?
贴一下结果:
[shell]# ./monitor_main.sh
----------------------------------------------------------------------------------------
Object : [ cpu ] DATE : 2007-07-12 19:59:47
Host 192.168.2.202192.168.2.226 root@192.168.2.226's password:
1.0 97.0 98.0 [ FAILURE ]
192.168.2.227 ssh: connect to host 192.168.2.227 port 22: Connection refused
192.168.2.228 root@192.168.2.228's password:
0.0 100.0 100.0 [ FAILURE ]
----------------------------------------------------------------------------------------
Object : [ mem ] DATE : 2007-07-12 19:59:53
Host 192.168.2.202192.168.2.226 root@192.168.2.226's password:
235.0 13.0 248.0 [ FAILURE ]
192.168.2.227 ssh: connect to host 192.168.2.227 port 22: Connection refused
192.168.2.228 root@192.168.2.228's password:
143.0 291.0 434.0 [ OK ]
----------------------------------------------------------------------------------------
感觉还不错,我想如果加以改进, 应该可以在有要求输入被控端密码时,在脚本里直接给密码.(用哪个命令可以实现了?) |
|