Forum Discussion

leo_lee's avatar
leo_lee
Level 2
14 years ago
Solved

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.

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

    thanks anyway ~~

  • 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

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

    thanks anyway ~~