0.8.7c Bug ? CDEF

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

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

0.8.7c Bug ? CDEF

Post by mcutting »

When clicking selecting CDEF's from console, error message is displayed

Notice: Undefined variable: get_request_var_request in C:\wamp\www\cacti\cdef.php on line 550

Fatal error: Function name must be a string in C:\wamp\www\cacti\cdef.php on line 550
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yes...

Download the latest cdef.php from the SVN 0.8.7 branch.

We will be issuing patches this weekend for this issue and others.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
jbsegal
Posts: 9
Joined: Fri Jun 22, 2007 5:20 pm
Location: Boston

Post by jbsegal »

rony wrote:Yes...

Download the latest cdef.php from the SVN 0.8.7 branch.

We will be issuing patches this weekend for this issue and others.
I'm having other CDEF problems
(

Code: Select all

ERROR: String ends after the = sign on 'CDEF:cdefbc='
for ucd/net -CPU Usage graphs)...

Do you expect this to be fixed by this weekend's patches, or should I be starting another thread/opening a bug on this?

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

Post by gandalf »

Please post DEBUG screenshot from Graph Management. Then I can tell you exactly.
Reinhard
jbsegal
Posts: 9
Joined: Fri Jun 22, 2007 5:20 pm
Location: Boston

Post by jbsegal »

gandalf wrote:Please post DEBUG screenshot from Graph Management. Then I can tell you exactly.
Reinhard
How about just the text? Let me know if you need the actual screenshot..

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="aacontrol1 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefbc= \
AREA:#FF0000FF:"System" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
AREA:#0000FFFF:"User":STACK \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
AREA:#00FF00FF:"Nice":STACK \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

ERROR: String ends after the = sign on 'CDEF:cdefbc='

(It's the ucd/net - CPU Usage graph, and the problem appeared after going to 7c from 7b)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The DEFs are missing, this is why the CDEF breaks.
Were did you get the code from? Upgrade or pristine install?
Reinhard
jbsegal
Posts: 9
Joined: Fri Jun 22, 2007 5:20 pm
Location: Boston

Post by jbsegal »

gandalf wrote:The DEFs are missing, this is why the CDEF breaks.
Were did you get the code from? Upgrade or pristine install?
Reinhard
Upgrade, via RPM, from Dag.wieers.com (upgraded from a previous Dag RPM), which I'm generally willing to trust a great deal.

(cacti-0.8.7c-1.el5.rf, "Source RPM: cacti-0.8.7c-1.el5.rf.src.rpm", except, fascinatingly, that package seems to have vanished. I'm mailing Dag about that now.)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

We just released 087d.
I'm not aware of any known fix that may cause your issue. But an upgrade is recommended
Reinhard
CanDee
Posts: 11
Joined: Wed Jul 23, 2008 12:47 am

Re: 0.8.7c Bug ? CDEF

Post by CanDee »

0.8.7g

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Sql01 [Hardware] - CPU Usage' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='percent' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefbc= \
AREA:#FF0000FF:"System" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
AREA:#0000FFFF:"User":STACK \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
AREA:#00FF00FF:"Nice":STACK \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

ERROR: String ends after the = sign on 'CDEF:cdefbc='


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

Re: 0.8.7c Bug ? CDEF

Post by gandalf »

There's no DEF statement in that rrdtool graph.
This will happen, if no data source has been selected
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests