summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-17 18:26:32 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-17 18:26:32 -0500
commite6f8c6d9458ac25a5bfdd30056e872bf342a940d (patch)
tree111092cdb0395c605597c820a3ef8f67ed89d7c6 /templates
parent68e7a415d5ff5ebc2aa7569c01aa69d1a0d5e27a (diff)
downloadvyatta-op-e6f8c6d9458ac25a5bfdd30056e872bf342a940d.tar.gz
vyatta-op-e6f8c6d9458ac25a5bfdd30056e872bf342a940d.zip
Add monitor for operational commands
will run: watch /opt/vyatta/bin/vyatta-op-cmd-wrapper 'cmd'
Diffstat (limited to 'templates')
-rw-r--r--templates/monitor/command/node.def1
-rw-r--r--templates/monitor/command/node.tag/node.def3
-rw-r--r--templates/monitor/node.def1
3 files changed, 5 insertions, 0 deletions
diff --git a/templates/monitor/command/node.def b/templates/monitor/command/node.def
new file mode 100644
index 0000000..3e08ab7
--- /dev/null
+++ b/templates/monitor/command/node.def
@@ -0,0 +1 @@
+help: Monitor an operational mode command (refreshes every 2 seconds)
diff --git a/templates/monitor/command/node.tag/node.def b/templates/monitor/command/node.tag/node.def
new file mode 100644
index 0000000..ed73d6b
--- /dev/null
+++ b/templates/monitor/command/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Monitor operational mode command
+allowed: echo '<operational-mode-command>'
+run: watch /opt/vyatta/bin/vyatta-op-cmd-wrapper ${@:3}
diff --git a/templates/monitor/node.def b/templates/monitor/node.def
new file mode 100644
index 0000000..6bcdb34
--- /dev/null
+++ b/templates/monitor/node.def
@@ -0,0 +1 @@
+help: Monitor system information