Favicon.ico for Cacti Installations

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
streaker69
Cacti Pro User
Posts: 711
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Favicon.ico for Cacti Installations

#1 Post by streaker69 » Thu Dec 07, 2006 9:44 am

Just to make your installation a little more custom I converted the Cacti cactus from the main cacti website into a favicon.ico and figured out what needed to be done to have cacti serve it up. I'm not exactly sure if all the steps below are actually needed since I'm not really that well versed in *nix, but it's what I had to do to make it work under the CactiEZ installation.

Step 1: Download and unzip the Attached favicon.zip file and put the favicon.ico in the root of your cacti installation. For me that's: /var/www/html

Step 2: chown -R apache:apache favicon.ico

Step 3: chmod 644 favicon.ico

Step 4: Edit your httpd.conf file with this line: AddType image/x-icon .ico

Step 5: Edit the top_header.php and the top_graph_header.php right below the <head> tag with the following line:

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

This is now working for me under all my plugins, except for Mactrack, I don't know why that one isn't working.
Attachments
Cacti-Icon.gif
Cacti-Icon.gif (3.24 KiB) Viewed 21861 times
favicon.zip
(2.25 KiB) Downloaded 1916 times
Last edited by streaker69 on Thu Dec 07, 2006 11:10 am, edited 5 times in total.

User avatar
rony
Developer/Forum Admin
Posts: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#2 Post by rony » Thu Dec 07, 2006 9:49 am

Step 3 is not needed.... And not suggest making anything executable that does not need to be executable.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]

User avatar
streaker69
Cacti Pro User
Posts: 711
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

#3 Post by streaker69 » Thu Dec 07, 2006 9:56 am

rony wrote:Step 3 is not needed.... And not suggest making anything executable that does not need to be executable.
I was following instructions from another site on how to make this work. They suggested it.

Maybe you can help out. I edited my original post because I found that the top_header.php wasn't working across all the tabs, only the console. Can you think of what needs to be done to make it work across all the tabs?

User avatar
rony
Developer/Forum Admin
Posts: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#4 Post by rony » Thu Dec 07, 2006 10:03 am

I would change step 3 to "chmod 644 favicon.ico".

Also, you need to edit top_header.php and top_graph_header.php.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]

User avatar
streaker69
Cacti Pro User
Posts: 711
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

#5 Post by streaker69 » Thu Dec 07, 2006 10:07 am

rony wrote:I would change step 3 to "chmod 644 favicon.ico".

Also, you need to edit top_header.php and top_graph_header.php.
I did it to both, and I started to get errors.

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/include/top_graph_header.php:2) in /var/www/html/include/top_graph_header.php on line 56
Plus, it then only works when you're on the console tab. Any other tabs, the icon goes away. So there must be something else that needs to be done.

User avatar
streaker69
Cacti Pro User
Posts: 711
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

#6 Post by streaker69 » Thu Dec 07, 2006 10:52 am

I think I've resolved most of the issues. Revised instructions posted in the original post.

User avatar
streaker69
Cacti Pro User
Posts: 711
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

#7 Post by streaker69 » Thu Dec 07, 2006 11:01 am

If you're using MacTrack, you'll need to edit the top_mactrack_header.php file located in /plugins/macktrack/include right below the <head> tag with this line:

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

bdiez
Posts: 14
Joined: Thu Sep 08, 2005 8:09 am
Location: Spain

Cacti icon - Minor changes

#8 Post by bdiez » Sun Feb 11, 2007 3:25 pm

Hello.

I just performed some minor art to add transparency to the cacti icon borders. Tested under Apache on MS, IIS on MS and Apache on Ubuntu linux, works ok for me using Firefox or IExplorer browsers.

I suggest you to also add the line to the "auth_login.php" file in the main cacti directory (always inside the <head> section).

P.S. My icon is named "cacti.ico" so rename in to "favicon.ico" if preferred. Favicon.ico is a generic name for the "main icon" of a web site, so using it may make unnecessary to edit the auth_login.php file.


Regards,
Bernardo.
Attachments
cacti-icon.zip
(531 Bytes) Downloaded 1049 times

User avatar
N3NCY
Cacti User
Posts: 242
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

#9 Post by N3NCY » Sun Nov 04, 2007 3:01 pm

I see Fav Icon is now built in to 0.8.7
Nice work everyone!
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)

Daniell
Posts: 4
Joined: Thu Sep 08, 2011 4:18 am
Contact:

Re: Favicon.ico for Cacti Installations

#10 Post by Daniell » Thu Sep 08, 2011 4:27 am

Nice work! Are you knowing probably how to create and install a transparent favicon.ico?

Post Reply