[SOLVED] problem with GPRINT - MAX
Moderators: Developers, Moderators
[SOLVED] problem with GPRINT - MAX
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
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
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
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
1) switch to rrdtool 1.2 (and change the setting in cacti)
2) switch to a monospaced font
3) post the graph debugging output.
2) switch to a monospaced font
3) post the graph debugging output.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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"
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"
You'll need to create a CDEF to sum up all the max values.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
http://forums.cacti.net/viewtopic.php?t=26064
I use the "Total All Data Sources and Bytes into Bits" CDEF.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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 AVERAGEDanRo 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 \
Reinhard
gandalf wrote: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 AVERAGEDanRo 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 \
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
Who is online
Users browsing this forum: No registered users and 2 guests