diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/monitoring/node.def | 12 | ||||
-rw-r--r-- | templates/show/ntp/node.tag/node.def | 4 |
2 files changed, 13 insertions, 3 deletions
diff --git a/templates/show/monitoring/node.def b/templates/show/monitoring/node.def index 9c16edc..2c6587a 100644 --- a/templates/show/monitoring/node.def +++ b/templates/show/monitoring/node.def @@ -1,2 +1,12 @@ help: Show currently monitored services -run: ${vyatta_bindir}/vyatta-monitor-list +run: echo "------------------------------" + echo "Background monitoring sessions" + echo "------------------------------" + ${vyatta_bindir}/vyatta-monitor-list + echo + echo "------------------------------" + echo " Protocol monitoring status" + echo "------------------------------" + for proto in bgp ospf rip ospfv3 ripng; do + show monitoring protocols $proto + done diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def index 8eb5406..e7bdb6a 100644 --- a/templates/show/ntp/node.tag/node.def +++ b/templates/show/ntp/node.tag/node.def @@ -1,3 +1,3 @@ help: Show date and time of specified NTP server -allowed: echo -e 'ntp.vyatta.com'; awk '/^server/ { print $2 }' /etc/ntp.conf -run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com} +allowed: awk '/^server/ { print $2 }' /etc/ntp.conf +run: /usr/sbin/ntpdate -q $3 |