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
Number of characters allowed in datasource name.
Moderators: Developers, Moderators
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
did you reload the queries (using the green circle) ?
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]
[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]
Set the datasource maximum title Length to 100.fmangeant wrote:Hi
did you reload the queries (using the green circle) ?
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 wrote:Set the datasource maximum title Length to 100.fmangeant wrote:Hi
did you reload the queries (using the green circle) ?
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 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
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
Who is online
Users browsing this forum: No registered users and 3 guests