Tips for implementing the "MonitorProcesses" argument for the VCS Application Agent.

book

Article ID: 100019191

calendar_today

Updated On:

Description

Error Message

VCS ERROR V-16-10001-2 (hostname) Application::online:Program (program_name) does not exist or is not executable

Resolution

To utilize the MonitorProcesses argument field, the output of 'ps -ef' command should be utilized.
 
If the argument field for the process being monitored is truncated, modified or contains a special character, then this may result in the monitor process failing and/or the resource failing to online.
 
 
For example:
A VCS application resource called app1  with a shell script called:simple"1".sh
 
When the MonitorProcesses argument is: "simple" (truncation prior to the double quote) 
-monitoring will not occur, and resource online will fail.
 
When the MonitorProcesses argument is: simple"1".sh (the shell running the script is not included)
-monitoring will not occur, and resource online will fail.
 
Checking the 'ps -ef' output:
 
# ps -ef |grep simple
   root  2859 11578   0 14:02:59 pts/4       0:00 grep simple
   root  4278    27  3   Sep 24 pts/6     138:10 /bin/sh ./simple"1".sh
 
To input the above example script 'simple"1".sh' with a special character in the process output without "delimiting" the special character is possible using the following hares command:
 
hares-modify app1 MonitorProcesses '/bin/sh ./simple"1".sh
 
 
 
 

 

Issue/Introduction

Tips for implementing the "MonitorProcesses" argument for the VCS Application Agent.