From 1f9215b3a965e7b0b73fdbdd71b8e00e3c8b0481 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 29 Sep 2011 15:39:50 -0500 Subject: move 'show log tail' to 'monitor log' (cherry picked from commit 419e99faea0ffd33e0b7176bc0ff08927ff67de9) --- templates/monitor/log/node.def | 2 ++ templates/monitor/log/node.tag/node.def | 3 +++ templates/show/log/tail/node.def | 2 -- templates/show/log/tail/node.tag/node.def | 3 --- 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 templates/monitor/log/node.def create mode 100644 templates/monitor/log/node.tag/node.def delete mode 100644 templates/show/log/tail/node.def delete mode 100644 templates/show/log/tail/node.tag/node.def diff --git a/templates/monitor/log/node.def b/templates/monitor/log/node.def new file mode 100644 index 0000000..3c3413d --- /dev/null +++ b/templates/monitor/log/node.def @@ -0,0 +1,2 @@ +help: Monitor last lines of messages file +run: tail --follow=name /var/log/messages diff --git a/templates/monitor/log/node.tag/node.def b/templates/monitor/log/node.tag/node.def new file mode 100644 index 0000000..9f84f5a --- /dev/null +++ b/templates/monitor/log/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} diff --git a/templates/show/log/tail/node.def b/templates/show/log/tail/node.def deleted file mode 100644 index e6f3456..0000000 --- a/templates/show/log/tail/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Show last lines of messages file -run: tail --follow=name /var/log/messages diff --git a/templates/show/log/tail/node.tag/node.def b/templates/show/log/tail/node.tag/node.def deleted file mode 100644 index b07bb9e..0000000 --- a/templates/show/log/tail/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Show last changes to messages -allowed: echo -n '' -run: tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat} -- cgit v1.2.3