diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-09-07 17:56:19 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-09-07 17:56:19 -0500 |
commit | fe45ff72d582d2f84d9db15ad82fb8aca0047c03 (patch) | |
tree | 8434afcc60a3bf8db3cefb858fca8f874b68ecb8 | |
parent | c719d7bdefd748955d06fa29072f2f65a86e05e4 (diff) | |
download | vyatta-op-fe45ff72d582d2f84d9db15ad82fb8aca0047c03.tar.gz vyatta-op-fe45ff72d582d2f84d9db15ad82fb8aca0047c03.zip |
Add background monitoring for firewalls
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]\]" |