From 2de99900ce2403841b0d6eb58e20b1a20391ed06 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 7 May 2012 12:39:14 +0300 Subject: [PATCH] added current date&time in rrd listing --- bin/v_list_sys_rrd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/v_list_sys_rrd b/bin/v_list_sys_rrd index 0e80b2f2..0d425d2f 100755 --- a/bin/v_list_sys_rrd +++ b/bin/v_list_sys_rrd @@ -10,8 +10,10 @@ #----------------------------------------------------------# format=${1-shell} + +# Includes +source $VESTA/func/main.sh source $VESTA/conf/vesta.conf -RRD=$VESTA/web/rrd # Define json function json_list_rrd() { @@ -44,7 +46,9 @@ json_list_rrd() { echo -e "\t\"$i\": {" echo -e "\t\t\"TYPE\": \"$type\"", echo -e "\t\t\"RRD\": \"$rrd\"", - echo -e "\t\t\"TITLE\": \"$title\"" + echo -e "\t\t\"TITLE\": \"$title\"," + echo -e "\t\t\"TIME\": \"$TIME\"," + echo -e "\t\t\"DATE\": \"$DATE\"" (( ++i)) done done