Skip to main content
Version: 7.26

traffic-monitor


tool/traffic-monitor​

Type: Directory

Threshold trigger: run a script (on-event) when an interface's transmit or receive rate crosses a threshold.

FlagNameDescription
Xdisableddisabled
Iinvalidinvalid
ArgumentTypeDescription
namestringName of the traffic monitor entry
interface ( mandatory )iface_enumInterface whose rate is watched
trafficenum (transmitted | received) { transmitted:1, received:2 }Direction to watch: transmitted or received
triggerenum (above | below | always) { above:1, below:2, always:3 }When on-event runs: when the rate crosses above the threshold, crosses below it, or always (on every poll).
thresholdnumTraffic rate in bits per second that the trigger compares against
on-eventalt { script: string }Script run when the trigger condition is met