2 |
|
|
3 |
|
# ----------------------------------------------------------- |
4 |
|
# i-scream graph generation script |
5 |
< |
# http://www.i-scream.org.uk |
5 |
> |
# http://www.i-scream.org |
6 |
|
# |
7 |
|
# Generates graphs from rrd databases for i-scream data. |
8 |
|
# |
202 |
|
RRDs::graph ("$imgdir/$machine/$type-1m.png", "--start=-2678400", @rrdcmd); |
203 |
|
my($err_1m) = RRDs::error; |
204 |
|
print STDERR "Error generating 1m graph for $machine/$type: $err_1m\n" if $err_1m; |
205 |
+ |
RRDs::graph ("$imgdir/$machine/$type-1y.png", "--start=-31536000", @rrdcmd); |
206 |
+ |
my($err_1y) = RRDs::error; |
207 |
+ |
print STDERR "Error generating 1y graph for $machine/$type: $err_1y\n" if $err_1y; |
208 |
|
return; |
209 |
|
} |
210 |
|
|