diff options
Diffstat (limited to 'templates/monitor/nat/destination')
10 files changed, 21 insertions, 13 deletions
diff --git a/templates/monitor/nat/destination/background/node.def b/templates/monitor/nat/destination/background/node.def index 745b70b..9c60d84 100644 --- a/templates/monitor/nat/destination/background/node.def +++ b/templates/monitor/nat/destination/background/node.def @@ -1 +1 @@ -help: Monitor Destination NAT in the background +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 index a3a310c..599c54c 100644 --- a/templates/monitor/nat/destination/background/start/node.def +++ b/templates/monitor/nat/destination/background/start/node.def @@ -1,2 +1,2 @@ -help: Start background Destination NAT monitoring -run: ${vyatta_bindir}/vyatta-monitor-background NAT-DEST "\[NAT-[0-9]*-DNAT\]" +help: Start background destination NAT monitoring +run: ${vyatta_bindir}/vyatta-monitor-background NAT-DEST "\[NAT-DST-[0-9]*-*\]" diff --git a/templates/monitor/nat/destination/background/stop/node.def b/templates/monitor/nat/destination/background/stop/node.def index a139d6c..a3e13ff 100644 --- a/templates/monitor/nat/destination/background/stop/node.def +++ b/templates/monitor/nat/destination/background/stop/node.def @@ -1,2 +1,2 @@ -help: Stop background Destination NAT monitoring +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 8c24cb4..df2893b 100644 --- a/templates/monitor/nat/destination/node.def +++ b/templates/monitor/nat/destination/node.def @@ -1,2 +1,2 @@ -help: Monitor Destination NAT -run: ${vyatta_bindir}/vyatta-monitor NAT-DEST "\[NAT-[0-9]*-DNAT\]" +help: Monitor destination NAT +run: ${vyatta_bindir}/vyatta-monitor NAT-DEST "\[NAT-DST-[0-9]*-*\]" diff --git a/templates/monitor/nat/destination/rule/node.tag/background/node.def b/templates/monitor/nat/destination/rule/node.tag/background/node.def index 7f64872..c862d82 100644 --- a/templates/monitor/nat/destination/rule/node.tag/background/node.def +++ b/templates/monitor/nat/destination/rule/node.tag/background/node.def @@ -1 +1 @@ -help: Monitor a specified Destination NAT rule in the background +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 index 6dc8430..710f4a7 100644 --- a/templates/monitor/nat/destination/rule/node.tag/background/start/node.def +++ b/templates/monitor/nat/destination/rule/node.tag/background/start/node.def @@ -1,2 +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\]" +help: Start background monitoring of a specified destination NAT rule +run: ${vyatta_bindir}/vyatta-monitor-background NAT-DEST-RULE-$5 "\[NAT-DST-$5-*\]" 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 index fb9016f..bdd727a 100644 --- a/templates/monitor/nat/destination/rule/node.tag/background/stop/node.def +++ b/templates/monitor/nat/destination/rule/node.tag/background/stop/node.def @@ -1,2 +1,2 @@ -help: Stop background monitoring of a specified Destination NAT rule +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 d99860b..8be31fc 100644 --- a/templates/monitor/nat/destination/rule/node.tag/node.def +++ b/templates/monitor/nat/destination/rule/node.tag/node.def @@ -1,5 +1,5 @@ -help: Monitor a specified Destination NAT rule +help: Monitor a specified destination NAT rule allowed: local -a ARR - eval "ARR=($(cli-shell-api listEffectiveNodes service nat rule))" + eval "ARR=($(cli-shell-api listEffectiveNodes nat destination rule))" echo ${ARR[@]} -run: ${vyatta_bindir}/vyatta-monitor NAT-DEST-RULE-$5 "\[NAT-$5-DNAT\]" +run: ${vyatta_bindir}/vyatta-monitor NAT-DEST-RULE-$5 "\[NAT-DST-$5-*\]" diff --git a/templates/monitor/nat/destination/translations/detail/node.def b/templates/monitor/nat/destination/translations/detail/node.def new file mode 100644 index 0000000..d700d9f --- /dev/null +++ b/templates/monitor/nat/destination/translations/detail/node.def @@ -0,0 +1,4 @@ +help: Show active destination NAT translations events verbose +run: LESSOPEN=cat + echo Type control-C to quit + sudo /usr/sbin/conntrack -E -g -o xml 2>/dev/null | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --pipe --type=destination --verbose diff --git a/templates/monitor/nat/destination/translations/node.def b/templates/monitor/nat/destination/translations/node.def new file mode 100644 index 0000000..d6ad6f5 --- /dev/null +++ b/templates/monitor/nat/destination/translations/node.def @@ -0,0 +1,4 @@ +help: Monitor active destination NAT translations events +run: LESSOPEN=cat + echo Type control-C to quit + sudo /usr/sbin/conntrack -E -g -o xml 2>/dev/null | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --pipe --type=destination |