[Solved] 2data sources cdef and a lil bug result

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
grumpf-dream
Posts: 14
Joined: Wed Sep 06, 2006 12:59 am

[Solved] 2data sources cdef and a lil bug result

Post by grumpf-dream »

Hi,

I got a very lil bug I just complete a graph with 2 traffic data sources both got in and out.

the result is ok on area and stack, but bug on GPRINT
showing the same data

in code it use data source 1 two times

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1157436327 \
--end=1157522427 \
--title="WAN bor - Traffic - ATM Total" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
COMMENT:"From 2006/09/05 08\:05\:27 To 2006/09/06 08\:00\:27\c" \
COMMENT:"  \n" \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/laserbor1_traffic_in_897.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/laserbor1_traffic_in_897.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/localhost/htdocs/cacti/rra/laserbor1_traffic_in_897.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/localhost/htdocs/cacti/rra/laserbor2_traffic_in_908.rrd":traffic_out:AVERAGE \
CDEF:cdefa=b,8,* \
CDEF:cdefi=c,-8,* \
CDEF:cdefj=c,8,* \
CDEF:cdefbc=d,-8,* \
AREA:cdefa#00CF00:"[host1] in\:"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefa#96E78A:"[host2] in\:":STACK \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefi#4444FF:"[host1] out\:"  \
GPRINT:cdefj:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefj:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefbc#7CB3F1:"[host2] out\:":STACK \
GPRINT:cdefj:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefj:MAX:"Maximum\:%8.2lf%s" 
Attachments
cacti_graph_template_traffic_multi_link.xml
the template
(20.21 KiB) Downloaded 122 times
the result
the result
wan.png (43.15 KiB) Viewed 1324 times
Last edited by grumpf-dream on Wed Sep 06, 2006 1:15 am, edited 1 time in total.
grumpf-dream
Posts: 14
Joined: Wed Sep 06, 2006 12:59 am

Post by grumpf-dream »

finaly no bug I open my eyes 30s after posting
searching since two days :oops:

I miss one of the data sources
I reopen my graph change data source and save :roll:


:oops:
Attachments
Working :-)
Working :-)
wan-ok.png (45.94 KiB) Viewed 1323 times
grumpf-dream
Posts: 14
Joined: Wed Sep 06, 2006 12:59 am

Post by grumpf-dream »

Code: Select all

	

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1157436327 \
--end=1157522427 \
--title="WAN bor - Traffic - ATM Total" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
COMMENT:"From 2006/09/05 08\:05\:27 To 2006/09/06 08\:00\:27\c" \
COMMENT:"  \n" \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/laserbor1_traffic_in_897.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/laserbor2_traffic_in_908.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/localhost/htdocs/cacti/rra/laserbor1_traffic_in_897.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/localhost/htdocs/cacti/rra/laserbor2_traffic_in_908.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=c,-8,* \
CDEF:cdefj=c,8,* \
CDEF:cdefbc=d,-8,* \
CDEF:cdefbd=d,8,* \
AREA:cdefa#00CF00:"[host1] in\:"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefe#96E78A:"[host2] in\:":STACK \
GPRINT:cdefe:LAST:" Current\:%8.2lf%s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefi#4444FF:"[host1] out\:"  \
GPRINT:cdefj:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefj:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefbc#7CB3F1:"[host2] out\:":STACK \
GPRINT:cdefbd:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefbd:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefbd:MAX:"Maximum\:%8.2lf%s" 

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest