The monitor function can execute a customized monitoring utility to perform an additional SAP server state check.
The monitor function executes the utility specified in the MonitorProgram attribute if the following conditions are satisfied:
The first-level process check indicates that the SAP Web AS instance is online.
The SecondLevelMonitor attribute is either set to 0 or 1, and the second-level check indicates that the SAP Web AS instance is online.
The SecondLevelMonitor attribute is set to greater than 1, but the second-level check is deferred for this monitoring cycle.
The monitor function interprets the utility exit code as follows:
110 or 0 |
SAP server instance is online |
100 or 1 |
SAP server instance is offline |
99 |
SAP server instance is unknown |
Any other value |
SAP server instance is unknown |
To ensure that the customized utility is always available to the agent, Symantec recommends storing the file in a shared directory that is available on an online node.