Total in and Total out values incorrect
Moderators: Developers, Moderators
Total in and Total out values incorrect
So I've done a new install on Windows Server 2016, Cacti 1.2.8 from an all in one installer. I've not installed any custom items. It's all working quite well without any issues.
I've adde my devices, then grapahs. Graph type is in/out bits (64bit, BW)
The Total in and Total out values do not seem correct see here https://ibb.co/3SKFs7b
The graph template has the COMMENT: Total In: |sum:auto:current:2:auto|<HR> with CF Type Average
I've gone through the how-to, Faq and not seen anything specific. I see a number of issues people have had with actual totals of in and out.
I've a feeling I've missed something right under my nose. Would appreciate any direction if anyone can help.
I've adde my devices, then grapahs. Graph type is in/out bits (64bit, BW)
The Total in and Total out values do not seem correct see here https://ibb.co/3SKFs7b
The graph template has the COMMENT: Total In: |sum:auto:current:2:auto|<HR> with CF Type Average
I've gone through the how-to, Faq and not seen anything specific. I see a number of issues people have had with actual totals of in and out.
I've a feeling I've missed something right under my nose. Would appreciate any direction if anyone can help.
Re: Total in and Total out values incorrect
I am wondering if that is because the total is being displayed in a different locale to the other numbers? Can you post your graph debug that shows the rrdtool command its using?
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Total in and Total out values incorrect
Hi - thanks very much for your time in replying - see below. Been playing around with " sum:auto:current:2:auto " - and it all looks right in any help I've searched for.
RRDtool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start="-86400" \
--end="-300" \
--pango-markup \
--title="HO_Cisco - Traffic - VF_MPLS_4mbps" \
--vertical-label="bits per second" \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit="0" \
COMMENT:"From 2020/02/18 15\:50\:26 To 2020/02/19 15\:45\:26\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:"Arial" \
--font AXIS:8:"Arial" \
--font LEGEND:8:"Courier" \
--font UNIT:8:"Arial" \
--font WATERMARK:6:"Arial" \
--slope-mode \
--watermark "Generated by Cacti®" \
DEF:a="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_in":MAX \
DEF:b="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_in":AVERAGE \
DEF:c="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_out":MAX \
DEF:d="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_out":AVERAGE \
CDEF:cdefa="a,8,*" \
CDEF:cdefb="b,8,*" \
CDEF:cdefg="c,8,*" \
CDEF:cdefh="d,8,*" \
LINE1:cdefa#00CF00FF: \
AREA:cdefb#00CF007F:"Inbound " \
GPRINT:cdefb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 212.40 KB \n" \
LINE1:cdefg#002A97FF: \
AREA:cdefh#002A977F:"Outbound" \
GPRINT:cdefh:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 192.60 KB \n"
RRDtool Says:
OK
RRDtool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start="-86400" \
--end="-300" \
--pango-markup \
--title="HO_Cisco - Traffic - VF_MPLS_4mbps" \
--vertical-label="bits per second" \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit="0" \
COMMENT:"From 2020/02/18 15\:50\:26 To 2020/02/19 15\:45\:26\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:"Arial" \
--font AXIS:8:"Arial" \
--font LEGEND:8:"Courier" \
--font UNIT:8:"Arial" \
--font WATERMARK:6:"Arial" \
--slope-mode \
--watermark "Generated by Cacti®" \
DEF:a="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_in":MAX \
DEF:b="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_in":AVERAGE \
DEF:c="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_out":MAX \
DEF:d="C\:/inetpub/wwwroot/cacti/rra/ho_cisco_traffic_in_170.rrd":"traffic_out":AVERAGE \
CDEF:cdefa="a,8,*" \
CDEF:cdefb="b,8,*" \
CDEF:cdefg="c,8,*" \
CDEF:cdefh="d,8,*" \
LINE1:cdefa#00CF00FF: \
AREA:cdefb#00CF007F:"Inbound " \
GPRINT:cdefb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 212.40 KB \n" \
LINE1:cdefg#002A97FF: \
AREA:cdefh#002A977F:"Outbound" \
GPRINT:cdefh:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 192.60 KB \n"
RRDtool Says:
OK
Re: Total in and Total out values incorrect
Hmm, I notice the total line is a comment rather than a calculation. Is this something you added, can you post a picture of the graph item definitions?
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Total in and Total out values incorrect
sorry been a busy couple of days and I think it may be weekend before I can check out that specific template.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Total in and Total out values incorrect
That's awesome - thanks very much. Will keep a look out.
Who is online
Users browsing this forum: No registered users and 2 guests