Number of characters allowed in datasource name.

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

Moderators: Developers, Moderators

Post Reply
simonuk1
Posts: 23
Joined: Mon Aug 15, 2005 2:39 pm

Number of characters allowed in datasource name.

Post by simonuk1 »

is there a setting for the number of characters that is displayed or used for datasources and graphs.

I have changed the setting for cact visual - datasource maximum length but it doesnt seem to make any difference is there some setting that I am missing or is it by design on database field length size.

Cheers

Simon
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

did you reload the queries (using the green circle) ?
[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]
simonuk1
Posts: 23
Joined: Mon Aug 15, 2005 2:39 pm

Post by simonuk1 »

fmangeant wrote:Hi

did you reload the queries (using the green circle) ?
Set the datasource maximum title Length to 100.

Yep Reloaded the query with @green circle.

Chose a new datasource with a large name ( Windows service ), still truncated the name.

( scratching head ).

Any other ideas ?

Cheers

Si
simonuk1
Posts: 23
Joined: Mon Aug 15, 2005 2:39 pm

Post by simonuk1 »

simonuk1 wrote:
fmangeant wrote:Hi

did you reload the queries (using the green circle) ?
Set the datasource maximum title Length to 100.

Yep Reloaded the query with @green circle.

Chose a new datasource with a large name ( Windows service ), still truncated the name.

( scratching head ).

Any other ideas ?

Cheers

Si
I have had a look at the database field for the data_template and its set for varchar (255) the cache_name is where the description of the datasource is held and if you cedit it manually you can get more characters.
simonuk1
Posts: 23
Joined: Mon Aug 15, 2005 2:39 pm

Post by simonuk1 »

I have looked into this further and it looks like the max_title_data_source, whcih is in settings table is only used to say how many characters are displayed in the webinterface, when showing datasource. It is not used to determine how many characters are put in to the data_template_data.name_cache field.

If this field is changed manually to add more chracters these are then show up in the webinterface.

So where is the number of characters designated for the datasource name_cache field and which scripts generates this, I have found the function duplicate_datasource in the utillty.php which writes to the data_template_data.name_cache field.

The full name of the datasource is recorded as it can be seen in the datasource.php index value as the full name.

Runnning:

linux centos
cacti 0.8.6h
poller = cmd.php
simonuk1
Posts: 23
Joined: Mon Aug 15, 2005 2:39 pm

Post by simonuk1 »

Any Gurus got any ideas on this one, or can point me in the right direction for the script that first creates the name_cache field in template_data.
Cheers

Simon
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests