CactiEZ GPRINT Values when using SIMILAR_DATA_SOURCES_NODUPS

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

Moderators: Developers, Moderators

Post Reply
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

CactiEZ GPRINT Values when using SIMILAR_DATA_SOURCES_NODUPS

Post by SecuringStuff »

Dear Experts,

I have CactiEZ v0.4 installed and working fine.
The problem I have now is when I try to create an aggregate graph using SIMILAR_DATA_SOURCES_NODUPS.

The graphs is correct but the LEGEND/GPRINT values are not.

When using the plugin aggregate then adding a graph item total then the LEGEND shows the correct values!

I cant use the aggregate plugin for i do not need all the graph items to be shown into the graph and instead have only the total.

On CACTI 0.6.8h this aggregation was working just fine.

Please advise

Here is the graph debug

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="Total" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Total" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/routerr1_traffic_in_52.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/routerr1_traffic_in_53.rrd":traffic_in:AVERAGE \
DEF:c="/var/www/html/rra/routerr1_traffic_in_63.rrd":traffic_in:AVERAGE \
DEF:d="/var/www/html/rra/routerr2_traffic_in_74.rrd":traffic_in:AVERAGE \
DEF:e="/var/www/html/rra/routerr2_traffic_in_75.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/html/rra/routerr2_traffic_in_76.rrd":traffic_in:AVERAGE \
DEF:g="/var/www/html/rra/routerr2_traffic_in_77.rrd":traffic_in:AVERAGE \
DEF:h="/var/www/html/rra/routerr2_traffic_in_77.rrd":traffic_in:LAST \
DEF:i="/var/www/html/rra/routerr2_traffic_in_77.rrd":traffic_in:MIN \
DEF:j="/var/www/html/rra/routerr2_traffic_in_77.rrd":traffic_in:MAX \
CDEF:cdefh=TIME,1230099172,GT,a,a,UN,0,a,IF,IF,TIME,1230099172,GT,b,b,UN,0,b,IF,IF,TIME,1230099172,GT,c,c,UN,0,c,IF,IF,TIME,1230099172,GT,d,d,UN,0,d,IF,IF,TIME,1230099172,GT,e,e,UN,0,e,IF,IF,TIME,1230099172,GT,f,f,UN,0,f,IF,IF,TIME,1230099172,GT,g,g,UN,0,g,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefi=TIME,1230099172,GT,h,h,UN,0,h,IF,IF,8,* \
CDEF:cdefba=TIME,1230099172,GT,j,j,UN,0,j,IF,IF,8,* \
LINE1:a:""  \
LINE1:b:"":STACK \
LINE1:c:"":STACK \
LINE1:d:"":STACK \
LINE1:e:"":STACK \
LINE1:f:"":STACK \
LINE1:g:"":STACK \
AREA:cdefh#00CF00FF:"ICC-TOTAL(IN)"  \
GPRINT:cdefi:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefba:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
Sincerely,
SecuringStuff
Posts: 35
Joined: Thu Jun 05, 2008 8:53 pm

Post by SecuringStuff »

The SIMILAR_DATA_SOURCES_NODUPS works with AVERAGE only!
but it is not working for LAST and MAX

Any ideas?
gdgsoft
Posts: 3
Joined: Wed Feb 11, 2009 11:39 am

Post by gdgsoft »

Hi.
This work fine, when i used 0.8.7b. After upgrade to 0.8.7c this problem is repeated. But 'CF Type' = AVERAGE don't work. Also don't work with MIN, MAX and LAST.
Can you help me?

LOG:
RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="kie-tvbs-cisco2811-Summary Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/share/cacti/rra/gdgsoft_traffic_in_96.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/gdgsoft_traffic_in_96.rrd":traffic_out:AVERAGE \
CDEF:cdefa= \
CDEF:cdefb= \
GPRINT:cdefa:AVERAGE:"Current IN\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Current OUT\:%8.2lf %s"
RRDTool Says:

ERROR: String ends after the = sign on 'CDEF:cdefa='
gdgsoft
Posts: 3
Joined: Wed Feb 11, 2009 11:39 am

Post by gdgsoft »

Hi.
This work fine, when i used 0.8.7b. After upgrade to 0.8.7c this problem is repeated. But 'CF Type' = AVERAGE don't work. Also don't work with MIN, MAX and LAST.
Can you help me?

LOG:
RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="kie-tvbs-cisco2811-Summary Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/share/cacti/rra/gdgsoft_traffic_in_96.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/gdgsoft_traffic_in_96.rrd":traffic_out:AVERAGE \
CDEF:cdefa= \
CDEF:cdefb= \
GPRINT:cdefa:AVERAGE:"Current IN\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Current OUT\:%8.2lf %s"
RRDTool Says:

ERROR: String ends after the = sign on 'CDEF:cdefa='
gdgsoft
Posts: 3
Joined: Wed Feb 11, 2009 11:39 am

Post by gdgsoft »

Hi.
This work fine, when i used 0.8.7b. After upgrade to 0.8.7c this problem is repeated. But 'CF Type' = AVERAGE don't work. Also don't work with MIN, MAX and LAST.
Can you help me?

LOG:
RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="kie-tvbs-cisco2811-Summary Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/share/cacti/rra/gdgsoft_traffic_in_96.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/gdgsoft_traffic_in_96.rrd":traffic_out:AVERAGE \
CDEF:cdefa= \
CDEF:cdefb= \
GPRINT:cdefa:AVERAGE:"Current IN\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Current OUT\:%8.2lf %s"
RRDTool Says:

