Ticket #2276: sensord.cgi.orig

File sensord.cgi.orig, 3.6 kB (added by ticket, 7 months ago)
Line 
1 #!/usr/bin/rrdcgi
2
3 <HTML>
4 <HEAD>
5 <TITLE>sensord</TITLE>
6 </HEAD>
7 <BODY>
8 <H1>sensord</H1>
9 <H2>Daily Temperature Summary</H2>
10 <P>
11 <RRD::GRAPH /var/www/sensord/daily-temperature.png
12         --imginfo '<IMG SRC=/sensord/%s WIDTH=%lu HEIGHT=%lu>'
13         -a PNG
14         -h 200 -w 800
15         --lazy
16         -v 'Temperature (C)'
17         -t 'Temperature'
18         -x 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00'
19         -s -1d -l 0
20         DEF:in0_7=/var/log/sensord.rrd:in0_7:AVERAGE
21         DEF:in0_8=/var/log/sensord.rrd:in0_8:AVERAGE
22         DEF:in0_9=/var/log/sensord.rrd:in0_9:AVERAGE
23         DEF:loadavg=/var/log/sensord.rrd:loadavg:AVERAGE
24         LINE2:in0_7#8b4567:"VCore"
25         LINE2:in0_8#7b23c6:"VCore"
26         LINE2:in0_9#3c9869:"VCore"
27         LINE2:loadavg#334873:"Load Average">
28 </P>
29 <H2>Daily Fan Speed Summary</H2>
30 <P>
31 <RRD::GRAPH /var/www/sensord/daily-rpm.png
32         --imginfo '<IMG SRC=/sensord/%s WIDTH=%lu HEIGHT=%lu>'
33         -a PNG
34         -h 200 -w 800
35         --lazy
36         -v 'Speed (RPM)'
37         -t 'Fan Speed'
38         -x 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00'
39         -s -1d -l 0
40         DEF:in0_5=/var/log/sensord.rrd:in0_5:AVERAGE
41         DEF:in0_6=/var/log/sensord.rrd:in0_6:AVERAGE
42         LINE2:in0_5#b0dc51:"VCore"
43         LINE2:in0_6#495cff:"VCore">
44 </P>
45 <H2>Daily Voltage Summary</H2>
46 <P>
47 <RRD::GRAPH /var/www/sensord/daily-voltage.png
48         --imginfo '<IMG SRC=/sensord/%s WIDTH=%lu HEIGHT=%lu>'
49         -a PNG
50         -h 200 -w 800
51         --lazy
52         -v 'Voltage (V)'
53         -t 'Power Supply'
54         -x 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00'
55         -s -1d --alt-autoscale
56         DEF:in0=/var/log/sensord.rrd:in0:AVERAGE
57         DEF:in0_0=/var/log/sensord.rrd:in0_0:AVERAGE
58         DEF:in0_1=/var/log/sensord.rrd:in0_1:AVERAGE
59         DEF:in0_2=/var/log/sensord.rrd:in0_2:AVERAGE
60         DEF:in0_3=/var/log/sensord.rrd:in0_3:AVERAGE
61         DEF:in0_4=/var/log/sensord.rrd:in0_4:AVERAGE
62         LINE2:in0#e8944a:"VCore"
63         LINE2:in0_0#5558ec:"VCore"
64         LINE2:in0_1#8e1f29:"VCore"
65         LINE2:in0_2#e87ccd:"VCore"
66         LINE2:in0_3#1b58ba:"VCore"
67         LINE2:in0_4#7ed7ab:"VCore">
68 </P>
69 <H2>Weekly Temperature Summary</H2>
70 <P>
71 <RRD::GRAPH /var/www/sensord/weekly-temperature.png
72         --imginfo '<IMG SRC=/sensord/%s WIDTH=%lu HEIGHT=%lu>'
73         -a PNG
74         -h 200 -w 800
75         --lazy
76         -v 'Temperature (C)'
77         -t 'Temperature'
78         -x 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d'
79         -s -1w -l 0
80         DEF:in0_7=/var/log/sensord.rrd:in0_7:AVERAGE
81         DEF:in0_8=/var/log/sensord.rrd:in0_8:AVERAGE
82         DEF:in0_9=/var/log/sensord.rrd:in0_9:AVERAGE
83         DEF:loadavg=/var/log/sensord.rrd:loadavg:AVERAGE
84         LINE2:in0_7#b141f2:"VCore"
85         LINE2:in0_8#b71efb:"VCore"
86         LINE2:in0_9#e2a9e3:"VCore"
87         LINE2:loadavg#45e146:"Load Average">
88 </P>
89 <H2>Weekly Fan Speed Summary</H2>
90 <P>
91 <RRD::GRAPH /var/www/sensord/weekly-rpm.png
92         --imginfo '<IMG SRC=/sensord/%s WIDTH=%lu HEIGHT=%lu>'
93         -a PNG
94         -h 200 -w 800
95         --lazy
96         -v 'Speed (RPM)'
97         -t 'Fan Speed'
98         -x 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d'
99         -s -1w -l 0
100         DEF:in0_5=/var/log/sensord.rrd:in0_5:AVERAGE
101         DEF:in0_6=/var/log/sensord.rrd:in0_6:AVERAGE
102         LINE2:in0_5#5f007c:"VCore"
103         LINE2:in0_6#d062c2:"VCore">
104 </P>
105 <H2>Weekly Voltage Summary</H2>
106 <P>
107 <RRD::GRAPH /var/www/sensord/weekly-voltage.png
108         --imginfo '<IMG SRC=/sensord/%s WIDTH=%lu HEIGHT=%lu>'
109         -a PNG
110         -h 200 -w 800
111         --lazy
112         -v 'Voltage (V)'
113         -t 'Power Supply'
114         -x 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d'
115         -s -1w --alt-autoscale
116         DEF:in0=/var/log/sensord.rrd:in0:AVERAGE
117         DEF:in0_0=/var/log/sensord.rrd:in0_0:AVERAGE
118         DEF:in0_1=/var/log/sensord.rrd:in0_1:AVERAGE
119         DEF:in0_2=/var/log/sensord.rrd:in0_2:AVERAGE
120         DEF:in0_3=/var/log/sensord.rrd:in0_3:AVERAGE
121         DEF:in0_4=/var/log/sensord.rrd:in0_4:AVERAGE
122         LINE2:in0#200854:"VCore"
123         LINE2:in0_0#b127f8:"VCore"
124         LINE2:in0_1#16231b:"VCore"
125         LINE2:in0_2#16e9e8:"VCore"
126         LINE2:in0_3#90cde7:"VCore"
127         LINE2:in0_4#ef438d:"VCore">
128 </P>
129 <p>
130 <small><b>sensord</b> by <a href="mailto:merlin@merlin.org">Merlin Hughes</a>, all credit to the <a href="http://www.lm-sensors.org/">lm_sensors</a> crew.</small>
131 </p>
132 </BODY>
133 </HTML>