From d1e8329f612f1547c6d08a041c0bd12f7da54fa2 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 8 Sep 2011 17:24:10 -0500 Subject: Add 'monitor firewall ipv6-name' command (cherry picked from commit 947180c60d07535ed897f8dabe7ec0af2f0c71bc) --- templates/monitor/firewall/ipv6-name/node.def | 1 + templates/monitor/firewall/ipv6-name/node.tag/background/node.def | 1 + .../monitor/firewall/ipv6-name/node.tag/background/start/node.def | 2 ++ .../monitor/firewall/ipv6-name/node.tag/background/stop/node.def | 2 ++ templates/monitor/firewall/ipv6-name/node.tag/node.def | 4 ++++ templates/monitor/firewall/ipv6-name/node.tag/rule/node.def | 1 + .../firewall/ipv6-name/node.tag/rule/node.tag/background/node.def | 1 + .../ipv6-name/node.tag/rule/node.tag/background/start/node.def | 2 ++ .../ipv6-name/node.tag/rule/node.tag/background/stop/node.def | 2 ++ templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def | 4 ++++ 10 files changed, 20 insertions(+) create mode 100644 templates/monitor/firewall/ipv6-name/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/background/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/rule/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/start/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def create mode 100644 templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def (limited to 'templates') diff --git a/templates/monitor/firewall/ipv6-name/node.def b/templates/monitor/firewall/ipv6-name/node.def new file mode 100644 index 0000000..dfe8524 --- /dev/null +++ b/templates/monitor/firewall/ipv6-name/node.def @@ -0,0 +1 @@ +help: Monitor the specifed ipv6 firewall diff --git a/templates/monitor/firewall/ipv6-name/node.tag/background/node.def b/templates/monitor/firewall/ipv6-name/node.tag/background/node.def new file mode 100644 index 0000000..31c4a84 --- /dev/null +++ b/templates/monitor/firewall/ipv6-name/node.tag/background/node.def @@ -0,0 +1 @@ +help: Monitor the specified firewall in the background diff --git a/templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def b/templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def new file mode 100644 index 0000000..6f80a81 --- /dev/null +++ b/templates/monitor/firewall/ipv6-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-ipv6-$4 "\[$4-[0-9]*-[A,D,R]\]" diff --git a/templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def b/templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def new file mode 100644 index 0000000..b104d5f --- /dev/null +++ b/templates/monitor/firewall/ipv6-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-ipv6-$4 diff --git a/templates/monitor/firewall/ipv6-name/node.tag/node.def b/templates/monitor/firewall/ipv6-name/node.tag/node.def new file mode 100644 index 0000000..3082c29 --- /dev/null +++ b/templates/monitor/firewall/ipv6-name/node.tag/node.def @@ -0,0 +1,4 @@ +help: Monitor a specified firewall +allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall ipv6-name) + echo "${ARR[@]}" +run: ${vyatta_bindir}/vyatta-monitor Firewall-ipv6-$4 "\[$4-[0-9]*-[A,D,R]\]" diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.def new file mode 100644 index 0000000..d046d5b --- /dev/null +++ b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.def @@ -0,0 +1 @@ +help: Monitor a rule in the specified firewall diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def new file mode 100644 index 0000000..2a9a698 --- /dev/null +++ b/templates/monitor/firewall/ipv6-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/ipv6-name/node.tag/rule/node.tag/background/start/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/start/node.def new file mode 100644 index 0000000..398f70b --- /dev/null +++ b/templates/monitor/firewall/ipv6-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-ipv6-$4-rule-$6 "\[$4-$6-[A,D,R]\]" diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def new file mode 100644 index 0000000..a0c0600 --- /dev/null +++ b/templates/monitor/firewall/ipv6-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-ipv6-$4-rule-$6 "\[$4-$6-[A,D,R]\]" diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def new file mode 100644 index 0000000..991a285 --- /dev/null +++ b/templates/monitor/firewall/ipv6-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 ipv6-name ${COMP_WORDS[3]} rule) + echo "${ARR[@]}" +run: ${vyatta_bindir}/vyatta-monitor Firewall-ipv6-$4-rule-$6 "\[$4-$6-[A,D,R]\]" -- cgit v1.2.3