Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Displaying the Alias (IF-MIB) data in the Graph Title

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
steviec_uk



Joined: 10 Oct 2008
Posts: 3

PostPosted: Fri Oct 10, 2008 7:42 am    Post subject: Displaying the Alias (IF-MIB) data in the Graph Title Reply with quote

Hi All

Sorry if this post has already appeared elsewhere.

Basically I using Cacti to graph a large amount of devices including Cisco switches. Each port on the switch is labeled indicating which customer it is connected too. When you create the "Create Graphs for the host" the port title is shown in the Alias (IF-MIB) column, I am looking for a easy way for this information to be displayed in the Graph title without changing each graphs template.

At the moment I have

switch1.cust - Traffic - Gi0/22

However I would like something like

switch1.cust - Traffic - Gi0/22 - Joe Bloggs

Joes Bloggs being taken from the Alias (IF-MIB) information for port Gi0/22 on switch1

Thank you for your help

Kind Regards

Steve
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12186
Location: Muenster, Germany

PostPosted: Sat Oct 11, 2008 1:47 am    Post subject: Reply with quote

Indeed, this was answered already on a quite regular basis, but is somewhat hidden within Cacti
To change your title selection preferences, please visit Data Queries. Select the Traffic one. Then select the Graph Template you're using to find the "Suggested ..." section with different rules for creating titles and names.
Now, please change the sequence to make the best fitting one the topmost entry. This will apply to ALL subsequently generated graphs of this kind.

To apply this change, visit Graph Management and select all Graphs that you want to change. Then select "Reapply Suggested Names"

Reinhard
Back to top
steviec_uk



Joined: 10 Oct 2008
Posts: 3

PostPosted: Sat Oct 11, 2008 4:37 am    Post subject: Reply with quote

Top job! Thanks, it worked a treat.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group