- 论坛徽章:
- 0
|
关于veritas编写的agent的注意事项,欢迎大家讨论。
麻烦大家帮我看看,我配置了跟honglh一样的application service group:
group MySG (
SystemList = { sysa = 0, sysb = 1 }
AutoStartList = { sysa, sysb }
)
Application mytest (
StartProgram = "/usr/bin/mpstat 10 &"
StopProgram = "/usr/bin/pkill mpstat"
MonitorProcesses = {"mpstat 10" }
)
测试时报错:
bash-2.03# hagrp -autoenable MySG -sys sysa
bash-2.03# hagrp -enableresources MySG
bash-2.03# hares -online mytest -sys sysa
VCS:10283:Resource has not been probed on system sysa
bash-2.03#
查log文档,发现以下的错误信信息:
bash-2.03# tail /var/VRTSvcs/log/Application_A.log
TAG_B 2003/05/02 09:08:57 VCS:148669:Application:mytest:monitor:Error while getting information about user:/usr/bin/mpstat 10 & (No such file or directory).
但我用指令的方式是没有问题的:
bash-2.03# /usr/bin/mpstat 10 &
[1] 22739
bash-2.03# CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 49 0 230 221 210 650 19 89 25 29 1112 1 3 55 42
2 48 0 254 359 252 652 29 89 31 26 1263 1 2 63 34
请问哪位有什么建议吗? 我用的是VCS 3.5 Demo 版,OS 是Solaris 8, 安装VCS的时候没有任何问题.
 |
|