Define a data source to monitor an application or system by using a command return code.
A command return code is a user created script, executable file, query, or system command. A command return code is an application-specific mechanism for determining whether the application or monitored system is available. The agent runs the specified command and determines the state of the application or monitored system by examining the return code.
The command must present a unique return code for each descriptive state. The command must also define a message to be used by the agent for each of these return codes. The command can use environment and configuration variables within the user created script, executable file, query, or system command. The command must not use environment or configuration variables on the command-line invocation of the command, with only the following exceptions available: AGENT_BIN_DIR, AGENT_ETC_DIR, AGENT_LIB_DIR, CANDLE_HOME, and CANDLEHOME.



You can assign the following states to the test return codes:






You can assign the following states to the test return codes:

The Messages window lists messages that are defined in the agent. The Messages (list) window opens(Figure 11).


