17.0 Object triggers > References > Node triggers

Conventions

17.11 Node triggers

Triggers attached to nodes follow the same basic rules and formats as attaching them to other objects; however, not all attribute options are valid for each object. Nodes, like the other objects, have a unique set of trigger rules. The table below details the methods, options, and other notable details that come with attaching triggers to nodes.

Creation methods

Method Format Example
Command line on existing node: mschedctl - c mschedctl -c trigger <trigSpec> -o node:<nodeID>

> mschedctl -c trigger EType=fail,AType=exec,Action="/tmp/nodeFailure.sh" -o node:node01

Node configuration in moab.cfg: NODECFG NODECFG[<name>] TRIGGER=<trigSpec>

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

Valid event types

Valid action types

Thresholds

Node threshold settings
Valid ETypes threshold
Valid Threshold types gmetric

Mail recipient

The user listed first in ADMINCFG[1] (usually root)

See Using a trigger to send email for more information.