Change to cacti code, to make finding graphs easier
Moderators: Developers, Moderators
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"];?>
<
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"];?>
<
bugs and feature request: http://www.cacti.net/bugs.php
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
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
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
- cactiscreen.JPG (140.54 KiB) Viewed 8219 times
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
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
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
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.
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 387 times
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I agree. The second patch is more appropriate as the section to the right of the graph is reserved for action-icons.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You know, I did not see any bug relative to this in the bug database two years back
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest