|
|
| Author |
Message |
tfigel
Joined: 01 May 2006 Posts: 9
|
Posted: Thu Feb 21, 2008 6:03 pm Post subject: Change to cacti code, to make finding graphs easier |
|
|
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"];?>
<
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6791 Location: WA, USA
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Thu Feb 21, 2008 10:04 pm Post subject: |
|
|
| What is the purpose?
|
|
| Back to top |
|
 |
tfigel
Joined: 01 May 2006 Posts: 9
|
Posted: Fri Feb 22, 2008 11:00 am Post subject: purpose |
|
|
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
| Description: |
| screen capture of cacti with patch |
|
| Filesize: |
140.54 KB |
| Viewed: |
2270 Time(s) |

|
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Fri Feb 22, 2008 1:31 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
tfigel
Joined: 01 May 2006 Posts: 9
|
Posted: Fri Feb 22, 2008 1:58 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
shd
Joined: 09 Apr 2007 Posts: 3
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Thu Feb 28, 2008 5:01 pm Post subject: |
|
|
I like this second approach.
Reinhard
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9697 Location: MI, USA
|
Posted: Sun Mar 02, 2008 9:24 am Post subject: |
|
|
I agree. The second patch is more appropriate as the section to the right of the graph is reserved for action-icons.
TheWitness
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9697 Location: MI, USA
|
Posted: Sun Mar 02, 2008 9:29 am Post subject: |
|
|
You know, I did not see any bug relative to this in the bug database two years back
TheWitness
|
|
| Back to top |
|
 |
|