From: <oh...@pr...> - 2004-02-02 17:47:11
|
Update of /cvsroot/ipmitool/ipmitool/contrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31070/contrib Modified Files: Makefile.am create_webpage.sh Log Message: Add a README file. Add an alternative webpage script. Adjust the graphs a bit. Index: Makefile.am =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/contrib/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 6 Jan 2004 01:44:08 -0000 1.1 --- Makefile.am 2 Feb 2004 17:45:02 -0000 1.2 *************** *** 35,38 **** MAINTAINERCLEANFILES = Makefile.in ! EXTRA_DIST = collect_data.sh create_rrds.sh create_webpage.sh --- 35,38 ---- MAINTAINERCLEANFILES = Makefile.in ! EXTRA_DIST = collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh Index: create_webpage.sh =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/contrib/create_webpage.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** create_webpage.sh 10 Jan 2004 18:31:54 -0000 1.2 --- create_webpage.sh 2 Feb 2004 17:45:02 -0000 1.3 *************** *** 1,5 **** #!/bin/bash # ! # Copyright (c) 2003 Fredrik Ohrn. All Rights Reserved. # # See the included COPYING file for license details. --- 1,5 ---- #!/bin/bash # ! # Copyright (c) 2003-2004 Fredrik Ohrn. All Rights Reserved. # # See the included COPYING file for license details. *************** *** 23,40 **** web_dir=/images/graphs # No need to edit below this point. ! color[0]="0000FF" ! color[1]="00FF00" ! color[2]="FF0000" ! color[3]="FFFF00" ! color[4]="FF00FF" ! color[5]="00FFFF" ! color[6]="4444AA" ! color[7]="44AA44" ! color[8]="AA4444" ! color[9]="AAAA44" ! color[10]="AA44AA" ! color[11]="44AAAA" cat << EOF --- 23,50 ---- web_dir=/images/graphs + # Size of graph area (excluding title, legends etc.) + graph_width=500 + graph_height=150 + + # Graphs to include on page + graph_daily=1 + graph_weekly=1 + graph_monthly=0 + + # No need to edit below this point. ! color[0]="2020FF" ! color[1]="20FF20" ! color[2]="FF2020" ! color[3]="FF21FF" ! color[4]="21FFFF" ! color[5]="FFFF21" ! color[6]="8F21FF" ! color[7]="21FF8F" ! color[8]="FF8F21" ! color[9]="FF2190" ! color[10]="2190FF" ! color[11]="90FF21" cat << EOF *************** *** 152,187 **** fi ! cat << EOF ! <h3>${!group_title}</h3> <RRD::GRAPH "$img_dir/$hostname-$group-daily.gif" --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">" --lazy - --height 200 --vertical-label "${!group_unit}" --title "Daily graph" ! --width 576 ${!group} $thres > <RRD::GRAPH "$img_dir/$hostname-$group-weekly.gif" --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">" --lazy --start -7d - --height 200 --vertical-label "${!group_unit}" --title "Weelky graph" ! --width 672 ${!group} $thres > EOF ! #<RRD::GRAPH "$img_dir/$hostname-$group-monthly.gif" ! # --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">" ! # --lazy ! # --start -30d ! # --height 200 ! # --vertical-label "${!group_unit}" ! # --title "Monthly graph" ! # --width 720 ${!group} $thres ! #> ! #EOF done --- 162,207 ---- fi + echo "<h3>${!group_title}</h3>" ! if [ "$graph_daily" -ne 0 ] ; then ! cat << EOF <RRD::GRAPH "$img_dir/$hostname-$group-daily.gif" --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">" --lazy --vertical-label "${!group_unit}" --title "Daily graph" ! --height $graph_height ! --width $graph_width ${!group} $thres > + EOF + fi + + if [ "$graph_weekly" -ne 0 ] ; then + cat << EOF <RRD::GRAPH "$img_dir/$hostname-$group-weekly.gif" --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">" --lazy --start -7d --vertical-label "${!group_unit}" --title "Weelky graph" ! --height $graph_height ! --width $graph_width ${!group} $thres > EOF ! fi + if [ "$graph_monthly" -ne 0 ] ; then + cat << EOF + <RRD::GRAPH "$img_dir/$hostname-$group-monthly.gif" + --imginfo "<img src="$web_dir/%s" width="%lu" height="%lu">" + --lazy + --start -30d + --vertical-label "${!group_unit}" + --title "Monthly graph" + --height $graph_height + --width $graph_width ${!group} $thres + > + EOF + fi done |