datasource length limited to 19 characters?

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

Moderators: Developers, Moderators

Post Reply
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

datasource length limited to 19 characters?

Post by Badbeeker »

We are trying to collect some dhcp stat info. Some of the data source names that we are trying to use are longer than 19 characters. Is there a reason why the data source name is limited to this many characters?

I'm trying to edit a data template which has 9 data source items attached to it. I'm not able to enter a data source item name longer than 19 characters.

Could I get away with changing the data_template_rrd.data_source_name field from 19 to 30? I think I would have to edit the php file to allow more than 19 characters as well. Is this a valid fix or would there be more work involved?

I'm using Cacti 8.6h btw.
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

Post by Badbeeker »

Does anyone else have this problem? or do people just not use datasource longer than 19 characters?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Try "Settings->Visual" Data Query Field length
Reinhard
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

Post by Badbeeker »

it's set to 100.. This is under Data Template -> Data Template Items.. The Name Field under that.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

But I meant this one, but I'm not sure if this fits your needs

Reinhard
Attachments
Bildschirmfoto.png
Bildschirmfoto.png (18.95 KiB) Viewed 3009 times
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

Post by Badbeeker »

Sorry for the late reply.. work has been busy. The value that I have for that picture is 100 Gandalf. But it doesn't seem to have any effect on the field that I need increased in length. I have circled the field I need increased in the included picture.

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

Post by gandalf »

Now I understand, but I haven't got any clue (except for checking the source)
Reinhard
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

Post by Badbeeker »

ya didn't want to edit the php file, but It also seems like the database field that holds that value is also limited to 19 characters.. just wanting to know if there is any reason. Also, if I change these two values to a larger length, would that screw anything else up.. guess it's best not to do anything and work around it.

Oh well.

Thanks for the help =)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

But I'd like to encourage you to post a "Feature Request"
Reinhard
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

Post by Badbeeker »

will do =)
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

I'm afraid this is a RRDtool limitation :( :

Code: Select all

DS:ds-name:DST:dst arguments
               ds-name is the name you will use to reference this particular
               data source from an RRD. A ds-name must be 1 to 19 characters
               long in the characters [a-zA-Z0-9_].
This is from the rrdcreate manpage (1.2.18 version).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Badbeeker
Posts: 19
Joined: Thu May 18, 2006 11:33 am

Post by Badbeeker »

Thanks for the find there fmangeant :) too bad it's limited to 19.. oh well. Thanks for the responses.
Post Reply

Who is online

Users browsing this forum: nocmedia and 3 guests