search cancel

Processes probe execute a script command arguments variables


Article ID: 131044


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM)


This article talks about passing variables from the probe in the command arguments

Is there a way to pass variables from the probe in the command arguments?

We are trying to pass the PID in the command arguments in the "Execute a Script", but it is not accepting $pid, etc. It is just passing "$pid" not the PID of the process.



Any process probe version


Currently the action stab does not provide access to variables to be used on any of the lines in that section.
these are all going to static entries.

you might want to think about either:

  1. setting up each process as its own profile so the start command can be setup individually.
  2. look at parsing information out of your alarm and then using a lua script to send a start command back to nexec.

Additional Information

How to get top 5 processes and attach on Alarm message (notes)


 How to use the nexec probe to execute a command?