Graph not displayed anymore Start Value to big

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

Moderators: Developers, Moderators

Post Reply
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Graph not displayed anymore Start Value to big

Post by Rno »

Hello,
since yesterday all my graph is not displayed anymore.
I have this error:
error graph.png
error graph.png (12.52 KiB) Viewed 619 times
And that only happen when I'm looking on the graph from the graph management.
If I go directly with this link:
http://cacti/cacti/graph.php?rra_id=all ... h_id=33824

The view is correct.

But that has an impact on my weathermap view, since it use this link:
http://cacti/cacti/graph_image.php?rra_ ... h_id=33824

And give this error:

Code: Select all

Erreur d’analyse XML : erreur de syntaxe
Emplacement : http://cacti.lausanne.ch/cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=33824
Numéro de ligne 1, Colonne 1 :
ERROR: start (1730878885) should be less than end (1730809621)
^
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not displayed anymore Start Value to big

Post by Rno »

Re-building the Poller Cache fix the problem, but why/how that happend ?
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graph not displayed anymore Start Value to big

Post by macan »

any errors in cacti log?
Let the Cacti grow!
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not displayed anymore Start Value to big

Post by Rno »

No nothing
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not displayed anymore Start Value to big

Post by Rno »

So again today, same error
2024-11-18 08_10_28-Clipboard.png
2024-11-18 08_10_28-Clipboard.png (20.02 KiB) Viewed 559 times
Anyone have an Idea where it's taking that value ? (RRD, DB)
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not displayed anymore Start Value to big

Post by Rno »

I think the error is related to the command /usr/bin/rrdtool graph
since the --start value is '-86400'
and the end value is '-219958'

So the end is before the start!

And I can't reproduce it on the graph, tab, it's only via the graph management.

here is the full command of an agregate graph:

Code: Select all

 RRDtool Command:

