Now that you've got "cpustats" installed and running, how do you add the graphs?
1) add new labels to the "Generic" sub-section of the "Labels" section of "skin.conf":
[Labels]
(...)
[[Generic]]
(...)
windvec = Wind Vector
cpuUsagePercent = CPU Usage
cpuWaitPercent = IO Wait
cpuLoadFactor = CPU Load Factor
cpuTemperature = CPU Temperature
logErrors = Log Errors
logIOErrors = IO Errors
logFTPErrors = FTP Errors
logRFErrors = RF Errors
2) add images to the "ImageGenerator" section of the same file (skin.conf):
There are sections for "day_images", "week_images", etc. Add graphs as you see fit.
Here's what I used for my "day_images" section:
[[day_images]]
x_label_format = %H:%M
bottom_label_format = %m/%d/%y %H:%M
time_length = 86400 # == 27 hours
# time_length = 75600 # == 24 hours
(...)
[[[dayradiation]]]
[[[[radiation]]]]
[[[daycpupercent]]]
chart_line_colors = 0xce02020, 0x2020e0, 0x20a020
y_label = %
aggregate_type = avg
aggregate_interval = 300 # 5 minute average
[[[[cpuUsagePercent]]]]
[[[[cpuWaitPercent]]]]
[[[daycpuload]]]
[[[[cpuLoadFactor]]]]
aggregate_type = avg
aggregate_interval = 300 # 5 minute average
[[[daycputemperature]]]
y_label = °C
chart_line_colors = 0x2020c0, 0x20a020, 0xc02020
yscale = 20, 50, 5
[[[[cpuTemperature]]]]
aggregate_type = avg
aggregate_interval = 300 # 5 minute average
[[[daylogerrors]]]
chart_line_colors = 0x2020c0, 0x20a020, 0xc02020, 0xc0c020
# plot_type = bar (broken, don't use)
[[[[logErrors]]]]
[[[[logIOErrors]]]]
[[[[logFTPErrors]]]]
and in the "week_images" section I added
[[week_images]]
x_label_format = %d
bottom_label_format = %m/%d/%y %H:%M
# time_length = 604800 # == 8 days
time_length = 518400 # == 7 days
aggregate_type = avg
aggregate_interval = 3600
image_width = 600
image_height = 200
(...)
[[[weekradiation]]]
[[[[radiation]]]]
[[[weekcpupercent]]]
[[[[cpuUsagePercent]]]]
[[[weekcpuload]]]
[[[[cpuLoadFactor]]]]
[[[weekcputemperature]]]
[[[[cpuTemperature]]]]
[[[weeklogerrors]]]
chart_line_colors = 0x2020c0, 0x20a020, 0xc02020, 0xc0c020
[[[[logErrors]]]]
[[[[logIOErrors]]]]
[[[[logFTPErrors]]]]
[[[[logRFErrors]]]]
I added similar entries to the "month_images" and "year_images" - decide for yourself what plots you want. Note that I used different widths for each one to make the longer period graphs easier to read.
3) Finally, edit the html templates to add the generated graphs. There are four of these, one each for "current", "week" (last 7 or 8 days), "month" (last 30 days), and "year" (last 365 days). (the labels say "Calendar" but that's not really true)
You could add the new data to the "Current Conditions" and "Since Midnight" sections but I chose not to do that, I just added the graphs.
Changes to "index.html.tmpl" - look for "<div id="plots">" and add the new images where you want them:
(...)
<img src="daycpupercent.png" alt="CPU Percent" />
<img src="daycpuload.png" alt="CPU Load Factor" />
<img src="daycputemperature.png" alt="CPU Temperature" />
<img src="daylogerrors.png" alt="LOG Errors" />
</div> <!-- End id "plots" -->
You can add similar entries to the other templates as you see fit, for example, in week.html.tmpl or month.html.tmpl...
William