# /usr/local/bin/rtr-graph --cfg traffic.cfg
Can't call method "png" on an undefined value at /usr/local/bin/rtr-graph line 123.
# more rtr-graph
$my_graph->set_legend_font ("gdMediumBoldFont");
$my_graph->set_legend( 'Traffic Out', 'Traffic In' );
my $gd = $my_graph->plot(\@data)->png;
open (IMG, ">$tmp_dir/graph.$name.$int.png") or die;
binmode IMG;
print IMG $gd;
close IMG;
#####
####
[root@atilla tmp]# ls -ltr
total 52
-rwxrwxrwx 1 root root 30 Oct 20 13:33 traf.traffic.20031020.6
-rwxrwxrwx 1 root root 21 Oct 20 13:33 traf.traffic.20031020.5
-rwxrwxrwx 1 root root 15 Oct 20 13:33 traf.traffic.20031020.4
-rwxrwxrwx 1 root root 15 Oct 20 13:33 traf.traffic.20031020.3
-rwxrwxrwx 1 root root 30 Oct 20 13:34 traf.traffic.20031020.2
-rwxrwxrwx 1 root root 45 Oct 23 18:33 traf.traffic.20031023.2
####
more traf.traffic.20031023.2
1066934467 0 0
1066947054 0 0
1066948418 0 0
1066948473 0 0