Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.63k stars 403 forks source link

error Aggregate Graphs 95% line(datas) with report #3702

Open trytrytogo opened 4 years ago

trytrytogo commented 4 years ago

hi,i have a problem to with 95% line,someone can help me ? Centos 7.2 RRDtool 1.4.8 mysql Ver 15.1 Distrib 10.4.13-MariaDB, for Linux (x86_64) using readline 5.1 Apache/2.4.6 Monitor 2.3.6 Thold 1.4

i mede a Aggregate Graphs,it's OK,likes this, image

so,i made it to report, in reporting,i click Report Preview to see, it ok, different graph have different 95% datas. like this. image image

next, i click send report. i can receive reports by email. but, when i see graph, all all have same 95% datas(Aggregate Graphs,singe physic interface port).
like this. image

no error logs. now i do not know how to find reasons for this. someone can help me . thanks.

trytrytogo commented 4 years ago

i'm sorry, i forget this . Cacti 1.2.10

TheWitness commented 3 years ago

Update to 1.2.15 once available. I'm not certain what is happening. 95th Percentile reporting for aggregates is a bit under tested at the moment, and I would need to see your Graph Debug and Aggregate Template/Aggregate Edit screen to dig down into the issue.

TheWitness commented 3 years ago

Related to https://github.com/Cacti/cacti/issues/3733

iskandarbasman commented 3 years ago

@TheWitness

This is mine.. It the graphs looks fine in Nectar Review. A second AGG graph will cause the rest of the graphs to follow the first graphs 95th percentile value when the emailed report is sent.

image

image

image

image

iskandarbasman commented 3 years ago

Hi @TheWitness,

I recreated the report in my test cacti v1.2.15. The bug is still there is nectar report and aggregated 95th percentile graph reports.

Looks ok in Nectar report preview. The 95th values are broken in the emailed report.

image

image

image

trytrytogo commented 3 years ago

@TheWitness image sorry for my late reply.
like this. thank you.

TheWitness commented 3 years ago

Upload the RRDtool cli syntax. You just have to turn on debug mode on the preview page.

iskandarbasman commented 3 years ago

@TheWitness This is from my test cacti if it matters. Just take note the bugged graphs only happens the ones received in email. It looks fine in cacti even on the Nectar Preview.

image

RRDtool Command:

/usr/bin/rrdtool graph - \ --imgformat=PNG \ --start='-86400' \ --end='-300' \ --pango-markup \ --title='Aggregate - Traffic 1' \ --vertical-label='bits per second' \ --slope-mode \ --base=1000 \ --height=200 \ --width=700 \ --rigid \ --alt-autoscale-max \ --lower-limit='0' \ COMMENT:"From 2020-11-08 09\:37\:48 To 2020-11-09 09\:32\:48\c" \ COMMENT:" \n" \ --border 1 --slope-mode \ --watermark 'Generated by Cacti®' \ DEF:a='/var/www/html/cacti/rra/local_linux_machine_traffic_in_7.rrd':'traffic_in':MAX \ DEF:b='/var/www/html/cacti/rra/local_linux_machine_traffic_in_7.rrd':'traffic_in':AVERAGE \ DEF:c='/var/www/html/cacti/rra/local_linux_machine_traffic_in_7.rrd':'traffic_out':MAX \ DEF:d='/var/www/html/cacti/rra/local_linux_machine_traffic_in_7.rrd':'traffic_out':AVERAGE \ CDEF:cdefa='a,8,' \ CDEF:cdefb='b,8,' \ CDEF:cdeff='c,8,' \ CDEF:cdefg='d,8,' \ CDEF:cdefbb='TIME,1604885808,GT,b,b,UN,0,b,IF,IF,8,' \ CDEF:cdefbg='TIME,1604885808,GT,d,d,UN,0,d,IF,IF,8,' \ AREA:cdefa#00CF00FF:'127.0.0.1 ' \ AREA:cdefb#00CF007F:'127.0.0.1 Inbound ' \ GPRINT:cdefb:LAST:'Current\:%8.2lf %s' \ GPRINT:cdefb:AVERAGE:'Average\:%8.2lf %s' \ GPRINT:cdefb:MAX:'Maximum\:%8.2lf %s\n' \ AREA:cdeff#002A97FF:'127.0.0.1 ' \ AREA:cdefg#002A977F:'127.0.0.1 Outbound' \ GPRINT:cdefg:LAST:'Current\:%8.2lf %s' \ GPRINT:cdefg:AVERAGE:'Average\:%8.2lf %s' \ GPRINT:cdefg:MAX:'Maximum\:%8.2lf %s\n' \ COMMENT:' \n' \ LINE1:cdefbb#00CF00FF:'Total ' \ LINE1:cdefbb#00CF007F:'Total Inbound ' \ GPRINT:cdefbb:LAST:'Current\:%8.2lf %s' \ GPRINT:cdefbb:AVERAGE:'Average\:%8.2lf %s' \ GPRINT:cdefbb:MAX:'Maximum\:%8.2lf %s\n' \ LINE1:cdefbg#002A97FF:'Total ' \ LINE1:cdefbg#002A977F:'Total Outbound ' \ GPRINT:cdefbg:LAST:'Current\:%8.2lf %s' \ GPRINT:cdefbg:AVERAGE:'Average\:%8.2lf %s' \ GPRINT:cdefbg:MAX:'Maximum\:%8.2lf %s\n' \ COMMENT:' \n' \ HRULE:250097.57#FF0000FF:'95th Percentile' \ COMMENT:'(0.25 mbit in+out)'

RRDtool Command lengths = 1926 charaters. RRDtool Says:

OK

TheWitness commented 3 years ago

I'm not following either of you guys. Show me side by side the graph from the report with the SAME TIMEFRAME (like last day) and the graph in Cacti. Both you guys, do that. First Graph with Last Day from the Report, and the Second one Last Day from the Tree.

iskandarbasman commented 3 years ago

Hi @TheWitness, As per the screenshot. Can you see the issue now in the emailed reports ? Do take note of the difference with the H Rule line as well.

image

TheWitness commented 3 years ago

Okay, I think the original author wrote a caching routine, and it's interfering maybe. I have to double check.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

iskandarbasman commented 2 years ago

Hi @TheWitness is plan to fix this 95th percentile value error for Nectar emailed reports ? Check with Cacti 1.2.20 and the issue is still there.

andy1945 commented 1 year ago

is there any update on this issue