diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-09-07 17:56:19 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:29 -0500 |
commit | 162a22ab8dce3c3a48c15803329e743205d70247 (patch) | |
tree | 7614d7ca7a816a0f83bcc0ce8c5b290a4621762e /templates/monitor | |
parent | edc46b564787ce60a642f1ee5794dcf22b453e2c (diff) | |
download | vyatta-op-162a22ab8dce3c3a48c15803329e743205d70247.tar.gz vyatta-op-162a22ab8dce3c3a48c15803329e743205d70247.zip |
Add background monitoring for firewalls
(cherry picked from commit fe45ff72d582d2f84d9db15ad82fb8aca0047c03)
Diffstat (limited to 'templates/monitor')
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]\]" |