Use property values in script body

However, there is a way to use existing functionality to pass property values in the script arguments. To set this up, perform the following actions:

  1. Add the necessary properties to the object that will host the Program/script execution sensor.

  2. In the Monitoring section add the Program/script execution sensor and select the script. This method works with any script subtype.

  3. In the Arguments field set the properties in the variables format. Each property should be passed in its own argument.

  4. In the script, use the arguments with the $ symbol ($1 for the first argument, $2 for the second one and so on).

When you set up the sensor this way, the system will pass property values in the script.