Agent functions

The value of the Operations attribute for this agent is OnOff.

Online 

Runs the StartProgram attribute with the specified parameters in the context of the specified user. 

Offline 

Runs the StopProgram attribute with the specified parameters in the context of the specified user. 

Monitor 

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. 

Clean 

Terminates processes specified in PidFiles or MonitorProcesses. Ensures that only those processes (that are specified in the MonitorProcesses attribute) running with the user ID specified in the User attribute are killed. If the CleanProgram is defined, the agent executes the CleanProgram.