/tool/traffic-monitor

当前显示英文原文,切换到「中文」可查看译文。

traffic-monitor

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


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 *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