/usr/bin/rrdtool graph - \
--imgformat=SVG \
--start='-86400' \
--end='-221976' \
--pango-markup  \
--title='Aggregate - Traffic - L2 to ACI' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=150 \
--width=600 \
--rigid \
--alt-autoscale \
COMMENT:"From 17/11/2024 08\:52\:38 To 15/11/2024 19\:13\:02\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='/usr/share/cacti/rra/lf_ch9_102-9336_traffic_in_34781.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/lf_ch9_102-9336_traffic_in_34781.rrd':'traffic_out':AVERAGE \
DEF:c='/usr/share/cacti/rra/lf_ch9_101-9336_traffic_in_34856.rrd':'traffic_in':AVERAGE \
DEF:d='/usr/share/cacti/rra/lf_ch9_101-9336_traffic_in_34856.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,-8,*' \
CDEF:cdeff='b,8,*' \
CDEF:cdefi='c,8,*' \
CDEF:cdefbc='d,-8,*' \
CDEF:cdefbd='d,8,*' \
CDEF:cdefbh='TIME,1731916299,GT,a,a,UN,0,a,IF,IF,TIME,1731916299,GT,c,c,UN,0,c,IF,IF,+,8,*' \
CDEF:cdefcb='TIME,1731916299,GT,b,b,UN,0,b,IF,IF,TIME,1731916299,GT,d,d,UN,0,d,IF,IF,+,-8,*' \
CDEF:cdefcc='TIME,1731916299,GT,b,b,UN,0,b,IF,IF,TIME,1731916299,GT,d,d,UN,0,d,IF,IF,+,8,*' \
CDEF:cdefa860eminimum=cdefa,cdefa,-  \
CDEF:var3e2a20=cdefa,cdefa860eminimum,-,20,/,20,*,cdefa860eminimum,+  \
CDEF:var3e2a19=cdefa,cdefa860eminimum,-,20,/,19,*,cdefa860eminimum,+  \
CDEF:var3e2a18=cdefa,cdefa860eminimum,-,20,/,18,*,cdefa860eminimum,+  \
CDEF:var3e2a17=cdefa,cdefa860eminimum,-,20,/,17,*,cdefa860eminimum,+  \
CDEF:var3e2a16=cdefa,cdefa860eminimum,-,20,/,16,*,cdefa860eminimum,+  \
CDEF:var3e2a15=cdefa,cdefa860eminimum,-,20,/,15,*,cdefa860eminimum,+  \
CDEF:var3e2a14=cdefa,cdefa860eminimum,-,20,/,14,*,cdefa860eminimum,+  \
CDEF:var3e2a13=cdefa,cdefa860eminimum,-,20,/,13,*,cdefa860eminimum,+  \
CDEF:var3e2a12=cdefa,cdefa860eminimum,-,20,/,12,*,cdefa860eminimum,+  \
CDEF:var3e2a11=cdefa,cdefa860eminimum,-,20,/,11,*,cdefa860eminimum,+  \
CDEF:var3e2a10=cdefa,cdefa860eminimum,-,20,/,10,*,cdefa860eminimum,+  \
CDEF:var3e2a9=cdefa,cdefa860eminimum,-,20,/,9,*,cdefa860eminimum,+  \
CDEF:var3e2a8=cdefa,cdefa860eminimum,-,20,/,8,*,cdefa860eminimum,+  \
CDEF:var3e2a7=cdefa,cdefa860eminimum,-,20,/,7,*,cdefa860eminimum,+  \
CDEF:var3e2a6=cdefa,cdefa860eminimum,-,20,/,6,*,cdefa860eminimum,+  \
CDEF:var3e2a5=cdefa,cdefa860eminimum,-,20,/,5,*,cdefa860eminimum,+  \
CDEF:var3e2a4=cdefa,cdefa860eminimum,-,20,/,4,*,cdefa860eminimum,+  \
CDEF:var3e2a3=cdefa,cdefa860eminimum,-,20,/,3,*,cdefa860eminimum,+  \
CDEF:var3e2a2=cdefa,cdefa860eminimum,-,20,/,2,*,cdefa860eminimum,+  \
CDEF:var3e2a1=cdefa,cdefa860eminimum,-,20,/,1,*,cdefa860eminimum,+  \
AREA:var3e2a20#007C00ff:"lf_ch9_102-9336 Inbound "  \
AREA:var3e2a19#008000ff  \
AREA:var3e2a18#008400ff  \
AREA:var3e2a17#008800ff  \
AREA:var3e2a16#008D00ff  \
AREA:var3e2a15#009100ff  \
AREA:var3e2a14#009500ff  \
AREA:var3e2a13#009900ff  \
AREA:var3e2a12#009D00ff  \
AREA:var3e2a11#00A100ff  \
AREA:var3e2a10#00A600ff  \
AREA:var3e2a9#00AA00ff  \
AREA:var3e2a8#00AE00ff  \
AREA:var3e2a7#00B200ff  \
AREA:var3e2a6#00B600ff  \
AREA:var3e2a5#00BA00ff  \
AREA:var3e2a4#00BE00ff  \
AREA:var3e2a3#00C300ff  \
AREA:var3e2a2#00C700ff  \
AREA:var3e2a1#00CB00ff  \
AREA:var3e2a20#007C0000  \
 \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n'  \
CDEF:cdefeb767minimum=cdefe,cdefe,-  \
CDEF:var6c1e20=cdefe,cdefeb767minimum,-,20,/,20,*,cdefeb767minimum,+  \
CDEF:var6c1e19=cdefe,cdefeb767minimum,-,20,/,19,*,cdefeb767minimum,+  \
CDEF:var6c1e18=cdefe,cdefeb767minimum,-,20,/,18,*,cdefeb767minimum,+  \
CDEF:var6c1e17=cdefe,cdefeb767minimum,-,20,/,17,*,cdefeb767minimum,+  \
CDEF:var6c1e16=cdefe,cdefeb767minimum,-,20,/,16,*,cdefeb767minimum,+  \
CDEF:var6c1e15=cdefe,cdefeb767minimum,-,20,/,15,*,cdefeb767minimum,+  \
CDEF:var6c1e14=cdefe,cdefeb767minimum,-,20,/,14,*,cdefeb767minimum,+  \
CDEF:var6c1e13=cdefe,cdefeb767minimum,-,20,/,13,*,cdefeb767minimum,+  \
CDEF:var6c1e12=cdefe,cdefeb767minimum,-,20,/,12,*,cdefeb767minimum,+  \
CDEF:var6c1e11=cdefe,cdefeb767minimum,-,20,/,11,*,cdefeb767minimum,+  \
CDEF:var6c1e10=cdefe,cdefeb767minimum,-,20,/,10,*,cdefeb767minimum,+  \
CDEF:var6c1e9=cdefe,cdefeb767minimum,-,20,/,9,*,cdefeb767minimum,+  \
CDEF:var6c1e8=cdefe,cdefeb767minimum,-,20,/,8,*,cdefeb767minimum,+  \
CDEF:var6c1e7=cdefe,cdefeb767minimum,-,20,/,7,*,cdefeb767minimum,+  \
CDEF:var6c1e6=cdefe,cdefeb767minimum,-,20,/,6,*,cdefeb767minimum,+  \
CDEF:var6c1e5=cdefe,cdefeb767minimum,-,20,/,5,*,cdefeb767minimum,+  \
CDEF:var6c1e4=cdefe,cdefeb767minimum,-,20,/,4,*,cdefeb767minimum,+  \
CDEF:var6c1e3=cdefe,cdefeb767minimum,-,20,/,3,*,cdefeb767minimum,+  \
CDEF:var6c1e2=cdefe,cdefeb767minimum,-,20,/,2,*,cdefeb767minimum,+  \
CDEF:var6c1e1=cdefe,cdefeb767minimum,-,20,/,1,*,cdefeb767minimum,+  \
AREA:var6c1e20#00195Bff:"lf_ch9_102-9336 Outbound"  \
AREA:var6c1e19#001A5Eff  \
AREA:var6c1e18#001B61ff  \
AREA:var6c1e17#001C64ff  \
AREA:var6c1e16#001C67ff  \
AREA:var6c1e15#001D6Aff  \
AREA:var6c1e14#001E6Dff  \
AREA:var6c1e13#001F70ff  \
AREA:var6c1e12#002073ff  \
AREA:var6c1e11#002176ff  \
AREA:var6c1e10#002279ff  \
AREA:var6c1e9#00227Cff  \
AREA:var6c1e8#00237Fff  \
AREA:var6c1e7#002482ff  \
AREA:var6c1e6#002585ff  \
AREA:var6c1e5#002688ff  \
AREA:var6c1e4#00278Bff  \
AREA:var6c1e3#00278Eff  \
AREA:var6c1e2#002891ff  \
AREA:var6c1e1#002994ff  \
AREA:var6c1e20#00195B00  \
 \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:cdefi#00CF007F:'lf_ch9_101-9336 Inbound ':STACK \
GPRINT:cdefi:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefi:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefi:MAX:'Maximum\:%8.2lf %s\n'  \
AREA:cdefbc#002A977F:'lf_ch9_101-9336 Outbound':STACK \
GPRINT:cdefbd:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefbd:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefbd:MAX:'Maximum\:%8.2lf %s\n'  \
COMMENT:' \n'  \
LINE1:cdefbh#00CF007F:'Total Inbound           ' \
GPRINT:cdefbh:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefbh:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefbh:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:cdefcb#002A977F:'Total Outbound          ' \
GPRINT:cdefcc:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefcc:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefcc:MAX:'Maximum\:%8.2lf %s\n' 

RRDtool Command lengths = 6463 characters.
RRDtool Says:

ERROR: start (1731829959) should be less than end (1731694382)
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graph not displayed anymore Start Value to big

Post by macan »

the error is clear from the first post. But we don't know why it arises
try clear browser cache, try in in different browser
Let the Cacti grow!
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: Graph not displayed anymore Start Value to big

Post by Rno »

In my last post I printout the command used to create the graph, and the start end end is wrong.

and that's the issue, nothing to do with the browser.

that's a correct value:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=SVG \
--start='-86400' \
--end='-9118' \
But sometime I have that:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=SVG \
--start='-86400' \
--end='-221976' \
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests