I was hoping you could help me out. My problem occurs using the rtr-graph script, a perl script program developed my John Shearer. He tried to help, but to no avail.
I get this error when trying to execute the rtr-graph:# /usr/local/bin/rtr-graph --cfg traffic.cfg Can't call method "png" on an undefined value at /usr/local/bin/rtr-gr +aph 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; #####
John, the developer of the script, told me to verify if I had the files referenced in the script and whether they had data.
Here are my files:and the data within the files is:[root@atilla tmp]# ls -ltr total 52 -rwxrwxrwx 1 root root 30 Oct 20 13:33 traf.traffic.2 +0031020.6 -rwxrwxrwx 1 root root 21 Oct 20 13:33 traf.traffic.2 +0031020.5 -rwxrwxrwx 1 root root 15 Oct 20 13:33 traf.traffic.2 +0031020.4 -rwxrwxrwx 1 root root 15 Oct 20 13:33 traf.traffic.2 +0031020.3 -rwxrwxrwx 1 root root 30 Oct 20 13:34 traf.traffic.2 +0031020.2 -rwxrwxrwx 1 root root 45 Oct 23 18:33 traf.traffic.2 +0031023.2
more traf.traffic.20031023.2 1066934467 0 0 1066947054 0 0 1066948418 0 0 1066948473 0 0
If you could point me in the right direction at all, I would really appreciate it.
edited: Fri Oct 24 17:59:08 2003 by jeffa - code tags
In reply to Can't Call Method png, need help by would_like_to_be
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |