problem in yearly graph

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

problem in yearly graph

Post by nahidrezaei »

Hi ...
I have some problem just with yearly graphs.for some devices it's not display,but for others it's ok. here are a screenshot of my cacti,as you see yearly graph isn't display .
Attachments
Untitled.png
Untitled.png (93.92 KiB) Viewed 1421 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problem in yearly graph

Post by gandalf »

Please select the wrench next to the broken graph and post the results
R.
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

Re: problem in yearly graph

Post by nahidrezaei »

the result is :
Attachments
1.png
1.png (21.94 KiB) Viewed 1415 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problem in yearly graph

Post by gandalf »

Please copy that code into a file (e.g. broken-rrd.sh) and run it via "sh broken-rrd.sh > broken.png". What happens? Any eror message?
R.
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

Re: problem in yearly graph

Post by nahidrezaei »

I copied the "Graph Source" to a file then

Code: Select all

sh broken-rrd.sh > broken.png

the result is :

Code: Select all

*** glibc detected *** free(): invalid pointer: 0x09c2c2b0 ***
broken-rrd.sh: line 24: 25775 Aborted                 /usr/bin/rrdtool graph - --imgformat=PNG                     --start=-33053184 --end=-86400 --title="Pop site Navard Karaj 2 - CPU Usage" --rigid --base=1                    000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --                    slope-mode --font TITLE:10: --font AXIS:8: --font LEGEND:8: --font UNIT:8: DEF:a="/var/www/htm                    l/rra/pop_site_navard_karaj_2_5min_cpu_1887.rrd":5min_cpu:AVERAGE AREA:a#FF0000FF:"CPU Usage"                     GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0                    lf\n" COMMENT:" \n" COMMENT:"Last Updated \: Sat 21 Apr 12\:09\:21 IRDT 2012"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problem in yearly graph

Post by gandalf »

nahidrezaei wrote:I copied the "Graph Source" to a file then

Code: Select all

sh broken-rrd.sh > broken.png

the result is :

Code: Select all

*** glibc detected *** free(): invalid pointer: 0x09c2c2b0 ***
broken-rrd.sh: line 24: 25775 Aborted                 /usr/bin/rrdtool graph - --imgformat=PNG                     --start=-33053184 --end=-86400 --title="Pop site Navard Karaj 2 - CPU Usage" --rigid --base=1                    000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --                    slope-mode --font TITLE:10: --font AXIS:8: --font LEGEND:8: --font UNIT:8: DEF:a="/var/www/htm                    l/rra/pop_site_navard_karaj_2_5min_cpu_1887.rrd":5min_cpu:AVERAGE AREA:a#FF0000FF:"CPU Usage"                     GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0                    lf\n" COMMENT:" \n" COMMENT:"Last Updated \: Sat 21 Apr 12\:09\:21 IRDT 2012"
You should not type "whitespace" between any "--" and the related parameter (here: slope mode). Same applies to the number "1000" and stuff. Code should look like

Code: Select all

/usr/bin/rrdtool graph - --imgformat=PNG --start=-33053184 --end=-86400 --title="Pop site Navard Karaj 2 - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode --font TITLE:10: --font AXIS:8: --font LEGEND:8: --font UNIT:8: DEF:a="/var/www/html/rra/pop_site_navard_karaj_2_5min_cpu_1887.rrd":5min_cpu:AVERAGE AREA:a#FF0000FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n" COMMENT:" \n" COMMENT:"Last Updated \: Sat 21 Apr 12\:09\:21 IRDT 2012"
In case error remains, the problem lies with the rrdtool version.
R.
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

Re: problem in yearly graph

Post by nahidrezaei »

I have done it without space , then I received these :

Code: Select all

*** glibc detected *** free(): invalid pointer: 0x096c72b0 ***
broken-rrd.sh: line 1: 22238 Aborted                 /usr/bin/rrdtool graph - --imgformat=PNG --start=-33053184 -           -end=-86400 --title="Pop site Navard Karaj 2 - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-auto           scale-max --lower-limit=0 --vertical-label="percent" --slope-mode --font TITLE:10: --font AXIS:8: --font LEGEND:8           : --font UNIT:8: DEF:a="/var/www/html/rra/pop_site_navard_karaj_2_5min_cpu_1887.rrd":5min_cpu:AVERAGE AREA:a#FF00           00FF:"CPU Usage" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf           \n" COMMENT:" \n" COMMENT:"Last Updated \: Sat 21 Apr 12\:09\:21 IRDT 2012"
what should I do?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problem in yearly graph

Post by gandalf »

As already told above: this is then an issue with the rrdtool binary.
You may want to use a different version of rrdtool or compile it on your own.
This is NO cacti problem
R.
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

Re: problem in yearly graph

Post by nahidrezaei »

so How can I use a different version of rrdtool or compile it on my own? I don't really know how to solve this problem...
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

Re: problem in yearly graph

Post by nahidrezaei »

anybody knows?
nahidrezaei
Posts: 27
Joined: Wed Apr 18, 2012 12:42 am

Re: problem in yearly graph

Post by nahidrezaei »

nobody can't help me ? :(
scomanda
Posts: 1
Joined: Thu Dec 27, 2012 11:53 am

Re: problem in yearly graph

Post by scomanda »

I had that problem too, and I solved deleting the comment, in your case "last update..."
Bye
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests