95th percentile graph from docs.cacti.net
Moderators: Developers, Moderators
95th percentile graph from docs.cacti.net
I updated to this graph template, and now those graphs are not drawing anymore (after applying to an old graph).
OLD debug :
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EUMAIL01 - Traffic - 172.21.100.141 (Broadcom BCM5708C NetXtreme II GigE (NDIS VBD)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" \n" \
HRULE:132598.82#FF0000FF:"95th Percentile" \
COMMENT:"(0.13 mbit in+out)"
RRDTool Says:
OK
New debug :
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EUMAIL01 - Traffic - 172.21.100.141 (Broadcom BCM5708C NetXtreme II GigE (NDIS VBD)" \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:MAX \
DEF:c="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefi=c,8,*,-1,* \
CDEF:cdefj=c,8,* \
AREA:cdefa#00FF0099:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Transfer\: 230.14 MB" \
LINE1:cdeff#005D57FF:"Peak Usage\n" \
HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
COMMENT:"|95\:bits\:6\:current| mbit\n" \
AREA:cdefi#00A0FF99:"Outbound" \
GPRINT:cdefj:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf %s"
RRDTool Says:
As you see it doesn't say OK
I can't really find what's wrong.
Any ideas ?
Cacti 0.87e
OLD debug :
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EUMAIL01 - Traffic - 172.21.100.141 (Broadcom BCM5708C NetXtreme II GigE (NDIS VBD)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" \n" \
HRULE:132598.82#FF0000FF:"95th Percentile" \
COMMENT:"(0.13 mbit in+out)"
RRDTool Says:
OK
New debug :
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EUMAIL01 - Traffic - 172.21.100.141 (Broadcom BCM5708C NetXtreme II GigE (NDIS VBD)" \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:MAX \
DEF:c="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefi=c,8,*,-1,* \
CDEF:cdefj=c,8,* \
AREA:cdefa#00FF0099:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Transfer\: 230.14 MB" \
LINE1:cdeff#005D57FF:"Peak Usage\n" \
HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
COMMENT:"|95\:bits\:6\:current| mbit\n" \
AREA:cdefi#00A0FF99:"Outbound" \
GPRINT:cdefj:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf %s"
RRDTool Says:
As you see it doesn't say OK
I can't really find what's wrong.
Any ideas ?
Cacti 0.87e
rrdtool version? tried a different version?
| 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 |
Re: 95th percentile graph from docs.cacti.net
I have the exact same problem, did you ever solve it?
Re: 95th percentile graph from docs.cacti.net
I ran into this problem also and found the problem. For me I had upgraded to Cacti 0.8.7g on a new server. The graph template for 95th percentile is much different that it was under 0.8.7e. The debug output is key, but you have to paste it into a terminal to get more information. Then you get this,
Looking at the debug output more closely I noticed that the 95 percentile functions have different output,
HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
vs.
HRULE:110704.97#FF0000FF:"95th Percentile" \
So the percentile function isn't working everywhere. Looking at the graph template there are a bunch of percentile functions, however several of them are missing a field.
Item # 8 HRULE: |95:bits:0:current|
should read,
Item # 8 HRULE: |95:bits:0:current:2|
Fix all the other places where there aren't 5 fields. From the docs,
http://www.cacti.net/downloads/docs/html/variables.html
Nth Percentile
|[0-9]:(bits|bytes):[0-9]:(current|total|max|total_peak|all_max_current|all_max_peak|aggregate_max|aggregate_sum|aggregate_current|aggregate):[0-9]|
So that fixes the graph. I'm not sure I like all the extra data on this template, I just want a simple red line at the 95th percentile.
Paulo
Code: Select all
-bash: 95:bits:0:current: command not found
-bash: GPRINT:cdeff:AVERAGE:Average\:%8.2lf %s: command not found
HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
vs.
HRULE:110704.97#FF0000FF:"95th Percentile" \
So the percentile function isn't working everywhere. Looking at the graph template there are a bunch of percentile functions, however several of them are missing a field.
Item # 8 HRULE: |95:bits:0:current|
should read,
Item # 8 HRULE: |95:bits:0:current:2|
Fix all the other places where there aren't 5 fields. From the docs,
http://www.cacti.net/downloads/docs/html/variables.html
Nth Percentile
|[0-9]:(bits|bytes):[0-9]:(current|total|max|total_peak|all_max_current|all_max_peak|aggregate_max|aggregate_sum|aggregate_current|aggregate):[0-9]|
So that fixes the graph. I'm not sure I like all the extra data on this template, I just want a simple red line at the 95th percentile.
Paulo
Who is online
Users browsing this forum: No registered users and 5 guests