summaryrefslogtreecommitdiff
path: root/templates/monitor
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-29 15:39:50 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:30 -0500
commit1f9215b3a965e7b0b73fdbdd71b8e00e3c8b0481 (patch)
treeea1f825304b583aac01c78867200e2afd6f308b8 /templates/monitor
parent4217b8aa86fe4b3611a90d1ee8d42c4a3db46526 (diff)
downloadvyatta-op-1f9215b3a965e7b0b73fdbdd71b8e00e3c8b0481.tar.gz
vyatta-op-1f9215b3a965e7b0b73fdbdd71b8e00e3c8b0481.zip
move 'show log tail' to 'monitor log'
(cherry picked from commit 419e99faea0ffd33e0b7176bc0ff08927ff67de9)
Diffstat (limited to 'templates/monitor')
-rw-r--r--templates/monitor/log/node.def2
-rw-r--r--templates/monitor/log/node.tag/node.def3
2 files changed, 5 insertions, 0 deletions
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 '<NUMBER>'
+run: tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat}