Change to cacti code, to make finding graphs easier

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
tfigel
Posts: 9
Joined: Mon May 01, 2006 4:54 pm

Change to cacti code, to make finding graphs easier

Post by tfigel »

Hi-
I made a mod to cacti, which both myself and two other groups of system administrators have found useful

It allows in the WEB browser to search on your interface names. If you have stacked cisco switches with 100's of ports, finding yours by doing a text search is much quicker.

I just updated cacti, and needed to go find my Mod's again.
Is there a way I can get this added to the cacti code base?

it is small change in lib/html.php---> here is the DIFF
# diff html.php html.php.original
108,109d107
< <?php /*Terry*/ print $graph["title_cache"];print "<br>";print $graph["local_graph_id"];?>
<
155,156d152
< <?php /*Terry*/ print $graph["title_cache"];print "<br>";print $graph["local_graph_id"];?>
<
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

bugs and feature request: http://www.cacti.net/bugs.php
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What is the purpose?
[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]
tfigel
Posts: 9
Joined: Mon May 01, 2006 4:54 pm

purpose

Post by tfigel »

It prints (In text) the information in the title of the graph.
If you have switches with 100's of ports, you can use your browser to quickly find the host you want.

We give a description of each port on each of our switches, giving the hostname-roomnumber-wallport

From within firefox, if you hit control-f, you can then search on those.

It is a feature that is useful for people who use Cacti for Large environments, and who have descriptions on their switch ports (we use Cisco and HP)

Since the graphs are images, their titles are not searchable.

Look at the attached screen shot image
Attachments
screen capture of cacti with patch
screen capture of cacti with patch
cactiscreen.JPG (140.54 KiB) Viewed 8223 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um... I see why, but why not use the filter at the top?
Last edited by rony on Fri Feb 22, 2008 2:12 pm, edited 1 time in total.
[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]
tfigel
Posts: 9
Joined: Mon May 01, 2006 4:54 pm

Post by tfigel »

Because you want to see the other ports on the switch at the same time.


find server "A", then scan the switch and see if server "B" is where the traffic is going.....
only to spot a lot of the same Shaped traffic going to server "C"

I think it is useful on large switches of over 48 ports, and where you name your interfaces.

-Terry
shd
Cacti User
Posts: 96
Joined: Mon Apr 09, 2007 1:33 pm
Location: Nizhnevartovsk, Russia

Post by shd »

i think it's better this way:
Image
patch included.

and ability to search specific graph on page with ctrl-F is indeed very useful.
i've suggested this feature two years ago, but it's still not included. :(
so i patch it with every update.
Attachments
html.patch
(2.34 KiB) Downloaded 388 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I like this second approach.
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I agree. The second patch is more appropriate as the section to the right of the graph is reserved for action-icons.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You know, I did not see any bug relative to this in the bug database two years back ;)

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests