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 you specify.
Use any combination among these attributes (MonitorProgram, PidFiles, or MonitorProcesses) to monitor the application.
If any one 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.
|