Hi,
I was hoping someone could assist in letting me know where i could apply some regex substitution withing the code to achieve the below.
When i import interfaces from my devices they are over the Data Source label field and also too long for the RRD labels on the graphs.
They only just go over so i was hoping that i could add some code to the php function that gathers this information and substitute some text fields
GigabitEthernet => Gi
FastEthernet => Fa
Bundle-Ether => BE
Things along this line would save me some character space.
If it could be updated in the code and then work when i use the "Reapply Suggested Names" function that would save me heaps of time.
I understand changing the code will be lost at upgrade time but i'm happy to put it back in each time i update.
Thanks
[solved] Substituting Data Source and Label Text
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Mon Jul 13, 2015 1:40 am
Re: Substituting Data Source and Label Text
You've already increased the max lengths in Settings --> Visual and it's still too long to fit? Made the font smaller? probably need to refresh the poller cache and/or refresh the data query in question.ScrewDriver wrote:When i import interfaces from my devices they are over the Data Source label field and also too long for the RRD labels on the graphs.
if you really want to go down the regex route, look into the [SNMP - Interface Statistics] file /resource/snmp_queries/interface.xml Use breadcrumbs from http://docs.cacti.net/manual:088:3a_adv ... _in_action to see if you can get a rename functional (I'm not certain it'll work).
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 2
- Joined: Mon Jul 13, 2015 1:40 am
Re: Substituting Data Source and Label Text
Thankyou BSOD2600,
I well and truly overthought that, the visual settings fixed my problem.
Thanks for your quick response.
I well and truly overthought that, the visual settings fixed my problem.
Thanks for your quick response.
Who is online
Users browsing this forum: No registered users and 5 guests