Annual Chart

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

Moderators: Moderators, Developers

Post Reply
Author
Message
javiercampos
Posts: 10
Joined: Tue Jan 08, 2019 9:22 am

Annual Chart

#1 Post by javiercampos » Tue Jan 08, 2019 9:59 am

Hello,
First of all I would like to congratulate everyone for the great tool that is cacti. :D :D :D

Second I would like to see if you can support me with the inconvenience that I have when viewing the annual graphs, I attach an image. :x :x

thanks.
Attachments
cacti.png
cacti.png (33.76 KiB) Viewed 417 times

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: Annual Chart

#2 Post by Osiris » Tue Jan 08, 2019 7:00 pm

Not sure we actually have any idea what you are asking for.
Before history, there was a paradise, now dust.

netniV
Cacti Guru User
Posts: 2670
Joined: Sun Aug 27, 2017 12:05 am

Re: Annual Chart

#3 Post by netniV » Wed Jan 09, 2019 12:43 am

You look like your are using an old version of cacti or I'd have asked you to post the graph debug data that shows the row values. That would help in this situation to know whether you are seeing a bunch of NaN's and also, the data source info which shows a table of your actual vs expected rows (something I used recently).

javiercampos
Posts: 10
Joined: Tue Jan 08, 2019 9:22 am

Re: Annual Chart

#4 Post by javiercampos » Wed Jan 09, 2019 8:08 am

Hi,

Excuse my English:

1- When viewing the graph for the last 6 months, these cuts do not occur.
2- When you visualize the year, the problem that you attach image.
3- When you download the csv, it is effectively full of NAN
4- Annual chart properties:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='1515503035' \
--end='1547039035' \
--title='22222' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2018/01/09 10\:03\:55 To 2019/01/09 10\:03\:55\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:9: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/www/cacti/rra/204/5819.rrd':'traffic_in':AVERAGE \
DEF:b='/var/www/cacti/rra/204/5819.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'


5- RRD INFO

[[email protected] ~]# rrdtool info /var/www/cacti/rra/204/5819.rrd
filename = "/var/www/cacti/rra/204/5819.rrd"
rrd_version = "0003"
step = 60
last_update = 1547039284
header_size = 3496
ds[traffic_in].index = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 120
ds[traffic_in].min = 0,0000000000e+00
ds[traffic_in].max = 1,0000000000e+09
ds[traffic_in].last_ds = "78390982"
ds[traffic_in].value = 2,5388067797e+04
ds[traffic_in].unknown_sec = 0
ds[traffic_out].index = 1
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 120
ds[traffic_out].min = 0,0000000000e+00
ds[traffic_out].max = 1,0000000000e+09
ds[traffic_out].last_ds = "2702336953"
ds[traffic_out].value = 3,2619864407e+04
ds[traffic_out].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 1095
rra[0].cur_row = 499
rra[0].pdp_per_row = 1440
rra[0].xff = 0,0000000000e+00
rra[0].cdp_prep[0].value = 2,9856981921e+04
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = 5,3944661723e+05
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 315360
rra[1].cur_row = 131077
rra[1].pdp_per_row = 5
rra[1].xff = 0,0000000000e+00
rra[1].cdp_prep[0].value = 1,1686666102e+04
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 1,7924748305e+04
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 1576800
rra[2].cur_row = 969170
rra[2].pdp_per_row = 1
rra[2].xff = 0,0000000000e+00
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = NaN
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 78840
rra[3].cur_row = 62553
rra[3].pdp_per_row = 20
rra[3].xff = 0,0000000000e+00
rra[3].cdp_prep[0].value = 1,1889188418e+04
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 2,9025178814e+04
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "AVERAGE"
rra[4].rows = 26280
rra[4].cur_row = 11977
rra[4].pdp_per_row = 60
rra[4].xff = 0,0000000000e+00
rra[4].cdp_prep[0].value = 1,1889188418e+04
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = 2,9025178814e+04
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 26280
rra[5].cur_row = 8365
rra[5].pdp_per_row = 60
rra[5].xff = 0,0000000000e+00
rra[5].cdp_prep[0].value = 6,0536002362e+03
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 7,8699183801e+03
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 1095
rra[6].cur_row = 46
rra[6].pdp_per_row = 1440
rra[6].xff = 0,0000000000e+00
rra[6].cdp_prep[0].value = 6,0536002362e+03
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 7,8699183801e+03
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 315360
rra[7].cur_row = 219482
rra[7].pdp_per_row = 5
rra[7].xff = 0,0000000000e+00
rra[7].cdp_prep[0].value = 6,0536002362e+03
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 7,8699183801e+03
rra[7].cdp_prep[1].unknown_datapoints = 0
rra[8].cf = "MAX"
rra[8].rows = 1576800
rra[8].cur_row = 916094
rra[8].pdp_per_row = 1
rra[8].xff = 0,0000000000e+00
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[8].cdp_prep[1].value = NaN
rra[8].cdp_prep[1].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 78840
rra[9].cur_row = 61796
rra[9].pdp_per_row = 20
rra[9].xff = 0,0000000000e+00
rra[9].cdp_prep[0].value = 6,0536002362e+03
rra[9].cdp_prep[0].unknown_datapoints = 0
rra[9].cdp_prep[1].value = 7,8699183801e+03
rra[9].cdp_prep[1].unknown_datapoints = 0


Thanks all
Attachments
maestra2.png
maestra2.png (36.56 KiB) Viewed 405 times

netniV
Cacti Guru User
Posts: 2670
Joined: Sun Aug 27, 2017 12:05 am

Re: Annual Chart

#5 Post by netniV » Wed Jan 09, 2019 4:53 pm

Based off your six month graph, it looks like your RRA's aren't properly defined so you are losing data when it comes to the long term data.

javiercampos
Posts: 10
Joined: Tue Jan 08, 2019 9:22 am

Re: Annual Chart

#6 Post by javiercampos » Thu Jan 10, 2019 1:50 pm

netniV wrote:Based off your six month graph, it looks like your RRA's aren't properly defined so you are losing data when it comes to the long term data.

How can I solve it?

Thanks

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: Annual Chart

#7 Post by Osiris » Fri Jan 11, 2019 4:49 pm

Edit the Data Source and Select Info Mode, and give us a screen show of the bottom of the Info Mode page. It'll make things more human readable.
Before history, there was a paradise, now dust.

javiercampos
Posts: 10
Joined: Tue Jan 08, 2019 9:22 am

Re: Annual Chart

#8 Post by javiercampos » Mon Jan 14, 2019 11:23 am

Osiris wrote:Edit the Data Source and Select Info Mode, and give us a screen show of the bottom of the Info Mode page. It'll make things more human readable.
This is what you need?
Attachments
cacti.png
cacti.png (13.69 KiB) Viewed 379 times

User avatar
Osiris
Cacti Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: Annual Chart

#9 Post by Osiris » Mon Jan 14, 2019 6:50 pm

This looks like old cacti. It's a broken setup. If this is a new install, I would restart with 1.1.38.
Before history, there was a paradise, now dust.

javiercampos
Posts: 10
Joined: Tue Jan 08, 2019 9:22 am

Re: Annual Chart

#10 Post by javiercampos » Tue Jan 15, 2019 7:10 am

Osiris wrote:This looks like old cacti. It's a broken setup. If this is a new install, I would restart with 1.1.38.
You say that the solution to my problem is using the latest version of cacti?

Post Reply