Index: trunk/tools/czartool/Czarplot.pm
===================================================================
--- trunk/tools/czartool/Czarplot.pm	(revision 28862)
+++ trunk/tools/czartool/Czarplot.pm	(revision 28870)
@@ -272,5 +272,6 @@
     my ($self, $fromTime, $toTime) = @_;
 
-    my $outputFile = "/tmp/czarplot_cluster.png";
+    my $prefix = $self->{_outputPath} ? $self->{_outputPath} : ".";
+    my $outputFile = "$prefix/czarplot_cluster.png";
     my ($minX, $maxX, $minY, $maxY, $timeDiff);
 
@@ -347,5 +348,6 @@
     my ($self) = @_;
 
-    my $outputFile = "/tmp/czarplot_hosts_space.png";
+    my $prefix = $self->{_outputPath} ? $self->{_outputPath} : "."; # TODO should be function for this
+    my $outputFile = "$prefix/czarplot_hosts_space.png";
     my $limit = 97.0;
     my $inputFile = $self->{_czarDb}->createHostsData($limit);
