"String ends after the = sign"

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

Moderators: Developers, Moderators

Post Reply
Saruman
Posts: 3
Joined: Fri Feb 21, 2014 11:25 am

"String ends after the = sign"

Post by Saruman »

Hi everyone! :D

I'm facing a very weird issue, with 3 similar Graph Templates using a CDEF function (ALL_DATA_SOURCES_NODUPS).

These Graph Templates only differ by the data sources they use and the colours.

First of all, I want to say that I was using these Graph Templates before, without any issue, on the following "old" platform (Debian):

Cacti Version: 0.8.7g
Cacti OS: unix
SNMP Version: NET-SNMP version: 5.2.3
RRDTool Version: RRDTool 1.2.x

Everything was OK then.

I re-created the Data Sources, imported the templates on the following "new" platform (700 graphs and 50 hosts that work OK):

Cacti Version: 0.8.8b
Cacti OS: unix
SNMP Version: NET-SNMP version: 5.4.3
RRDTool Version: RRDTool 1.4.x

Here is the Graph Debug message that appears when I want to create a graph with any of the 3 templates:

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Nombre de connexions : SFR' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/srv/monitoring/cacti-0.8.8b/rra/replicat03_countacqsfr_947.rrd':'CountAcqSfr':AVERAGE \
DEF:b='/srv/monitoring/cacti-0.8.8b/rra/replicat03_countacqsfr_947.rrd':'CountAcqSfr':MAX \
DEF:c='/srv/monitoring/cacti-0.8.8b/rra/replicat03_countacqsfrpre_948.rrd':'CountAcqSfrPre':AVERAGE \
DEF:d='/srv/monitoring/cacti-0.8.8b/rra/replicat03_countacqsfrpre_948.rrd':'CountAcqSfrPre':MAX \
CDEF:cdefh='' \
GPRINT:a:LAST:'%8.0lf'  \
GPRINT:a:AVERAGE:'Moyenne\:%8.0lf'  \
GPRINT:b:MAX:'Maximum\:%8.0lf\n'  \
GPRINT:c:LAST:'%8.0lf'  \
GPRINT:c:AVERAGE:'Moyenne\:%8.0lf'  \
GPRINT:d:MAX:'Maximum\:%8.0lf\n'  \
COMMENT:'--------------------------------------------------------------------------------\n'  \
LINE1:cdefh#000000FF:'[Total]'  \
GPRINT:cdefh:LAST:'%8.0lf\n'  \
COMMENT:'--------------------------------------------------------------------------------' 
RRDTool Says:
ERROR: String ends after the = sign on 'CDEF:cdefh='
One another weird thing, except that it worked OK before, is the fact that I have another graph template, aggregating the 6 Data Sources (every one of the 2 Data Sources used on each graph), with a CDEF function, and it works without a problem! :o

I spent more than a day debugging this issue without success... :cry:

Can please anyone help me?
Saruman
Posts: 3
Joined: Fri Feb 21, 2014 11:25 am

Re: "String ends after the = sign"

Post by Saruman »

No one to help? :cry:
Saruman
Posts: 3
Joined: Fri Feb 21, 2014 11:25 am

Re: "String ends after the = sign"

Post by Saruman »

Disappointed :(
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: "String ends after the = sign"

Post by phalek »

This is just wrong:

Code: Select all

CDEF:cdefh='' \
Check your graph template.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests