Strange Graphs issue

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

Moderators: Developers, Moderators

Post Reply
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Strange Graphs issue

Post by thirty2 »

Hello all,

i have issue like that >

My Interface - Traffic graph template is not working, but it is working when i have tried this:

In the Console / Templates / Graph Templates i have copied the template Interface - Traffic (bits/sec) to Interface - Traffic (bits/sec) (1).

Then i selected one of my device, went to Graph List, select the graph. Then i have changed the Graph template to Interface - Traffic (bits/sec) (1).. See picture.

Graph start working. Then i have changed it back to Interface - Traffic (bits/sec) and graphs are still working.

Do you have any idea where can be a problem? I have more then 2500 graphs with this template so it will be really hard work to change it like this way :D

Thanks
Attachments
cacti.jpg
cacti.jpg (144.38 KiB) Viewed 1392 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Strange Graphs issue

Post by BSOD2600 »

Lets start by troubleshooting why it doesn't work to begin with.
enabled graph debugging?
errors in cacti.log?
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: Strange Graphs issue

Post by thirty2 »

Debug mode says > ERROR: String ends after the = sign on 'CDEF:cdefb='
But when i changed it to Interface - Traffic (bits/sec) to Interface - Traffic (bits/sec) (1). and then back to Interface - Traffic (bits/sec) to Interface - Traffic (bits/sec) it is ok.

From logs i have this error > ERROR: Problems parsing Multi SNMP OID!

Can be the ERROR: Problems parsing Multi SNMP OID! fixed in some way?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Strange Graphs issue

Post by BSOD2600 »

two separate and unrelated errors.

post the full graph debug output before and after switching graph templates.
Are all the data sources assigned in the dropdown for a device/graph which is exhibiting this problem? They need to be.

The Problems parsing Multi SNMP OID error -- using spine or cmd.php poller? For what script/template is the error getting logged? something that's stock in Cacti or one you got from the forum?
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: Strange Graphs issue

Post by thirty2 »

Yes, data sources are assigned.

Output before:

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='X9J00248 - Traffic - 2/1' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a='/tsystems/var/www/cacti/rra/x9j00248_traffic_out_761.rrd':'traffic_in':AVERAGE \
DEF:b='/tsystems/var/www/cacti/rra/x9j00248_traffic_out_761.rrd':'traffic_out':AVERAGE \
DEF:c='/tsystems/var/www/cacti/rra/x9j00248_traffic_out_761.rrd':'traffic_out':LAST \
CDEF:cdefa='a,8,*' \
CDEF:cdefb='' \
CDEF:cdeff='b,8,*' \
CDEF:cdefh='' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefb:LAST:' Current\:'  \
GPRINT:cdefb:AVERAGE:'Average\:'  \
GPRINT:cdefb:MAX:'Maximum\:'  \
COMMENT:'Total\: 9.33 GB\n'  \
LINE1:cdeff#002A97FF:'Outbound'  \
GPRINT:cdeff:LAST:'Current\:%8.2lf%s'  \
GPRINT:cdefh:AVERAGE:'Average\:'  \
GPRINT:cdefh:MAX:'Maximum\:'  \
COMMENT:'Total\: 220.99 GB\n'  \
COMMENT:'Last Update on Mon 10 Aug 08\:30\:04 CEST 2015' 
RRDTool Says:
ERROR: String ends after the = sign on 'CDEF:cdefb='
Output after:

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='X9J00248 - Traffic - |query_ifName|' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a='/tsystems/var/www/cacti/rra/x9j00248_traffic_out_761.rrd':'traffic_in':AVERAGE \
DEF:b='/tsystems/var/www/cacti/rra/x9j00248_traffic_out_761.rrd':'traffic_out':AVERAGE \
DEF:c='/tsystems/var/www/cacti/rra/x9j00248_traffic_out_761.rrd':'traffic_out':LAST \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefa:LAST:' Current\:%8.2lf%s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf%s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf%s'  \
COMMENT:'Total\: 9.33 GB\n'  \
LINE1:cdeff#002A97FF:'Outbound'  \
GPRINT:cdeff:LAST:'Current\:%8.2lf%s'  \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf%s'  \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf%s'  \
COMMENT:'Total\: 220.99 GB\n'  \
COMMENT:'Last Update on Mon 10 Aug 08\:30\:04 CEST 2015' 
RRDTool Says:
OK
Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Strange Graphs issue

Post by BSOD2600 »

What cacti version?

Per the error, notice the two blank entries?
CDEF:cdefb=''
CDEF:cdefh=''

