summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/monitor/firewall/name/node.def3
-rw-r--r--templates/monitor/firewall/name/node.tag/node.def4
-rw-r--r--templates/monitor/firewall/name/node.tag/rule/node.def1
-rw-r--r--templates/monitor/firewall/name/node.tag/rule/node.tag/node.def4
4 files changed, 12 insertions, 0 deletions
diff --git a/templates/monitor/firewall/name/node.def b/templates/monitor/firewall/name/node.def
new file mode 100644
index 0000000..4390e73
--- /dev/null
+++ b/templates/monitor/firewall/name/node.def
@@ -0,0 +1,3 @@
+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/node.def b/templates/monitor/firewall/name/node.tag/node.def
new file mode 100644
index 0000000..3bb9d7f
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Monitor a specified firewall
+allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall name)
+ echo "${ARR[@]}"
+run: ${vyatta_bindir}/vyatta-monitor Firewall-$4 "\[$4-[0-9]*-[A,D,R]\]"
diff --git a/templates/monitor/firewall/name/node.tag/rule/node.def b/templates/monitor/firewall/name/node.tag/rule/node.def
new file mode 100644
index 0000000..d046d5b
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/rule/node.def
@@ -0,0 +1 @@
+help: Monitor a rule in the specified firewall
diff --git a/templates/monitor/firewall/name/node.tag/rule/node.tag/node.def b/templates/monitor/firewall/name/node.tag/rule/node.tag/node.def
new file mode 100644
index 0000000..ccd865d
--- /dev/null
+++ b/templates/monitor/firewall/name/node.tag/rule/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Monitor a rule in the specified firewall
+allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall name ${COMP_WORDS[3]} rule)
+ echo "${ARR[@]}"
+run: ${vyatta_bindir}/vyatta-monitor Firewall-$4-rule-$6 "\[$4-$6-[A,D,R]\]"