cancel
Showing results for 
Search instead for 
Did you mean: 

About monitor scripts.

leo_lee
Level 2

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 ACCEPTED SOLUTION

Accepted Solutions

leo_lee
Level 2

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

thanks anyway ~~

View solution in original post

3 REPLIES 3

Prasanna_Kulkar
Level 3
Employee

Can you post the exact ps command you are using?

mikebounds
Level 6
Partner Accredited

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

leo_lee
Level 2

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

thanks anyway ~~