I need a idea please on how to change below script to monitor queue tree queue load.
Is this wright?:
system script
add name=“tl_down” source="/queue tree monitor-traffic [/queue tree find name “interface”] once do {
/system script
add name=“tl_down” source=“/interface monitor-traffic [/interface find name “interface”] once do {:if ($received-bits-per-second > 1048576) do {
/queue simple add name=(username . “_” . [:pick [/system clock get date] 4 6] . “-” . [:pick [/system clock get date] 0 3]
. “-” . [:pick [/system clock get date] 7 11] . “-” . [:pick [/system clock get time] 0 9]) limit-at=262144/262144
max-limit=262144/262144 target-addresses=“ip address” priority=1
:log warning “Traffic limit added for ip address/network/interface”
}
}”
add name=“tl_remove_down” source=“/interface monitor-traffic [/interface find name “interface”] once do {
:if ($received-bits-per-second < 1048576) do {
/queue simple remove [/queue simple find target-addresses=“ip address”]
:log warning “Traffic limit removed for ip address/network/interface”
}
}”