Examples of property file

Examples of setting parameters in the property files.

#First script definition: script ex_script1.sh is started every 150 seconds. It returns float values and only the output rows equal to 0.5 are considered by the agent.
ATTRIBUTE_NAME=sample1 
SCRIPT_PATH_WITH_PARMS=/opt/ibm/apm/agent/localconfig/lz/scripts_definitions/ex_script1.sh
EXECUTION_FREQUENCY=150
OUTPUT_TYPE=FLOAT
FILTER_VALUE=0.5
FILTER_OPERATOR==
#Second script definition: script ex_script2 is started every 60 seconds. It returns integer values and only the rows different from 0 are considered by the agent.
ATTRIBUTE_NAME=ex_script2
SCRIPT_PATH_WITH_PARMS=${CANDLE_HOME}/tmp/check_out.sh
EXECUTION_FREQUENCY=60
OUTPUT_TYPE=INTEGER
FILTER_VALUE=0
FILTER_OPERATOR=!=
#Third script definition: script ex_script3.sh is started every 120 seconds with three input parameters (the first input parameter is an integer, the second and third are string). It is ended if it hangs or if the execution time is greater than the timeout value.
ATTRIBUTE_NAME=ex_script3 
SCRIPT_PATH_WITH_PARMS=/opt/scripts/ex_script3.sh 1 "second input parameter" "third input parameter" 
EXECUTION_FREQUENCY=120
OUTPUT_TYPE=STRING
KILL_AFTER_TIMEOUT=TRUE

#Fourth script definition: script cpu_mem_percentage.sh is started every 50 seconds and returns the cpuid as standard output string and two float values for Idle and Used CPU percentage and two integers for Memory and Virtual Memory usage. The pipe is used as separator to parse the output. An example of row that must be returned by the script is:

cpu2|35,5|65,5|3443|123800

ATTRIBUTE_NAME=cpu and mem Usage
SCRIPT_PATH_WITH_PARMS=${SCRIPT_HOME}/cpu_mem_percentage.sh
OUTPUT_TYPE=STRING
TOKEN_TYPES=F,F,I,I
TOKEN_LABELS= Idle CPU %, Used CPU %, Virt MEM used MB, MEM used MB
TOKEN_SEPARATOR=|
EXECUTION_FREQUENCY=50