both of these are missing in the 'fixed' graph template. Probably have extra unassigned items in the graph template which you/an imported template modified. edit the graph template and compare against a functional template to see what the differences are...
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: Strange Graphs issue

Post by thirty2 »

Cacti v. 0.8.8c. I am using this version on few servers. Problem is only with one.

Yes, i see the missing CDEF. But when i change graph template to (1) and then back to orginal graph template the CDEF is not missing.

I also have checked both template in Console/Template/Graph Templates and they are the same.

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Strange Graphs issue

Post by BSOD2600 »

Lots of issues/security bugs fixed since 0.8.8f, I'd suggest you upgrade.

please post screenshots of the graph templates before and after you make the change, including the graph debugging output. attachments to the forum are ideal.
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: Strange Graphs issue

Post by thirty2 »

Yes, i am thinking about 0.8.8f. But when will be 0.8.8g released?

Output from debug is above.

How can i post the screenshot of graph template if it is a long code?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Strange Graphs issue

Post by BSOD2600 »

thirty2 wrote:Yes, i am thinking about 0.8.8f. But when will be 0.8.8g released?
Not sure. When it's ready and the devs have time for a release
thirty2 wrote:How can i post the screenshot of graph template if it is a long code?
Just a screenshot of the graph and the items will be fine. can copy/paste the graph debug output into a CODE block.
thirty2
Posts: 30
Joined: Wed Mar 04, 2015 9:42 am

Re: Strange Graphs issue

Post by thirty2 »

Graph template - Traffic (bit/sec) (not working)

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='X9J00270 - Traffic - 2/1' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_in':AVERAGE \
DEF:b='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_out':AVERAGE \
DEF:c='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_out':LAST \
CDEF:cdefa='a,8,*' \
CDEF:cdefb='' \
CDEF:cdeff='b,8,*' \
CDEF:cdefh='' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefb:LAST:' Current\:'  \
GPRINT:cdefb:AVERAGE:'Average\:'  \
GPRINT:cdefb:MAX:'Maximum\:'  \
COMMENT:'Total\: 1.35 GB\n'  \
LINE1:cdeff#002A97FF:'Outbound'  \
GPRINT:cdeff:LAST:'Current\:%8.2lf%s'  \
GPRINT:cdefh:AVERAGE:'Average\:'  \
GPRINT:cdefh:MAX:'Maximum\:'  \
COMMENT:'Total\: 166.44 KB\n'  \
COMMENT:'Last Update on Thu 13 Aug 09\:55\:10 CEST 2015' 
RRDTool Says:
ERROR: String ends after the = sign on 'CDEF:cdefb='
Changed to Graph template - Traffic (bit/sec) (1) < this is just copy of Graph template - Traffic (bit/sec) (working)

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='X9J00270 - Traffic - |query_ifName|' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_in':AVERAGE \
DEF:b='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_out':AVERAGE \
DEF:c='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_out':LAST \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefa:LAST:' Current\:%8.2lf%s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf%s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf%s'  \
COMMENT:'Total\: 1.35 GB\n'  \
LINE1:cdeff#002A97FF:'Outbound'  \
GPRINT:cdeff:LAST:'Current\:%8.2lf%s'  \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf%s'  \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf%s'  \
COMMENT:'Total\: 165.8 KB\n'  \
COMMENT:'Last Update on Thu 13 Aug 10\:00\:09 CEST 2015' 
RRDTool Says:
OK
Back to Traffic (bit/sec) (working)

Code: Select all

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='X9J00270 - Traffic - |query_ifName|' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_in':AVERAGE \
DEF:b='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_out':AVERAGE \
DEF:c='/tsystems/var/www/cacti/rra/x9j00270_traffic_out_808.rrd':'traffic_out':LAST \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefa:LAST:' Current\:%8.2lf%s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf%s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf%s'  \
COMMENT:'Total\: 1.35 GB\n'  \
LINE1:cdeff#002A97FF:'Outbound'  \
GPRINT:cdeff:LAST:'Current\:%8.2lf%s'  \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf%s'  \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf%s'  \
COMMENT:'Total\: 165.8 KB\n'  \
COMMENT:'Last Update on Thu 13 Aug 10\:00\:09 CEST 2015' 
RRDTool Says:
OK
Printscreens
Attachments
traffic1.JPG
traffic1.JPG (99.36 KiB) Viewed 1238 times
traffic.JPG
traffic.JPG (95.61 KiB) Viewed 1238 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests