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:
[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
and the data within the files is:
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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.