Cacti 0.8.8b Preview Mode Graphs bug ?

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

Moderators: Developers, Moderators

loveme23
Posts: 2
Joined: Thu Aug 15, 2013 10:16 am

Cacti 0.8.8b Preview Mode Graphs bug ?

Post by loveme23 »

hello

after i update my cacti to 0.8.8b,the Preview Mode Graphs will not display,like this
20130815232019.png
20130815232019.png (68.11 KiB) Viewed 15260 times
but when turn it on, the Graphs is ok
20130815232249.png
20130815232249.png (112.09 KiB) Viewed 15260 times
so what is the problem?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by gandalf »

The bug is related to COMMENT handling and has been fixed.
Patch has been poted to the forum for testing, will attach here as well
R.
Attachments
cacti088b_empty_comment.patch
(2.56 KiB) Downloaded 1587 times
loveme23
Posts: 2
Joined: Thu Aug 15, 2013 10:16 am

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by loveme23 »

gandalf wrote:The bug is related to COMMENT handling and has been fixed.
Patch has been poted to the forum for testing, will attach here as well
R.
Hi gandalf

When i use this patch , display error:
patch -p1 -N < cacti088b_empty_comment.patch
patching file rrd.php
Hunk #1 FAILED at 1343.
1 out of 1 hunk FAILED -- saving rejects to file rrd.php.rej

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

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by gandalf »

Please post the reject file.
R.
mfurgiuele
Posts: 3
Joined: Sat Aug 17, 2013 9:47 am

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by mfurgiuele »

I have the same problem. Attached the .rej

Thanks in advance
Attachments
rrd.php.rej.txt
(2.42 KiB) Downloaded 521 times
mfurgiuele
Posts: 3
Joined: Sat Aug 17, 2013 9:47 am

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by mfurgiuele »

The problem appears when activated Thumbnails.

Hows it could solve?

Thanks
Attachments
cacti.jpg
cacti.jpg (30.66 KiB) Viewed 15213 times
mfurgiuele
Posts: 3
Joined: Sat Aug 17, 2013 9:47 am

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by mfurgiuele »

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

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by gandalf »

a good move
R.
Tryb3
Posts: 8
Joined: Fri Aug 23, 2013 5:26 am
Location: Paris, France

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by Tryb3 »

You saved my day . Thanx so much
Chrysalis
Cacti User
Posts: 70
Joined: Fri Sep 19, 2008 10:14 am
Location: UK

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by Chrysalis »

so why hasnt this path been intergrated into the release? its quite serious, are you going to leave the latest version buggy for months?
nibb
Posts: 10
Joined: Wed Sep 18, 2013 2:18 am

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by nibb »

I just installed Cacti version Version 0.8.8b and seem to have a similar problem.

This only happens with "interface" templates.

All others display fine, but devices using the template Interface + Total Bandwidth are dead images. When I click on them they do work.

Is this the same bug?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by gandalf »

The bug is related to some specific COMMENTs. Graph templates that don't use those will work
R.
sdavied
Posts: 15
Joined: Mon Dec 01, 2008 2:14 pm

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by sdavied »

For anyone that finds this thread because you have the same problem (and have 0.8.8b installed), I have created a patch file.

Only use this patch if you have the original lib/rrd.php file (from 0.8.8b; md5sum=a8a2137537d9aa49aec468a373a59350) installed.

To apply patch (linux), SSH to your cacti server and change to the base cacti directory. Copy the attached file to this directory. Then, (assuming you have 'patch' installed) run:

Code: Select all

patch -p0 -b < rrd.php.patch
The '-b' will create a backup copy of your original rrd.php file (patch will automatically name it 'rrd.php.orig'). In case things go awry after the patch is applied, you can reinstate the original file.

Note: it is important that you run the patch from the base cacti directory.

Use this patch at your own risk! I assume no liability if you hose your cacti installation.



Edit: added md5sum of original rrd.php file
Attachments
rrd.php.patch
(2.5 KiB) Downloaded 1393 times
garyfarm
Posts: 4
Joined: Sun Aug 25, 2013 2:10 am

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by garyfarm »

THANK YOU to sdavied for posting the patch file above. What some people may be missing that are relatively "novice" users of Cacti is how "exactly" to apply it.

If you installed the EZCacti use the Cacti WebAdmin at http://<ipaddress>:10000 in a web browser and go to the "Upload and download" topic on the left colum. Here is where you upload the patch to your server that sdavied uploaded earlier. Upload the patch file to the directory /var/www/html Remember this does not apply the patch, it only sends it to the server.

You can use the SSH tool in the WebAdmin that you just used, but I find it easier to go the terminal of your server either sitting right at it or by ssh. Issue the command cd /var/www/html and hit return. It should return to a prompt with html in it. Then type patch -p0 -b < rrd.php.patch and hit enter. This should return to the same html prompt that you were just at.....with no errors.

That's it. Go back to your Cacti webpage and do a page refresh and click on the "Thumbnails" checkbox and you will see your graphs again for the first time in months !

Just in case I attached sdavied file from a previous post.

Hope this helps a lot of people....it worked for me.

Gary
Attachments
rrd.php.patch
(2.5 KiB) Downloaded 534 times
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

Re: Cacti 0.8.8b Preview Mode Graphs bug ?

Post by Hiney »

OK, applied the patch, restarted apache.

md5sum rrd*
dba8d5efb99b197f43cc321fd55e379f rrd.php
a8a2137537d9aa49aec468a373a59350 rrd.php.orig


where should i look now. In a previous port, some mentioned that rra.php needs updating too, tho this patch doesn't deal with that.

(picture attached)

brand new installation. opensuse 13.1. As can be seen i can't even prove data is being collected at this point.

also have a EZcacti 0.7 install that does the same thing.

H
Attachments
picture of what i get
picture of what i get
16A96A2526A0A6A1.jpg (120.39 KiB) Viewed 13435 times
"The difference between theory and practice, is that in theory, there is no difference between theory and practice."

"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests