mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
added current date&time in rrd listing
This commit is contained in:
parent
4a0072b651
commit
2de99900ce
1 changed files with 6 additions and 2 deletions
|
@ -10,8 +10,10 @@
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
format=${1-shell}
|
format=${1-shell}
|
||||||
|
|
||||||
|
# Includes
|
||||||
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
RRD=$VESTA/web/rrd
|
|
||||||
|
|
||||||
# Define json function
|
# Define json function
|
||||||
json_list_rrd() {
|
json_list_rrd() {
|
||||||
|
@ -44,7 +46,9 @@ json_list_rrd() {
|
||||||
echo -e "\t\"$i\": {"
|
echo -e "\t\"$i\": {"
|
||||||
echo -e "\t\t\"TYPE\": \"$type\"",
|
echo -e "\t\t\"TYPE\": \"$type\"",
|
||||||
echo -e "\t\t\"RRD\": \"$rrd\"",
|
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))
|
(( ++i))
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue