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    


Change to cacti code, to make finding graphs easier

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
tfigel



Joined: 01 May 2006
Posts: 9

PostPosted: Thu Feb 21, 2008 6:03 pm    Post subject: Change to cacti code, to make finding graphs easier Reply with quote

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

PostPosted: Thu Feb 21, 2008 7:39 pm    Post subject: Reply with quote

bugs and feature request: http://www.cacti.net/bugs.php
Back to top
rony
Developer/Forum Admin


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

PostPosted: Thu Feb 21, 2008 10:04 pm    Post subject: Reply with quote

What is the purpose?
Back to top
tfigel



Joined: 01 May 2006
Posts: 9

PostPosted: Fri Feb 22, 2008 11:00 am    Post subject: purpose Reply with quote

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



cactiscreen.JPG
 Description:
screen capture of cacti with patch
 Filesize:  140.54 KB
 Viewed:  2270 Time(s)

cactiscreen.JPG


Back to top
rony
Developer/Forum Admin


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

PostPosted: Fri Feb 22, 2008 1:31 pm    Post subject: Reply with quote

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

PostPosted: Fri Feb 22, 2008 1:58 pm    Post subject: Reply with quote

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

PostPosted: Mon Feb 25, 2008 3:49 am    Post subject: Reply with quote

i think it's better this way:

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.



html.patch
 Description:

Download
 Filename:  html.patch
 Filesize:  2.34 KB
 Downloaded:  140 Time(s)

Back to top
gandalf
Developer


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

PostPosted: Thu Feb 28, 2008 5:01 pm    Post subject: Reply with quote

I like this second approach.
Reinhard
Back to top
TheWitness
Developer


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

PostPosted: Sun Mar 02, 2008 9:24 am    Post subject: Reply with quote

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

PostPosted: Sun Mar 02, 2008 9:29 am    Post subject: Reply with quote

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

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group