08-23-2011 01:30 PM
I add a application type resource and write a script to monitor whether the key process exists.
but i encounter a weird situation:the process exists,but the monitor script can not get it(use "ps -ef") when VCS execute the script,
and directly enter the command "ps -ef" into terminal can get it.
please help me find out what happened.
thanks a lot.
Solved! Go to Solution.
08-24-2011 03:01 PM
Thanks for your help,i just restarted the VCS,and then the problem disappeared
thanks anyway ~~
08-24-2011 05:53 AM
Can you post the exact ps command you are using?
08-24-2011 07:19 AM
Can you post ps -ef output and main.cf extract of your application resource (or output of hares -display for your resource).
Note MonitorProcesses attribute needs to be exact output from ps -ef, so for example if ps -ef output is truncated (as it is more than 80 chars) then your MonitorProcesses attribute value needs to be truncated to the same. Note also that the agent matches user, so if user is non-root, you MUST specify "User" attribute.
Mike
08-24-2011 03:01 PM
Thanks for your help,i just restarted the VCS,and then the problem disappeared
thanks anyway ~~