ERROR: String ends after the = sign on 'CDEF:cdefa='
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This problem is fixed in 087d
Reinhard
spenky_fly
Posts: 2
Joined: Wed Apr 08, 2009 4:13 am

Post by spenky_fly »

I have upgrade to 0.8.7d, but the problem is repeated.

Any idea ?

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="total - Vol total auth acceptee" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Nb auth accept" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/ssops1_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:b="/var/www/html/cacti/rra/ssops2_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:c="/var/www/html/cacti/rra/ssops3_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:d="/var/www/html/cacti/rra/ssops4_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:e="/var/www/html/cacti/rra/ssops5_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:f="/var/www/html/cacti/rra/ssops6_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:g="/var/www/html/cacti/rra/ssops7_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:h="/var/www/html/cacti/rra/ssops8_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:i="/var/www/html/cacti/rra/ssops9_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:j="/var/www/html/cacti/rra/ssops10_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:ba="/var/www/html/cacti/rra/ssops11_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:bb="/var/www/html/cacti/rra/ssops12_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:bc="/var/www/html/cacti/rra/ssops13_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:bd="/var/www/html/cacti/rra/ssops14_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
DEF:be="/var/www/html/cacti/rra/ssops15_total_nbauthaccept.rrd":nbauthaccept:AVERAGE \
CDEF:cdefga= \
AREA:a#55D6D3FF:"Nb auth accept (ssops1)"  \
GPRINT:a:MIN:" Min\:%8.0lf"  \
GPRINT:a:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:a:MAX:"Max\:%8.0lf\n"  \
AREA:b#4668E4FF:"Nb auth accept (ssops2)":STACK \
GPRINT:b:MIN:" Min\:%8.0lf"  \
GPRINT:b:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:b:MAX:"Max\:%8.0lf\n"  \
AREA:c#55009DFF:"Nb auth accept (ssops3)":STACK \
GPRINT:c:MIN:" Min\:%8.0lf"  \
GPRINT:c:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:c:MAX:"Max\:%8.0lf\n"  \
AREA:d#96E78AFF:"Nb auth accept (ssops4)":STACK \
GPRINT:d:MIN:" Min\:%8.0lf"  \
GPRINT:d:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:d:MAX:"Max\:%8.0lf\n"  \
AREA:e#00CF00FF:"Nb auth accept (ssops5)":STACK \
GPRINT:e:MIN:" Min\:%8.0lf"  \
GPRINT:e:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:e:MAX:"Max\:%8.0lf\n"  \
AREA:f#00694AFF:"Nb auth accept (ssops6)":STACK \
GPRINT:f:MIN:" Min\:%8.0lf"  \
GPRINT:f:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:f:MAX:"Max\:%8.0lf\n"  \
AREA:g#FFD660FF:"Nb auth accept (ssops7)":STACK \
GPRINT:g:MIN:" Min\:%8.0lf"  \
GPRINT:g:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:g:MAX:"Max\:%8.0lf\n"  \
AREA:h#FFAB00FF:"Nb auth accept (ssops8)":STACK \
GPRINT:h:MIN:" Min\:%8.0lf"  \
GPRINT:h:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:h:MAX:"Max\:%8.0lf\n"  \
AREA:i#FF7D00FF:"Nb auth accept (ssops9)":STACK \
GPRINT:i:MIN:" Min\:%8.0lf"  \
GPRINT:i:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:i:MAX:"Max\:%8.0lf\n"  \
AREA:j#CDCFC4FF:"Nb auth accept (ssops10)":STACK \
GPRINT:j:MIN:"Min\:%8.0lf"  \
GPRINT:j:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:j:MAX:"Max\:%8.0lf\n"  \
AREA:ba#AAABA1FF:"Nb auth accept (ssops11)":STACK \
GPRINT:ba:MIN:"Min\:%8.0lf"  \
GPRINT:ba:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:ba:MAX:"Max\:%8.0lf\n"  \
AREA:bb#8F9286FF:"Nb auth accept (ssops12)":STACK \
GPRINT:bb:MIN:"Min\:%8.0lf"  \
GPRINT:bb:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:bb:MAX:"Max\:%8.0lf\n"  \
AREA:bc#FF00FFFF:"Nb auth accept (ssops13)":STACK \
GPRINT:bc:MIN:"Min\:%8.0lf"  \
GPRINT:bc:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:bc:MAX:"Max\:%8.0lf\n"  \
AREA:bd#F5F800FF:"Nb auth accept (ssops14)":STACK \
GPRINT:bd:MIN:"Min\:%8.0lf"  \
GPRINT:bd:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:bd:MAX:"Max\:%8.0lf\n"  \
AREA:be#000000FF:"Nb auth accept (ssops15)":STACK \
GPRINT:be:MIN:"Min\:%8.0lf"  \
GPRINT:be:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:be:MAX:"Max\:%8.0lf\n"  \
LINE1:cdefga#FF0000FF:"Pic Nb auth accept"  \
GPRINT:cdefga:MIN:"      Min\:%8.0lf"  \
GPRINT:cdefga:AVERAGE:"Moy\:%8.2lf"  \
GPRINT:cdefga:MAX:"Max\:%8.0lf\n" 

RRDTool Says:

ERROR: String ends after the = sign on 'CDEF:cdefga='
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I need the raw definition of the graph along with the CDEF used. I cannot reproduce this error on my side; so perhaps I missed a corner-case
Reinhard
spenky_fly
Posts: 2
Joined: Wed Apr 08, 2009 4:13 am

Post by spenky_fly »

This is the description of the raw used "Total All Data Sources" CDEF :
Attachments
pic-cdef.png
pic-cdef.png (13.26 KiB) Viewed 3216 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest