cacti icon indicating copy to clipboard operation
cacti copied to clipboard

error Aggregate Graphs 95% line(datas) with report

Open trytrytogo opened this issue 5 years ago • 14 comments

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 avatar Jul 17 '20 05:07 trytrytogo

i'm sorry, i forget this . Cacti 1.2.10

trytrytogo avatar Aug 19 '20 10:08 trytrytogo

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 avatar Oct 17 '20 16:10 TheWitness

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

TheWitness avatar Oct 17 '20 16:10 TheWitness

@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 avatar Nov 03 '20 10:11 iskandarbasman

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

iskandarbasman avatar Nov 05 '20 02:11 iskandarbasman

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

trytrytogo avatar Nov 05 '20 02:11 trytrytogo

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

TheWitness avatar Nov 06 '20 12:11 TheWitness

@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

iskandarbasman avatar Nov 09 '20 01:11 iskandarbasman

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.

TheWitness avatar Nov 21 '20 22:11 TheWitness

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

iskandarbasman avatar Nov 23 '20 01:11 iskandarbasman

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

TheWitness avatar Nov 23 '20 02:11 TheWitness

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.

github-actions[bot] avatar Jan 23 '21 00:01 github-actions[bot]

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.

iskandarbasman avatar Apr 14 '22 07:04 iskandarbasman

is there any update on this issue

andy1945 avatar Apr 12 '23 07:04 andy1945