Issue with Graph for BGP

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
jarhead
Cacti User
Posts: 59
Joined: Tue Nov 22, 2005 2:24 pm
Location: Portland, Or

Issue with Graph for BGP

Post by jarhead »

I am in the process of moving cacti from one server to another, I have imported the BGP templates from my old server and the graphs are not being created for some reason. When I go into the graph managemtent portion and turn on the debug for the graph this is my output

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pdxentrte01 - BGP - Peer:10.150.1.51 AS19083" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--y-grid=1 \
--units-exponent=1 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/monitoring/cacti/rra/pdxentrte01_bgppeerinupdates_317.rrd":bgpPeerInUpdates:AVERAGE \
DEF:b="/usr/local/monitoring/cacti/rra/pdxentrte01_bgppeerinupdates_317.rrd":bgpPeerOutUpdates:AVERAGE \
CDEF:cdefa=a,300,* \
CDEF:cdefh=b,300,* \
LINE2:cdefa#3D168B:"In updates" \
GPRINT:cdefa:LAST:" Current\:%8.0lf" \
GPRINT:cdefa:LAST:"Current\:%8.0lf" \
GPRINT:cdefa:MIN:"Min\:%8.0lf" \
GPRINT:cdefa:MIN:"Min\:%8.0lf" \
GPRINT:cdefa:MAX:"Max\:%8.0lf\n" \
GPRINT:cdefa:MAX:"Max\:%8.0lf\n" \
LINE2:cdefh#7EE600:"Out updates" \
GPRINT:cdefh:LAST:"Current\:%8.0lf" \
GPRINT:cdefh:LAST:"Current\:%8.0lf" \
GPRINT:cdefh:MIN:"Min\:%8.0lf" \
GPRINT:cdefh:MIN:"Min\:%8.0lf" \
GPRINT:cdefh:MAX:"Max\:%8.0lf\n" \
GPRINT:cdefh:MAX:"Max\:%8.0lf\n"
RRDTool Says:

ERROR: invalid y-grid format



as you can see there is a y-grid on this one. On the server where this is working there is no y-grid line no the graph properties. How can I get this out of there?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Recently, there was a fix on an "y-grid" bug. Please consider updating
Reinhard
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

More accurately, you have a numeric value in the Unit Grid Value within your Graph Template. You need to remove it. Things will improve then.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tarpat1
Posts: 17
Joined: Sun Jan 01, 2006 11:39 pm

Post by tarpat1 »

I had this same problem after upgrading from .h to .j. I removed the value from the Unit Grid Value in the Graph Template and that took care of it for me. Thanks!
osiris123d
Cacti User
Posts: 59
Joined: Fri Mar 23, 2007 3:38 pm

Post by osiris123d »

I am having the same issue. When I put a numeric value in "Unit Grid Value" and click save my graphs disappear and when I debug it says

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DC-6509-WD-1 - Routing Memory Used" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--y-grid=100000 \
--vertical-label="bytes per minute" \
--slope-mode \
DEF:a="/usr/share/cacti/rra/dc6509wd1_routing_memory_used_12220.rrd":routing_memory_used:AVERAGE \
AREA:a#007283:"Routing Memory Used\:" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
GPRINT:a:MIN:"Min\:%8.0lf\n"
RRDTool Says:

ERROR: invalid y-grid format

I have the lasted version of Cacti 0.8.6j
and have installed all the patches.
ping_php_version4_snmpgetnext.patch
tree_console_missing_hosts.patch
thumbnail_graphs_not_working.patch
graph_debug_lockup_fix.patch
snmpwalk_fix.patch

what patch fixes the "y-grid" bug??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It's not a patch but a misconfigred setting in the template itself as said by TheWitnes
Reinhard
osiris123d
Cacti User
Posts: 59
Joined: Fri Mar 23, 2007 3:38 pm

Post by osiris123d »

So what else can you put in that field besides
none

??

When I read the manpage for rrdgraph it isn't very informative.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

TheWitness wrote:More accurately, you have a numeric value in the Unit Grid Value within your Graph Template. You need to remove it. Things will improve then.

TheWitness
Please remove the number for Unit Grid Value of the associated Graph Template as given by Larry. Then retry
Reinhard
osiris123d
Cacti User
Posts: 59
Joined: Fri Mar 23, 2007 3:38 pm

Post by osiris123d »

I understand that when I put in a value other then "none" in the unit grid it jacks up the graph to where you can't see it, but I am wanting the graph to have some Y values so that I can have a grasp of what I am looking at.

The Y-Grid litarally doesn't have any values at all.
Attachments
untitled.jpg
untitled.jpg (18.68 KiB) Viewed 2613 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest