17.0 Object triggers > How-to's > Requiring an object threshold for trigger execution

Conventions

17.5 Requiring an object threshold for trigger execution

To configure a threshold trigger

  1. Create a trigger. Set its EType to threshold. Configure the AType, Action, and Threshold attributes' values based on the valid thresholds per object listed in the table found in Threshold triggers.

    NODECFG[node04] TRIGGER=EType=threshold,AType=exec,Action="$HOME/hightemp.py $OID",Threshold=gmetric

  2. Insert the gmetric name between brackets (such as gmetric[temp]). Provide a comparison operator. For valid options, see the comparison operators table.
  3. Provide a number or string to match against the threshold.
  4. NODECFG[node04] TRIGGER=EType=threshold,AType=exec,Action="$HOME/hightemp.py $OID",Threshold=gmetric[TEMP]>70,RearmTime=5:00

    Moab launches a script that warns the administrator when node04's gmetric temp exceeds 70. Moab rearms the trigger five minutes after it fires.