summaryrefslogtreecommitdiff
path: root/templates/monitor/nat/source
diff options
context:
space:
mode:
Diffstat (limited to 'templates/monitor/nat/source')
-rw-r--r--templates/monitor/nat/source/rule/node.tag/node.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/monitor/nat/source/rule/node.tag/node.def b/templates/monitor/nat/source/rule/node.tag/node.def
index d4c1793..ec7d35e 100644
--- a/templates/monitor/nat/source/rule/node.tag/node.def
+++ b/templates/monitor/nat/source/rule/node.tag/node.def
@@ -1,3 +1,5 @@
help: Monitor a specified Source NAT rule
-allowed: local -a ARR=$(cli-shell-api listEffectiveNodes service nat rule); echo "${ARR[@]}"
+allowed: local -a ARR
+ eval "ARR=($(cli-shell-api listEffectiveNodes service nat rule))"
+ echo ${ARR[@]}
run: ${vyatta_bindir}/vyatta-monitor NAT-SOURCE-RULE-$5 "\[NAT-$5-SNAT\]"