QuickTree - a shopping basket for graphs (0.2 released)

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie,

Did you find any time to make the changes I requested?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mcutting wrote:Howie,

Did you find any time to make the changes I requested?

Thanks
Not yet. I'm away doing more fun things for the next couple of weekends, too. Seaside music festivals :D :D
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Enjoy ! :)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie wrote:
mcutting wrote:Howie,

Did you find any time to make the changes I requested?

Thanks
Not yet. I'm away doing more fun things for the next couple of weekends, too. Seaside music festivals :D :D
Howie - just a "friendly nudge".....:)

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mcutting wrote: Howie - just a "friendly nudge".....:)

Thanks
Thank you. :-) It will be done...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie wrote:
mcutting wrote: Howie - just a "friendly nudge".....:)

Thanks
Thank you. :-) It will be done...
Thanks :)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie wrote:
mcutting wrote: Howie - just a "friendly nudge".....:)

Thanks
Thank you. :-) It will be done...
Hey Howie - any news ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mcutting wrote:
Howie wrote:
mcutting wrote: Howie - just a "friendly nudge".....:)

Thanks
Thank you. :-) It will be done...
Hey Howie - any news ?

Thanks
Yes - your request is done. I just need to finish something else, and I'll release a new version in the next few days.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Many Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

0.2 has been released.

New features:
- Option of using the Console menu, Tab or both to access QuickTree
- Delete icon image ;-)
- Option to save to existing tree as a branch, instead of creating a new tree
- Better tree naming

http://wotsit.thingy.com/haj/cacti/quic ... lugin.html

NOTE You'll need to uninstall/reinstall in the Plugin Management screen so that some additional hooks are registered, if you have 0.1 installed already. I don't know why, but the upgrade hook is apparently never called.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Howie, here's my workaround for that (taken from nectar, inspired by Larry)

Code: Select all

	$version = nectar_version ();
	$current = $version['version'];
	$old     = db_fetch_cell("SELECT version FROM plugin_config WHERE directory='nectar'");
	if ($current != $old) {

		# many more lines

		api_plugin_register_hook('nectar', 'top_header_tabs',       'nectar_show_tab',              'setup.php');
		api_plugin_register_hook('nectar', 'top_graph_header_tabs', 'nectar_show_tab',              'setup.php');
		api_plugin_register_hook('nectar', 'config_settings',       'nectar_config_settings',       'setup.php');
		api_plugin_register_hook('nectar', 'graphs_action_array',   'nectar_graphs_action_array',   'setup.php');
		api_plugin_register_hook('nectar', 'graphs_action_prepare', 'nectar_graphs_action_prepare', 'setup.php');
		api_plugin_register_hook('nectar', 'graphs_action_execute', 'nectar_graphs_action_execute', 'setup.php');

		if (api_plugin_is_enabled('nectar')) {
			# may sound ridiculous, but enables new hooks
			api_plugin_enable_hooks('nectar');
		}
		db_execute("UPDATE plugin_config SET version='$current' WHERE directory='nectar'");
		db_execute("UPDATE plugin_config SET " .
				"version='" . $version["version"] . "', " .
				"name='" . $version["longname"] . "', " .
				"author='" . $version["author"] . "', " .
				"webpage='" . $version["url"] . "' " .
				"WHERE directory='" . $version["name"] . "' ");

	}
R.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

gandalf wrote:Howie, here's my workaround for that (taken from nectar, inspired by Larry)

Code: Select all

	$version = nectar_version ();
	$current = $version['version'];
	$old     = db_fetch_cell("SELECT version FROM plugin_config WHERE directory='nectar'");
	if ($current != $old) {

		# many more lines

		api_plugin_register_hook('nectar', 'top_header_tabs',       'nectar_show_tab',              'setup.php');
		api_plugin_register_hook('nectar', 'top_graph_header_tabs', 'nectar_show_tab',              'setup.php');
		api_plugin_register_hook('nectar', 'config_settings',       'nectar_config_settings',       'setup.php');
		api_plugin_register_hook('nectar', 'graphs_action_array',   'nectar_graphs_action_array',   'setup.php');
		api_plugin_register_hook('nectar', 'graphs_action_prepare', 'nectar_graphs_action_prepare', 'setup.php');
		api_plugin_register_hook('nectar', 'graphs_action_execute', 'nectar_graphs_action_execute', 'setup.php');

		if (api_plugin_is_enabled('nectar')) {
			# may sound ridiculous, but enables new hooks
			api_plugin_enable_hooks('nectar');
		}
		db_execute("UPDATE plugin_config SET version='$current' WHERE directory='nectar'");
		db_execute("UPDATE plugin_config SET " .
				"version='" . $version["version"] . "', " .
				"name='" . $version["longname"] . "', " .
				"author='" . $version["author"] . "', " .
				"webpage='" . $version["url"] . "' " .
				"WHERE directory='" . $version["name"] . "' ");

	}
R.
What hook does that come from? config_arrays? I'm not sure what would be called every time, where you could check version like that. I agree that something like that is the right way, until the PA does the same thing. (the whole point of an API is that we're not supposed to have to know the internals like updating the version in the table... :-) )
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
brylant
Posts: 36
Joined: Mon Aug 17, 2009 9:05 am

upgrading...

Post by brylant »

Hi,

Is there any way to upgrade without removing/reinstalling (I have several users, each of them having their own quicktrees and I don't want to disturb their work)...?

Thanks,
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: upgrading...

Post by Howie »

brylant wrote:Hi,

Is there any way to upgrade without removing/reinstalling (I have several users, each of them having their own quicktrees and I don't want to disturb their work)...?

Thanks,
I'm pretty sure that uninstalling doesn't delete the tables, actually.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
grazog
Posts: 13
Joined: Fri May 02, 2008 3:11 am

Re: upgrading...

Post by grazog »

Hello,
It's really a great plugin.
I have a small issue : when i click on the tab quicktree i got redirected to the console tab.
I still have the normal quicktree display though, it's more a cosmetic problem than a real problem.
Any ideas on why it occurs ?

Cacti Version 0.8.7b
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x

Regards,
Graz
Attachments
top of the picture shows before clicking on quicktree<br />bottom is after.
top of the picture shows before clicking on quicktree
bottom is after.
before.JPG (22.97 KiB) Viewed 6992 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest