summaryrefslogtreecommitdiff
path: root/templates/monitor/interfaces/pseudo-ethernet
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-02-22 23:52:37 +0000
committerJohn Southworth <john.southworth@vyatta.com>2012-02-22 23:52:37 +0000
commit2959de736d3b72c171115e150f15bc3c55e4c2fd (patch)
treed531222894dbd647ce3136b470e034ca53080c5a /templates/monitor/interfaces/pseudo-ethernet
parent8fe842931ce7f9bf2f2001797722439b417e4586 (diff)
downloadvyatta-op-2959de736d3b72c171115e150f15bc3c55e4c2fd.tar.gz
vyatta-op-2959de736d3b72c171115e150f15bc3c55e4c2fd.zip
Bugfix 4053: implement bandwidth utilization montior commands 'mon int <type> <name>'; 'mon int <type> <name> flow'
Diffstat (limited to 'templates/monitor/interfaces/pseudo-ethernet')
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.def1
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/flow/node.def2
-rw-r--r--templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def1
3 files changed, 4 insertions, 0 deletions
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.def
index c51a6f8..8cd18c9 100644
--- a/templates/monitor/interfaces/pseudo-ethernet/node.def
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.def
@@ -1 +1,2 @@
help: Monitor a pseudo-ethernet interface
+run: bmon -p peth*
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/flow/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/flow/node.def
new file mode 100644
index 0000000..2dd7cfd
--- /dev/null
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/flow/node.def
@@ -0,0 +1,2 @@
+help: Monitor flows on specified interface
+run: sudo /usr/sbin/iftop -i $4
diff --git a/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def b/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def
index 577f079..b58a595 100644
--- a/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def
+++ b/templates/monitor/interfaces/pseudo-ethernet/node.tag/node.def
@@ -1,3 +1,4 @@
help: Monitor specified pseudo-ethernet interface
allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show pseudo-ethernet
+run: bmon -p $4