Cacti don't make 1 year graphic

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

Moderators: Developers, Moderators

Post Reply
cerc151
Posts: 6
Joined: Tue Aug 13, 2013 8:33 am

Cacti don't make 1 year graphic

Post by cerc151 »

Hi,

I have a problem with yearly graphs. Cacti don't generate that graph in some devices.

I copy the graph source code and run it, but i have an error

line 24: 14348 Segmentation fault /usr/bin/rrdtool graph - --imgformat=PNG --start=1344861624 --end=1376397624 --title='Router Fase5 - CPU Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/08/13 08\:40\:24 To 2013/08/13 08\:40\:24\c" COMMENT:" \n" --vertical-label='percent' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/router_fase5_5min_cpu_23.rrd":'5min_cpu':AVERAGE AREA:a#FFAB00FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"
Attachments
graphsource.txt
(655 Bytes) Downloaded 40 times
graph.png
graph.png (28.57 KiB) Viewed 1279 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't make 1 year graphic

Post by gandalf »

Which version of rrdtool is this?
R.
cerc151
Posts: 6
Joined: Tue Aug 13, 2013 8:33 am

Re: Cacti don't make 1 year graphic

Post by cerc151 »

gandalf wrote:Which version of rrdtool is this?
R.
RRDtool 1.3.8
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't make 1 year graphic

Post by gandalf »

What does happen when you run

Code: Select all

 /usr/bin/rrdtool graph /tmp/msic.png --imgformat=PNG --start=1344861624 --end=1376397624 --title='Router Fase5 - CPU Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/08/13 08\:40\:24 To 2013/08/13 08\:40\:24\c" COMMENT:" \n" --vertical-label='percent' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/router_fase5_5min_cpu_23.rrd":'5min_cpu':AVERAGE AREA:a#FFAB00FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"
R.
cerc151
Posts: 6
Joined: Tue Aug 13, 2013 8:33 am

Re: Cacti don't make 1 year graphic

Post by cerc151 »

Return the following error ("segmentation fault")

4967 Segmentation fault /usr/bin/rrdtool graph /tmp/msic.png --imgformat=PNG --start=1344861624 --end=1376397624 --title='Router Fase5 - CPU Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2012/08/13 08\:40\:24 To 2013/08/13 08\:40\:24\c" COMMENT:" \n" --vertical-label='percent' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/router_fase5_5min_cpu_23.rrd":'5min_cpu':AVERAGE AREA:a#FFAB00FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't make 1 year graphic

Post by gandalf »

This then is a plain rrdtool error. Please upgrade rrdtool
R.
cerc151
Posts: 6
Joined: Tue Aug 13, 2013 8:33 am

Re: Cacti don't make 1 year graphic

Post by cerc151 »

hi, I upgrade to 1.4.7, but i have the same error ("Segmentation fault")
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't make 1 year graphic

Post by gandalf »

I used your command lineon my system and it works fine.
How did you build the rrdtool? Or did you download it from somewhere?
R.
cerc151
Posts: 6
Joined: Tue Aug 13, 2013 8:33 am

Re: Cacti don't make 1 year graphic

Post by cerc151 »

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't make 1 year graphic

Post by gandalf »

So there's a chance that this rpm does not match your platform?
Any option to build from source?
R.
cerc151
Posts: 6
Joined: Tue Aug 13, 2013 8:33 am

Re: Cacti don't make 1 year graphic

Post by cerc151 »

i build source but i have many problems then i reinstall all again and the problem solve
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests