diff options
Diffstat (limited to 'templates/monitor/nat/destination')
9 files changed, 13 insertions, 3 deletions
diff --git a/templates/monitor/nat/destination/background/node.def b/templates/monitor/nat/destination/background/node.def new file mode 100644 index 0000000..745b70b --- /dev/null +++ b/templates/monitor/nat/destination/background/node.def @@ -0,0 +1 @@ +help: Monitor Destination NAT in the background diff --git a/templates/monitor/nat/destination/background/start/node.def b/templates/monitor/nat/destination/background/start/node.def new file mode 100644 index 0000000..a3a310c --- /dev/null +++ b/templates/monitor/nat/destination/background/start/node.def @@ -0,0 +1,2 @@ +help: Start background Destination NAT monitoring +run: ${vyatta_bindir}/vyatta-monitor-background NAT-DEST "\[NAT-[0-9]*-DNAT\]" diff --git a/templates/monitor/nat/destination/background/stop/node.def b/templates/monitor/nat/destination/background/stop/node.def new file mode 100644 index 0000000..a139d6c --- /dev/null +++ b/templates/monitor/nat/destination/background/stop/node.def @@ -0,0 +1,2 @@ +help: Stop background Destination NAT monitoring +run: ${vyatta_bindir}/vyatta-monitor-background-stop NAT-DEST diff --git a/templates/monitor/nat/destination/node.def b/templates/monitor/nat/destination/node.def index 2e122b0..8c24cb4 100644 --- a/templates/monitor/nat/destination/node.def +++ b/templates/monitor/nat/destination/node.def @@ -1,2 +1,2 @@ -help: Monitor Destination NAT logs +help: Monitor Destination NAT run: ${vyatta_bindir}/vyatta-monitor NAT-DEST "\[NAT-[0-9]*-DNAT\]" diff --git a/templates/monitor/nat/destination/rule/node.def b/templates/monitor/nat/destination/rule/node.def index f1243ee..b90312e 100644 --- a/templates/monitor/nat/destination/rule/node.def +++ b/templates/monitor/nat/destination/rule/node.def @@ -1 +1 @@ -help: Monitor Destination NAT logs for a specified rule +help: Monitor a specified Destination NAT rule diff --git a/templates/monitor/nat/destination/rule/node.tag/background/node.def b/templates/monitor/nat/destination/rule/node.tag/background/node.def new file mode 100644 index 0000000..7f64872 --- /dev/null +++ b/templates/monitor/nat/destination/rule/node.tag/background/node.def @@ -0,0 +1 @@ +help: Monitor a specified Destination NAT rule in the background diff --git a/templates/monitor/nat/destination/rule/node.tag/background/start/node.def b/templates/monitor/nat/destination/rule/node.tag/background/start/node.def new file mode 100644 index 0000000..6dc8430 --- /dev/null +++ b/templates/monitor/nat/destination/rule/node.tag/background/start/node.def @@ -0,0 +1,2 @@ +help: Start background monitoring of a specified Destination NAT rule +run: ${vyatta_bindir}/vyatta-monitor-background NAT-DEST-RULE-$5 "\[NAT-$5-DNAT\]" diff --git a/templates/monitor/nat/destination/rule/node.tag/background/stop/node.def b/templates/monitor/nat/destination/rule/node.tag/background/stop/node.def new file mode 100644 index 0000000..fb9016f --- /dev/null +++ b/templates/monitor/nat/destination/rule/node.tag/background/stop/node.def @@ -0,0 +1,2 @@ +help: Stop background monitoring of a specified Destination NAT rule +run: ${vyatta_bindir}/vyatta-monitor-background-stop NAT-DEST-RULE-$5 diff --git a/templates/monitor/nat/destination/rule/node.tag/node.def b/templates/monitor/nat/destination/rule/node.tag/node.def index 5733d14..84119f6 100644 --- a/templates/monitor/nat/destination/rule/node.tag/node.def +++ b/templates/monitor/nat/destination/rule/node.tag/node.def @@ -1,3 +1,3 @@ -help: Monitor Destination NAT logs for the specified rule +help: Monitor a specified Destination NAT 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\]" |