Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Some Graphs Break After Upgrade to Cacti 0.8.7a
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Announcements
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9696
Location: MI, USA

PostPosted: Sun Nov 18, 2007 6:53 pm    Post subject: Some Graphs Break After Upgrade to Cacti 0.8.7a Reply with quote

All,

If you obtain some broken graphs after upgrading to Cacti 0.8.7a, please use the attached lib/functions.php to resolve the issue.

"I" appologize for this inconvenience.

Regards,

TheWitness

EDIT: Re-uploaded....



functions.tar.gz
 Description:

Download
 Filename:  functions.tar.gz
 Filesize:  16.43 KB
 Downloaded:  608 Time(s)

Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 978

PostPosted: Mon Nov 19, 2007 1:31 am    Post subject: Reply with quote

Tried this. Although it fixes my originally broken graph, it now breaks the existing HOST MIB graphs (disk stats etc) which were working before ???
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6791
Location: WA, USA

PostPosted: Mon Nov 19, 2007 3:28 am    Post subject: Reply with quote

What exactly is broken with it?

Post the graph debug for it and an rrdtool info on that file. The underlaying issues is older versions of cacti didn't properly create all CF's for average, max, min, and last.
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 978

PostPosted: Mon Nov 19, 2007 4:15 am    Post subject: Reply with quote

BSOD2600 - My mistake. I have a custom CDEF which shows the amount of free space on the graphs (HOST MIB). This wasn't working yesterday before Larry's fix, and I was able to determine that it was no longer a,b,- but actually a,c,-

Larry's fix reverted the graphs back to their default behaviour, so the CDEF no longer worked, and effectively busted the graph. I have changed my CDEF back to a,b,- which seems to have resolved the problem

Thanks
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 978

PostPosted: Mon Nov 19, 2007 4:25 am    Post subject: Reply with quote

Actually, since applying the new functions.php, I have come across an error (possibly associated with PIA):

Notice: Undefined index: monitor.php: in C:\wamp\www\Cacti\lib\functions.php on line 1632

This error varies depending on which plugin I am using (always the same line number though). The previous version of this file didn't exhibit this issue, so I am hazarding a guess that something is missing which the PIA requires ?

Thanks
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 978

PostPosted: Mon Nov 19, 2007 4:37 am    Post subject: Reply with quote

Ok, found it. After a bit of investigation, it actually is PIA related - the following is missing on line 1628:

$nav = do_hook_function('draw_navigation_text', $nav);

To make life a little easier, here's a revised version of functions.php, which needs to be copied to cacti\lib
Back to top
michelem



Joined: 30 Mar 2006
Posts: 34

PostPosted: Fri Nov 23, 2007 4:57 am    Post subject: Reply with quote

Anytime I click a plugin I got this notice:

Notice: Undefined index: weathermap-cacti-plugin.php: in /work/cacti-0.8.7a/lib/functions.php on line 1632

This happens with lib/functions.php attached here in this thread
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 978

PostPosted: Fri Nov 23, 2007 4:59 am    Post subject: Reply with quote

Strange, as this works for me (this file is the one with the changes). Which PIA are you using ?
Back to top
michelem



Joined: 30 Mar 2006
Posts: 34

PostPosted: Fri Nov 23, 2007 5:03 am    Post subject: Reply with quote

The mcutting file resolve that issue
Thank you
Back to top
foxfriend



Joined: 12 Jul 2006
Posts: 14

PostPosted: Thu Dec 20, 2007 8:00 am    Post subject: Reply with quote

After I upgraded to 0.8.7a, the graph were stop graphing. And I used the official patch to fix that problem, it still doesn't work. Is there I can provide to help trouble shooting ? Or there's anything I missed ?

Thank you.

The debug are listed bellow:
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="FAB Ether Leased Line - Hinet ELL 50M" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/html/rra/tfabbb01_traffic_in_124.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/tfabbb01_traffic_in_124.rrd":traffic_out:AVERAGE \
DEF:c="/var/www/html/rra/tfabbb01_traffic_in_151.rrd":traffic_in:MAX \
DEF:d="/var/www/html/rra/tfabbb01_traffic_in_151.rrd":traffic_out:MAX \
DEF:e="/var/www/html/rra/tfabbb01_traffic_in_151.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=c,8,* \
CDEF:cdefba=d,8,* \
AREA:cdefa#00FF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maxium\:%8.2lf %s\n" \
LINE1:cdefe#4444FFFF:"Outbound\:" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maxium\:%8.2lf %s\n" \
LINE1:cdefi#35962BFF:"In_Max" \
GPRINT:cdefa:MAX:" %8.2lf %s\n" \
LINE1:cdefba#B1441EFF:"Out_Max" \
GPRINT:cdefba:MAX:" %8.2lf %s\n"
RRDTool Says:

OK



not_graphed.JPG
 Description:
 Filesize:  34.42 KB
 Viewed:  5357 Time(s)

not_graphed.JPG


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6791
Location: WA, USA

PostPosted: Thu Dec 20, 2007 2:41 pm    Post subject: Reply with quote

This fixes actual graphing, not collection of data which you have. Follow http://docs.cacti.net/node/283
Back to top
foxfriend



Joined: 12 Jul 2006
Posts: 14

PostPosted: Thu Dec 20, 2007 10:52 pm    Post subject: Reply with quote

My problem sloved, thank you.
The reason my cacti stoped graph was the file privilege problem.
Back to top
Devroush



Joined: 22 Jan 2006
Posts: 20

PostPosted: Wed Dec 26, 2007 2:12 pm    Post subject: Reply with quote

The functions.php that TheWitness uploaded fixes the problem for me, however I now see a warning when I go to graph_view.php (without any parameters)

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/functions.php:1941) in /usr/share/cacti/site/include/top_graph_header.php on line 54

I'm using the debian package and my guess is that the maintainers changed some things. The file that mcutting uploaded broke pretty much everything
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6791
Location: WA, USA

PostPosted: Wed Dec 26, 2007 10:37 pm    Post subject: Reply with quote

Double check file permissions on that new file / cacti files.
Back to top
Devroush



Joined: 22 Jan 2006
Posts: 20

PostPosted: Thu Dec 27, 2007 5:11 am    Post subject: Reply with quote

nope, they're exact the same. I'll do some diff's and see if I can find a fix that way.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Announcements All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group