From ce3e729a7f84518aaff7d418a6565da9db049ce8 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 17 Aug 2011 18:26:32 -0500 Subject: Add monitor for operational commands will run: watch /opt/vyatta/bin/vyatta-op-cmd-wrapper 'cmd' (cherry picked from commit e6f8c6d9458ac25a5bfdd30056e872bf342a940d) --- templates/monitor/command/node.def | 1 + templates/monitor/command/node.tag/node.def | 3 +++ templates/monitor/node.def | 1 + 3 files changed, 5 insertions(+) create mode 100644 templates/monitor/command/node.def create mode 100644 templates/monitor/command/node.tag/node.def create mode 100644 templates/monitor/node.def (limited to 'templates') 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 '' +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 -- cgit v1.2.3