Not a valid vname

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

Moderators: Developers, Moderators

Post Reply
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Not a valid vname

Post by geoffg »

I have a bunch of interfaces on switches, using the generic snmp interface template and virtually all of them have this message since the 1.0 update, anyone have any idea how to fix this?
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Not a valid vname

Post by Osiris »

Rrdtool 1.3+ is required, not optional.
Before history, there was a paradise, now dust.
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Re: Not a valid vname

Post by geoffg »

i'm using 1.5, I think, which is default in Ubuntu 16.04
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Not a valid vname

Post by Osiris »

What Cacti version. If not 1.1.3, please upgrade. It's a simple thing.
Before history, there was a paradise, now dust.
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Re: Not a valid vname

Post by geoffg »

I'll try 1.1.3, but it's been happening since 1.0, through all the updates. I'll report back shortly.
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Re: Not a valid vname

Post by geoffg »

geoffg wrote:I'll try 1.1.3, but it's been happening since 1.0, through all the updates. I'll report back shortly.
Ok, I have 1.1.3 and I am still getting these errors. They didnt seem to appear in any version prior to 1.0
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Not a valid vname

Post by Osiris »

Post the debug information on the Graph page. Need the rrdtool syntax.
Before history, there was a paradise, now dust.
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Re: Not a valid vname

Post by geoffg »

Code: Select all

RRDtool Graph Syntax
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-60' \
--pango-markup  \
--title='Fortinet - Traffic - CP-DMZ1' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--tabwidth '30' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:'Ariel' \
--font AXIS:8:'Ariel' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Ariel' \
--font WATERMARK:6:'Ariel' \
--slope-mode \
--watermark 'Copyright (C) 2004-2017 The Cacti Group' \
DEF:a='/usr/share/cacti/site/rra/28/2283.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/site/rra/28/2283.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefj='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound  '  \
AREA:cdefa#0000FF19:''  \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s'  \
LINE1:cdefa#0000FFFF:'Inbound\: '  \
GPRINT:a:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n'  \
GPRINT:a:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:a:MAX:'Maximum\:%8.2lf %s'  \
LINE1:cdefj#002A97FF:'Outbound '  \
COMMENT:'Total IN\: 647.11 MB\n'  \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefj:AVERAGE:'Average\:%8.2lf %s'  \
AREA:cdefj#00BD2719:''  \
GPRINT:cdefj:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:cdefj#00BD27FF:'Outbound\:'  \
GPRINT:b:LAST:'Current\:%8.2lf %s'  \
VRULE:00#9FA4EEFF:'' \
GPRINT::AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:b:MAX:'Maximum\:%8.2lf %s'  \
COMMENT:'Total OUT\: 647.11 MB'  \
AREA:cdefa#002A9719:''  \
LINE1:cdefa#00FF00FF:''  \
AREA:cdefa#00FF0033:'' 
RRDTool Says:
ERROR: undefined vname 
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Not a valid vname

Post by Osiris »

8 lines up from the bottom, the AVG GPRINT lacks a data source.
Before history, there was a paradise, now dust.
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Re: Not a valid vname

Post by geoffg »

This one?
GPRINT::AVERAGE:'Average\:%8.2lf %s' \

if so, how can you tell?

I also have hundreds of these in just normal snmp interface templates..
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Not a valid vname

Post by Osiris »

:: is not valid. There needs to be a vname between them.
Before history, there was a paradise, now dust.
geoffg
Posts: 32
Joined: Sun Jun 30, 2013 11:03 pm

Re: Not a valid vname

Post by geoffg »

ahhh thanks.. awesome. Found the solution was I had ticked the box which doesnt use a unique name for each graph in the template
braniak
Posts: 6
Joined: Wed Dec 02, 2020 1:03 am

Re: Not a valid vname

Post by braniak »

Osiris wrote: Tue May 09, 2017 10:05 pm :: is not valid. There needs to be a vname between them.
After so many years, this post is gold.
Thanks for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests