summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/monitor/firewall/name/node.def2
-rw-r--r--templates/monitor/firewall/name/node.tag/background/node.def1
-rw-r--r--templates/monitor/firewall/name/node.tag/background/start/node.def2
-rw-r--r--templates/monitor/firewall/name/node.tag/background/stop/node.def2
-rw-r--r--templates/monitor/firewall/name/node.tag/rule/node.tag/background/node.def1
-rw-r--r--templates/monitor/firewall/name/node.tag/rule/node.tag/background/start/node.def2
-rw-r--r--templates/monitor/firewall/name/node.tag/rule/node.tag/background/stop/node.def2
7 files changed, 10 insertions, 2 deletions
diff --git a/templates/monitor/firewall/name/node.def b/templates/monitor/firewall/name/node.def
index 4390e73..a6fe869 100644
--- a/templates/monitor/firewall/name/node.def
+++ b/templates/monitor/firewall/name/node.def
@@ -1,3 +1 @@
help: Monitor the specifed firewall
-allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall name)
- echo "${ARR[@]}"
diff --git a/templates/monitor/firewall/name/node.tag/background/node.def b/templates/monitor/firewall/name/node.tag/background/node.def
new file mode 100644
index 0000000..31c4a84
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/background/node.def
@@ -0,0 +1 @@
+help: Monitor the specified firewall in the background
diff --git a/templates/monitor/firewall/name/node.tag/background/start/node.def b/templates/monitor/firewall/name/node.tag/background/start/node.def
new file mode 100644
index 0000000..8563b98
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of a specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background Firewall-$4 "\[$4-[0-9]*-[A,D,R]\]"
diff --git a/templates/monitor/firewall/name/node.tag/background/stop/node.def b/templates/monitor/firewall/name/node.tag/background/stop/node.def
new file mode 100644
index 0000000..f3a7052
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of a specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background-stop Firewall-$4
diff --git a/templates/monitor/firewall/name/node.tag/rule/node.tag/background/node.def b/templates/monitor/firewall/name/node.tag/rule/node.tag/background/node.def
new file mode 100644
index 0000000..2a9a698
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/rule/node.tag/background/node.def
@@ -0,0 +1 @@
+help: Monitor a rule in a specified firewall in the background
diff --git a/templates/monitor/firewall/name/node.tag/rule/node.tag/background/start/node.def b/templates/monitor/firewall/name/node.tag/rule/node.tag/background/start/node.def
new file mode 100644
index 0000000..310114a
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/rule/node.tag/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of the specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background Firewall-$4-rule-$6 "\[$4-$6-[A,D,R]\]"
diff --git a/templates/monitor/firewall/name/node.tag/rule/node.tag/background/stop/node.def b/templates/monitor/firewall/name/node.tag/rule/node.tag/background/stop/node.def
new file mode 100644
index 0000000..0cd5455
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/rule/node.tag/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of a rule in the specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background-stop Firewall-$4-rule-$6 "\[$4-$6-[A,D,R]\]"