Highlighted

About monitor scripts.

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.

1 Solution

Accepted Solutions
Highlighted
Accepted Solution!

Thanks for your help,i just

Thanks for your help,i just restarted the  VCS,and then the problem disappeared

thanks anyway ~~

View solution in original post

3 Replies
Highlighted

Need ps command details

Can you post the exact ps command you are using?

Highlighted

Can you post ps -ef output

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

Highlighted
Accepted Solution!

Thanks for your help,i just

Thanks for your help,i just restarted the  VCS,and then the problem disappeared

thanks anyway ~~

View solution in original post