diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-08-17 18:26:32 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:27 -0500 |
commit | ce3e729a7f84518aaff7d418a6565da9db049ce8 (patch) | |
tree | 335971d7a2c6564279c7a0ba814c8d6f27af31d6 /templates/monitor | |
parent | 6bb22520fdaa24059d4d84d0ab951b2dc44b5128 (diff) | |
download | vyatta-op-ce3e729a7f84518aaff7d418a6565da9db049ce8.tar.gz vyatta-op-ce3e729a7f84518aaff7d418a6565da9db049ce8.zip |
Add monitor for operational commands
will run: watch /opt/vyatta/bin/vyatta-op-cmd-wrapper 'cmd'
(cherry picked from commit e6f8c6d9458ac25a5bfdd30056e872bf342a940d)
Diffstat (limited to 'templates/monitor')
-rw-r--r-- | templates/monitor/command/node.def | 1 | ||||
-rw-r--r-- | templates/monitor/command/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/monitor/node.def | 1 |
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 |