}
foreach my $var (@{$host->{'fields'}}) {
- my @graphdef = ("--lazy", "-t", $hostname." - ".$vars->{$var}->{'name'}, "DEF:${var}=${rrdfile}.${var}:${var}:AVERAGE", "LINE1:${var}#FF0000");
+ my @graphdef = ('-P', "--lazy", "-t", $hostname." - ".$vars->{$var}->{'name'}, "DEF:${var}=${rrdfile}.${var}:${var}:AVERAGE", "LINE1:${var}#FF0000");
push @graphdef, "VDEF:cur=${var},LAST";
- push @graphdef, 'GPRINT:cur:Current\\: %.2lf\\r';
+ push @graphdef, 'GPRINT:cur:Current\\: <span foreground="#FF0000">%.2lf</span>\\r';
my $mtime;
$mtime=(stat("${outdir}/${hostname}.${var}.png.work"))[9];