diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-09-07 17:38:24 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-09-07 17:38:24 -0500 |
commit | c719d7bdefd748955d06fa29072f2f65a86e05e4 (patch) | |
tree | 5e480c7803e5a38cde3eca010d81d96c08504e04 | |
parent | 0882fcaceeb2374996a53baa87488ff59d145efa (diff) | |
download | vyatta-op-c719d7bdefd748955d06fa29072f2f65a86e05e4.tar.gz vyatta-op-c719d7bdefd748955d06fa29072f2f65a86e05e4.zip |
Add firewall forground monitoring
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]\]" |