[rrd-users] RRDs problem (fwd)
Sekhar Putcha
putcha at uoregon.edu
Tue Aug 14 22:24:30 MEST 2001
Hi,
I am trying to use the RRD graph function thru its perl bindings.
RRDs::graph. here is what I did. It doesn't seem to be working. could
anyone help?
thank you very much.
-sekhar
PS> I was also wondering where I can find sample programs which use RRDs.
use RRDs;
my $prefix = "/usr/local/flows/graphs/";
#I converted the output of make for the makefile generated by
#dave plonka's flowscan.
($averages,$xsize,$ysize) = RRDs::graph $prefix."protocols_bits.png",
"--interlaced",
"--imgformat png",
"--width 640",
"--height 150",
"--alt-autoscale",
"-v","megabits per second",
"-t","'Campus' I/O by IP Protocol, Bytes'",
"-s", time - 48*60*60,
"DEF:total_out_bytes=".$prefix."total.rrd:out_bytes:AVERAGE",
"DEF:total_in_bytes=".$prefix."total.rrd:in_bytes:AVERAGE",
"CDEF:total_bytes=total_out_bytes,total_in_bytes,+",
"CDEF:total_Mbps=total_bytes,.000008,*",
"DEF:tcp_out_bytes=".$prefix."tcp.rrd:out_bytes:AVERAGE",
"DEF:tcp_in_bytes=".$prefix."tcp.rrd:in_bytes:AVERAGE",
"CDEF:tcp_out_Mbps=tcp_out_bytes,.000008,*",
"CDEF:tcp_in_Mbps=tcp_in_bytes,.000008,*",
"CDEF:tcp_Mbps=tcp_out_Mbps,tcp_in_Mbps,+",
"DEF:udp_out_bytes=".$prefix."udp.rrd:out_bytes:AVERAGE",
"DEF:udp_in_bytes=".$prefix."udp.rrd:in_bytes:AVERAGE",
"CDEF:udp_out_Mbps=udp_out_bytes,.000008,*",
"CDEF:udp_in_Mbps=udp_in_bytes,.000008,*",
"CDEF:udp_Mbps=udp_out_Mbps,udp_in_Mbps,+",
"DEF:icmp_out_bytes=".$prefix."icmp.rrd:out_bytes:AVERAGE",
"DEF:icmp_in_bytes=".$prefix."icmp.rrd:in_bytes:AVERAGE",
"CDEF:icmp_out_Mbps=icmp_out_bytes,.000008,*",
"CDEF:icmp_in_Mbps=icmp_in_bytes,.000008,*",
"CDEF:icmp_Mbps=icmp_out_Mbps,icmp_in_Mbps,+",
"DEF:MCAST_in_bytes=".$prefix."MCAST.rrd:in_bytes:AVERAGE",
"DEF:MCAST_out_bytes=".$prefix."MCAST.rrd:out_bytes:AVERAGE",
"CDEF:MCAST_in_Mbps=MCAST_in_bytes,.000008,*",
"CDEF:MCAST_out_Mbps=MCAST_out_bytes,.000008,*",
"CDEF:MCAST_Mbps=MCAST_out_Mbps,MCAST_in_Mbps,+",
"CDEF:TOTAL_Mbps=MCAST_Mbps,total_Mbps,+",
"AREA:tcp_in_Mbps#ff0000:'TCP in'",
"STACK:tcp_out_Mbps#880000:'TCP out'",
"STACK:MCAST_in_Mbps#aaaa00:'MCAST in'",
"STACK:MCAST_out_Mbps#555500:'MCAST out'",
"STACK:udp_in_Mbps#00ff00:'UDP in'",
"STACK:udp_out_Mbps#008800:'UDP out'",
"STACK:icmp_in_Mbps#0000ff:'ICMP in'",
"STACK:icmp_out_Mbps#000088:'ICMP out'",
"LINE1:TOTAL_Mbps#880088:'TOTAL I/O'";
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list