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    


[INFO] How to customize the Browser title of Cacti

 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Wed Nov 01, 2006 12:39 pm    Post subject: [INFO] How to customize the Browser title of Cacti Reply with quote

I run multiple Cacti servers and view the pages under seperate tabs within Firefox and was tired of trying to remember what tab is what Cacti server

Under <cacti dir>/include

change line 95 in top_graph_header.php from <title>cacti</title>

to <title>servername cacti</cacti>

do the same for line 31 in top_header.php


Last edited by egarnel on Tue Nov 14, 2006 2:27 pm; edited 1 time in total
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Wed Nov 01, 2006 2:09 pm    Post subject: Reply with quote

I don't know why... But I want to add to this thread...

Oooga Booga!!

Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 945
Location: B/CS Texas

PostPosted: Wed Nov 01, 2006 11:25 pm    Post subject: Reply with quote

Heh, I actually have done this for my 3 servers. Since we have the monitor plugin running, and a browser opened to each one, its much easier to track which server you are looking at this way.
Back to top
noeq



Joined: 02 Nov 2006
Posts: 2
Location: Kuala Lumpur, MY

PostPosted: Thu Nov 02, 2006 4:20 am    Post subject: Reply with quote

Why dont make it can configure from config file or from web based.
Back to top
Jesper



Joined: 11 Mar 2002
Posts: 33

PostPosted: Thu Nov 02, 2006 9:39 am    Post subject: Hostname in title? Reply with quote

Would it be possible to add |host_description| to the title?
/Jesper
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Thu Nov 02, 2006 10:01 am    Post subject: Re: Hostname in title? Reply with quote

Jesper wrote:
Would it be possible to add |host_description| to the title?
/Jesper


The line is actually hard coded with the html syntax, but I'm sure the Cacti Wizards can make it possible.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sun Jan 21, 2007 9:01 am    Post subject: Reply with quote

egarnel,

Can you be very specific and add a feature request to Mantis?

TheWitness
Back to top
gandalf
Developer


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

PostPosted: Sun Jan 21, 2007 12:16 pm    Post subject: Reply with quote

Personally, I'm changing my titles as advised above. On my laptop, I have currentyl 4 different versions running. So I would prefer a configurable string as a title option. Perhaps it would be nice to have the hosts hostname as a variable, but there should be a configurable string as well
Reinhard
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sun Jan 21, 2007 7:28 pm    Post subject: Reply with quote

How bout a vote?

TheWitness
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Mon Jan 22, 2007 9:36 am    Post subject: Reply with quote

TheWitness wrote:
egarnel,

Can you be very specific and add a feature request to Mantis?

TheWitness


Done
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 945
Location: B/CS Texas

PostPosted: Sat Mar 03, 2007 10:29 pm    Post subject: Reply with quote

I have added a hook to the PA SVN that allows a plugin to change the title. Now you can do it was you wish, and even have a plugin do it dynamically based on host, etc...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group