From 2630606ad9e0eadd350fd0692aeb5bd4503b7b4f Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 10 Oct 2011 11:03:51 -0500 Subject: 'show log tail ' should still be a show command, not a monitor command. (cherry picked from commit ee0662c27b696d734424bd3d657a57059f3db548) --- templates/monitor/log/node.tag/node.def | 3 --- templates/show/log/tail/node.def | 2 ++ templates/show/log/tail/node.tag/node.def | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 templates/monitor/log/node.tag/node.def create mode 100644 templates/show/log/tail/node.def create mode 100644 templates/show/log/tail/node.tag/node.def diff --git a/templates/monitor/log/node.tag/node.def b/templates/monitor/log/node.tag/node.def deleted file mode 100644 index 9f84f5a..0000000 --- a/templates/monitor/log/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: monitor last changes to messages -allowed: echo -n '' -run: tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat} diff --git a/templates/show/log/tail/node.def b/templates/show/log/tail/node.def new file mode 100644 index 0000000..510f598 --- /dev/null +++ b/templates/show/log/tail/node.def @@ -0,0 +1,2 @@ +help: Monitor last lines of messages file +run: tail /var/log/messages diff --git a/templates/show/log/tail/node.tag/node.def b/templates/show/log/tail/node.tag/node.def new file mode 100644 index 0000000..9f84f5a --- /dev/null +++ b/templates/show/log/tail/node.tag/node.def @@ -0,0 +1,3 @@ +help: monitor last changes to messages +allowed: echo -n '' +run: tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat} -- cgit v1.2.3