[SOLVED] problem with GPRINT - MAX

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

Moderators: Developers, Moderators

Post Reply
DanRo
Posts: 5
Joined: Thu Mar 06, 2008 11:52 am

[SOLVED] problem with GPRINT - MAX

Post by DanRo »

hello,

i have a problem with a template.. i create one with 7 interfaces and GPRINT Min,Max,Last and Average

Here are the settings who i made for GPRINT - Max
Graph Item Type: GPRINT
Consolidation Function: MAX
CDEF Function: Turn All Data Sources - Turn Bytes in to Bits
GRPINT type: Normal
Text Format: Maxim

And here i post a picture of my graph with the result of the template :)

Image

Maxim value who appear is very short..
I have this problem just with latest version of cacti..
If someone know how to fix this problem please reply here :)
Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) switch to rrdtool 1.2 (and change the setting in cacti)

2) switch to a monospaced font

3) post the graph debugging output.
DanRo
Posts: 5
Joined: Thu Mar 06, 2008 11:52 am

Post by DanRo »

this is.. and yes i use rrdtool 1.0.X. I try to update rrdtool to 1.2 now :)

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="international - bps - in" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/apache/home/cacti3/rra/wfrnk_traffic_in_209.rrd":traffic_in:AVERAGE \
DEF:b="/home/apache/home/cacti3/rra/wfrnk_traffic_in_210.rrd":traffic_in:AVERAGE \
DEF:c="/home/apache/home/cacti3/rra/wfrnk_traffic_in_211.rrd":traffic_in:AVERAGE \
DEF:d="/home/apache/home/cacti3/rra/wfrnk_traffic_in_212.rrd":traffic_in:AVERAGE \
DEF:e="/home/apache/home/cacti3/rra/wfrnk_traffic_in_213.rrd":traffic_in:AVERAGE \
DEF:f="/home/apache/home/cacti3/rra/wnxdt_traffic_in_214.rrd":traffic_in:AVERAGE \
DEF:g="/home/apache/home/cacti3/rra/wnxdt_traffic_in_215.rrd":traffic_in:AVERAGE \
DEF:h="/home/apache/home/cacti3/rra/wnxdt_traffic_in_215.rrd":traffic_in:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefc=c,8,* \
CDEF:cdefd=d,8,* \
CDEF:cdefe=e,8,* \
CDEF:cdeff=f,8,* \
CDEF:cdefg=g,8,* \
CDEF:cdefh=TIME,1204831067,GT,a,a,UN,0,a,IF,IF,TIME,1204831067,GT,b,b,UN,0,b,IF,IF,TIME,1204831067,GT,c,c,UN,0,c,IF,IF,TIME,1204831067,GT,d,d,UN,0,d,IF,IF,TIME,1204831067,GT,e,e,UN,0,e,IF,IF,TIME,1204831067,GT,f,f,UN,0,f,IF,IF,TIME,1204831067,GT,g,g,UN,0,g,IF,IF,+,+,+,+,+,+,8,* \
CDEF:cdefba=TIME,1204831067,GT,h,h,UN,0,h,IF,IF,8,* \
AREA:cdefa#4444FF:"wFrnk.de.evolvatelecom.net PO2/0 Level3_edge1.frf1_pos7/1/3_SCID_BBBN51422\n" \
STACK:cdefb#00CF00:"wFrnk.de.evolvatelecom.net PO3/0 Level3_edge1.frf1_pos7/1/2_SCID_BBBN52020\n" \
STACK:cdefc#C4FD3D:"wFrnk.de.evolvatelecom.net Gi5/0 de-cix_sw7-gi1/19\n" \
STACK:cdefd#750F7D:"wFrnk.b.evolvatelecom.net Gi5/1 de-cix_sw7-gi1/23\n" \
STACK:cdefe#96E78A:"wFrnk.b.evolvatelecom.net Gi5/2 de-cix_sw7-gi0/26\n" \
STACK:cdeff#6DC8FE:"wNxdt.de.evolvatelecom.net Gi3/1 gtstelecom-2\n" \
STACK:cdefg#FF0000:"wNxdt.de.evolvatelecom.net Gi3/2 gtstelecom\n" \
GPRINT:cdefh:LAST:" Total Current\:%8.2lf %s" \
GPRINT:cdefh:MIN:"Minim\:%8.2lf %s" \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefba:MAX:"Maxim\:%8.2lf %s"
DanRo
Posts: 5
Joined: Thu Mar 06, 2008 11:52 am

