summaryrefslogtreecommitdiff
path: root/templates/monitor/nat/masquerade
diff options
context:
space:
mode:
Diffstat (limited to 'templates/monitor/nat/masquerade')
-rw-r--r--templates/monitor/nat/masquerade/background/node.def1
-rw-r--r--templates/monitor/nat/masquerade/background/start/node.def2
-rw-r--r--templates/monitor/nat/masquerade/background/stop/node.def2
-rw-r--r--templates/monitor/nat/masquerade/node.def2
-rw-r--r--templates/monitor/nat/masquerade/rule/node.def2
-rw-r--r--templates/monitor/nat/masquerade/rule/node.tag/background/node.def2
-rw-r--r--templates/monitor/nat/masquerade/rule/node.tag/background/start/node.def2
-rw-r--r--templates/monitor/nat/masquerade/rule/node.tag/background/stop/node.def2
-rw-r--r--templates/monitor/nat/masquerade/rule/node.tag/node.def2
9 files changed, 14 insertions, 3 deletions
diff --git a/templates/monitor/nat/masquerade/background/node.def b/templates/monitor/nat/masquerade/background/node.def
new file mode 100644
index 0000000..4f39dac
--- /dev/null
+++ b/templates/monitor/nat/masquerade/background/node.def
@@ -0,0 +1 @@
+help: Monitor Masquerade NAT in the background
diff --git a/templates/monitor/nat/masquerade/background/start/node.def b/templates/monitor/nat/masquerade/background/start/node.def
new file mode 100644
index 0000000..bbfbb98
--- /dev/null
+++ b/templates/monitor/nat/masquerade/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of Masquerade NAT
+run: ${vyatta_bindir}/vyatta-monitor-background NAT-MASQ "\[NAT-[0-9]*-MASQ\]"
diff --git a/templates/monitor/nat/masquerade/background/stop/node.def b/templates/monitor/nat/masquerade/background/stop/node.def
new file mode 100644
index 0000000..c0c22cd
--- /dev/null
+++ b/templates/monitor/nat/masquerade/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of Masquerade NAT
+run: ${vyatta_bindir}/vyatta-monitor-background-stop NAT-MASQ
diff --git a/templates/monitor/nat/masquerade/node.def b/templates/monitor/nat/masquerade/node.def
index 2749d7c..39364b7 100644
--- a/templates/monitor/nat/masquerade/node.def
+++ b/templates/monitor/nat/masquerade/node.def
@@ -1,2 +1,2 @@
-help: Monitor Masquerade NAT logs
+help: Monitor Masquerade NAT
run: ${vyatta_bindir}/vyatta-monitor NAT-MASQ "\[NAT-[0-9]*-MASQ\]"
diff --git a/templates/monitor/nat/masquerade/rule/node.def b/templates/monitor/nat/masquerade/rule/node.def
index 543074f..7aa9219 100644
--- a/templates/monitor/nat/masquerade/rule/node.def
+++ b/templates/monitor/nat/masquerade/rule/node.def
@@ -1 +1 @@
-help: Monitor Masquerade NAT logs for a specified rule
+help: Monitor a specified Masquerade NAT rule
diff --git a/templates/monitor/nat/masquerade/rule/node.tag/background/node.def b/templates/monitor/nat/masquerade/rule/node.tag/background/node.def
new file mode 100644
index 0000000..f6b9640
--- /dev/null
+++ b/templates/monitor/nat/masquerade/rule/node.tag/background/node.def
@@ -0,0 +1,2 @@
+help: Monitor a specified Masquerade NAT rule in the background
+
diff --git a/templates/monitor/nat/masquerade/rule/node.tag/background/start/node.def b/templates/monitor/nat/masquerade/rule/node.tag/background/start/node.def
new file mode 100644
index 0000000..c203f80
--- /dev/null
+++ b/templates/monitor/nat/masquerade/rule/node.tag/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of a specified Masquerade NAT rule
+run: ${vyatta_bindir}/vyatta-monitor-background NAT-MASQ-RULE-$5 "\[NAT-$5-MASQ\]"
diff --git a/templates/monitor/nat/masquerade/rule/node.tag/background/stop/node.def b/templates/monitor/nat/masquerade/rule/node.tag/background/stop/node.def
new file mode 100644
index 0000000..2564ead
--- /dev/null
+++ b/templates/monitor/nat/masquerade/rule/node.tag/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of a specified Masquerade NAT rule
+run: ${vyatta_bindir}/vyatta-monitor-background-stop NAT-MASQ-RULE-$5
diff --git a/templates/monitor/nat/masquerade/rule/node.tag/node.def b/templates/monitor/nat/masquerade/rule/node.tag/node.def
index 3920027..32fad6b 100644
--- a/templates/monitor/nat/masquerade/rule/node.tag/node.def
+++ b/templates/monitor/nat/masquerade/rule/node.tag/node.def
@@ -1,3 +1,3 @@
-help: Monitor Masquerade NAT logs for a specified rule
+help: Monitor a specified Masquerade NAT rule
allowed: local -a ARR=$(cli-shell-api listEffectiveNodes service nat rule); echo "${ARR[@]}"
run: ${vyatta_bindir}/vyatta-monitor NAT-MASQ-RULE-$5 "\[NAT-$5-MASQ\]"