diff options
10 files changed, 20 insertions, 0 deletions
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]\]" |