Post by DanRo »

GPRINT - MAX for me calculate one interface, i need to calculate all interfaces
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You'll need to create a CDEF to sum up all the max values.
ashke
Posts: 32
Joined: Wed Feb 06, 2008 10:52 am

Post by ashke »

Similar issue I've been having.

http://forums.cacti.net/viewtopic.php?t=26064

I use the "Total All Data Sources and Bytes into Bits" CDEF.
DanRo
Posts: 5
Joined: Thu Mar 06, 2008 11:52 am

Post by DanRo »

BSOD2600 wrote:You'll need to create a CDEF to sum up all the max values.
you can tell me how i can create one CDEF to sum all the max values?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

DanRo wrote:RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="international - bps - in" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/apache/home/cacti3/rra/wfrnk_traffic_in_209.rrd":traffic_in:AVERAGE \
DEF:b="/home/apache/home/cacti3/rra/wfrnk_traffic_in_210.rrd":traffic_in:AVERAGE \
DEF:c="/home/apache/home/cacti3/rra/wfrnk_traffic_in_211.rrd":traffic_in:AVERAGE \
DEF:d="/home/apache/home/cacti3/rra/wfrnk_traffic_in_212.rrd":traffic_in:AVERAGE \
DEF:e="/home/apache/home/cacti3/rra/wfrnk_traffic_in_213.rrd":traffic_in:AVERAGE \
DEF:f="/home/apache/home/cacti3/rra/wnxdt_traffic_in_214.rrd":traffic_in:AVERAGE \
DEF:g="/home/apache/home/cacti3/rra/wnxdt_traffic_in_215.rrd":traffic_in:AVERAGE \
DEF:h="/home/apache/home/cacti3/rra/wnxdt_traffic_in_215.rrd":traffic_in:MAX \
Do you notice, that there's only one DEF using the MAX consolidation function? So please locate that graph item (AREA|GRAPH|LINEx) referring to cf=MAX and change it to AVERAGE
Reinhard
ashke
Posts: 32
Joined: Wed Feb 06, 2008 10:52 am

Post by ashke »

gandalf wrote:
DanRo wrote:RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="international - bps - in" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/apache/home/cacti3/rra/wfrnk_traffic_in_209.rrd":traffic_in:AVERAGE \
DEF:b="/home/apache/home/cacti3/rra/wfrnk_traffic_in_210.rrd":traffic_in:AVERAGE \
DEF:c="/home/apache/home/cacti3/rra/wfrnk_traffic_in_211.rrd":traffic_in:AVERAGE \
DEF:d="/home/apache/home/cacti3/rra/wfrnk_traffic_in_212.rrd":traffic_in:AVERAGE \
DEF:e="/home/apache/home/cacti3/rra/wfrnk_traffic_in_213.rrd":traffic_in:AVERAGE \
DEF:f="/home/apache/home/cacti3/rra/wnxdt_traffic_in_214.rrd":traffic_in:AVERAGE \
DEF:g="/home/apache/home/cacti3/rra/wnxdt_traffic_in_215.rrd":traffic_in:AVERAGE \
DEF:h="/home/apache/home/cacti3/rra/wnxdt_traffic_in_215.rrd":traffic_in:MAX \
Do you notice, that there's only one DEF using the MAX consolidation function? So please locate that graph item (AREA|GRAPH|LINEx) referring to cf=MAX and change it to AVERAGE
Reinhard

Thats just the thing, all of the CF types as configured in Cacti are set to AVERAGE but when you run the graph through the debugger, a few show up as MAX. Where could you possibly change it at that point? It appears some things are screwed up in how 0.8.7b is interpreting things.

I have the same issue here: http://forums.cacti.net/viewtopic.php?t=26064
DanRo
Posts: 5
Joined: Thu Mar 06, 2008 11:52 am

Post by DanRo »

problem is solved now :P i use an older version of cacti.. :)
ashke
Posts: 32
Joined: Wed Feb 06, 2008 10:52 am

Post by ashke »

DanRo wrote:problem is solved now :P i use an older version of cacti.. :)

Thats no solution! :(
User avatar
bleearg
Cacti User
Posts: 55
Joined: Wed Apr 27, 2005 9:37 am

Post by bleearg »

Agreed. I'm having the same problem and a downgrade is out of the question at this point.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest