summaryrefslogtreecommitdiff
path: root/templates/monitor/nat/destination
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-12 12:30:24 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:29 -0500
commit3de34f9578e04f849f809329f7128a99e8010990 (patch)
tree68517fc749fc5d06d329b70d45e24013222c76e3 /templates/monitor/nat/destination
parent5ffdcf0fce813c75443dad86a2537d3fe6036c66 (diff)
downloadvyatta-op-3de34f9578e04f849f809329f7128a99e8010990.tar.gz
vyatta-op-3de34f9578e04f849f809329f7128a99e8010990.zip
Forground monitoring for nat
(cherry picked from commit f2b1229509cedbc5d201afb83a73dd142f98ddda)
Diffstat (limited to 'templates/monitor/nat/destination')
-rw-r--r--templates/monitor/nat/destination/node.def2
-rw-r--r--templates/monitor/nat/destination/rule/node.tag/node.def1
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/monitor/nat/destination/node.def b/templates/monitor/nat/destination/node.def
index b04248c..2e122b0 100644
--- a/templates/monitor/nat/destination/node.def
+++ b/templates/monitor/nat/destination/node.def
@@ -1,2 +1,2 @@
help: Monitor Destination NAT logs
-run: "Monitor Destination nat
+run: ${vyatta_bindir}/vyatta-monitor NAT-DEST "\[NAT-[0-9]*-DNAT\]"
diff --git a/templates/monitor/nat/destination/rule/node.tag/node.def b/templates/monitor/nat/destination/rule/node.tag/node.def
index 5a349c9..5733d14 100644
--- a/templates/monitor/nat/destination/rule/node.tag/node.def
+++ b/templates/monitor/nat/destination/rule/node.tag/node.def
@@ -1,2 +1,3 @@
help: Monitor Destination NAT logs for the specified rule
allowed: local -a ARR=$(cli-shell-api listEffectiveNodes service nat rule); echo "${ARR[@]}"
+run: ${vyatta_bindir}/vyatta-monitor NAT-DEST-RULE-$5 "\[NAT-$5-DNAT\]"