In checking with the support.veritas.com website, I found this note.
(I searched for "Application not online")
Document ID: 243984
http://support.veritas.com/docs/243984 E-Mail Colleague IconE-Mail this document to a colleague
VERITAS Cluster Server (VCS) Application resource FAULTs, even though application is online.
Details:
This TechNote complements the information found in the VERITAS Cluster Server (VCS) 2.0 Bundled Agents Reference Guide (Solaris) - Application Agent - Sample Configurations - page 5.
The sample configuration clearly demonstrates ways on the use of Application agent to monitor third-party applications. There are cases where just the PidFiles attribute may only need to be configured to monitor the application. This may be due to the fact that MonitorProgram is not available with the application or VCS monitor fails with MonitorProcesses, and eventually FAULTs the resource, even though the application comes up online.
According to the agent definition, the PidFiles has to be application-generated files, and not all of the applications will generate a PidFiles upon startup. Under these conditions, users may not be able to use the PidFiles attribute.
One possible solution: Build a wrapper with the application startup script to collect the PIDs to a file. Then use this wrapper script as StartProgram to the Application resource, instead of using the startup script that comes with the application. The PID file can then be used by VCS to monitor/online/offline successfully. An example is shown below -
Application custserv (
User = custserv
StartProgram = "/opt/spectrum/custserv/startCustServ.sh"
StopProgram = "/opt/spectrum/custserv/stopCustServ.sh"
CleanProgram = "/opt/spectrum/custserv/stopCustServ.sh"
PidFiles = { "/opt/spectrum/custserv/pid" }
)
...where PidFiles is generated from the wrapper script "startCustServ.sh" and not from the application.
This approach can be used in situations where MonitorProgram and MonitorProcesses seems ineffective or just not available to control the Application with VCS.