Total in and Total out values incorrect

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

Moderators: Developers, Moderators

Post Reply
danza
Posts: 6
Joined: Tue Feb 18, 2020 2:31 am

Total in and Total out values incorrect

Post by danza »

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.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Total in and Total out values incorrect

Post by netniV »

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
danza
Posts: 6
Joined: Tue Feb 18, 2020 2:31 am

Re: Total in and Total out values incorrect

Post by danza »

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
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Total in and Total out values incorrect

Post by netniV »

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
danza
Posts: 6
Joined: Tue Feb 18, 2020 2:31 am

Re: Total in and Total out values incorrect

Post by danza »

No - left everything standard. In my infinite wisdom I may have downloaded a custom graph template which I would have set back to the original - unless I didn't :|

Is that the graph template you are asking for?

Image
danza
Posts: 6
Joined: Tue Feb 18, 2020 2:31 am

Re: Total in and Total out values incorrect

Post by danza »

Hi - hadn't heard back in a few days - checked out the graph item type - below are the options available to me - which should it be?
Image

"Comment" is what I've seen in other help for this though.

Thank you.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Total in and Total out values incorrect

Post by netniV »

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
danza
Posts: 6
Joined: Tue Feb 18, 2020 2:31 am

Re: Total in and Total out values incorrect

Post by danza »

That's awesome - thanks very much. Will keep a look out.
danza
Posts: 6
Joined: Tue Feb 18, 2020 2:31 am

Re: Total in and Total out values incorrect

Post by danza »

netniV wrote: Tue Feb 25, 2020 6:38 pm sorry been a busy couple of days and I think it may be weekend before I can check out that specific template.
Please Sir - can I have some more? :D
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests