If you specify the MonitorProgram attribute, the agent executes the user defined
MonitorProgram in the user-specified context. If you specify the PidFiles attribute, the routine verifies that the process ID that is found in each listed file is running. If you specify the MonitorProcesses attribute, the routine verifies that each listed process is running in the context of the user you specify.
Use any combination among these attributes (MonitorProgram, PidFiles, or MonitorProcesses) to monitor the application.
If any of the processes that are specified in either PidFiles or MonitorProcesses is determined not to be running, the monitor returns OFFLINE. If the process terminates ungracefully, the monitor returns OFFLINE and failover occurs.
To monitor the resource, the agent function performs the command:
su [-] user -c executable_to_monitor_resource
|