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    


Aggregate, now at V0.66
Goto page 1, 2, 3 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
gandalf
Developer


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

PostPosted: Fri Feb 02, 2007 5:08 pm    Post subject: Aggregate, now at V0.66 Reply with quote

Updated code V0.66 attached to this post (see below)
Support added for PIA 2.0 and Cacti 087
This plugin is the new version of my Aggregate Plugin V0.2 (See this url for some more statements and images)

Installation:
- tar -zxf into ./plugins/aggregate folder
- change ./include/config.php to add the plugins line for "aggregate", as usual
No more need to manually import the table sql

Learn from README
Quote:
When aggregating, you will be prompted

- Title Format:
Enter a new title for the Template.

- GPRINT Prefix:
Enter an optional GPRINT Prefix, e.g. |host_hostname|-|query_ifDescr|

- Graph Type:
Select one of the following
Keep Graph Types - no changes to Graph Item Type
Make it an AREA/STACK Graph - create an AREA/STACK Graph
Make it a LINE1 Graph - convert to LINE1

- Graph Template Items
Select a given Color Template to change the color of a Graph Item
Select the "<HR>" checkbox to set a linebreak for that graph item
Select the "Skip" checkbox to suppress this Graph Item for the Aggregate

See examples attached
Reinhard

Quote:
CHANGELOG

--- 0.66 ---
Tweak: Cleanup of README
Bug fix: Support issues with PIA2.1 fixed. Compatibility with 086j is still maintained

--- 0.65 ---
Tweak: Code cleanup, mostly commented stuff removed
Feature: New "GPRINT Prefix", defaults to |host_hostname| to mimic previous behaviour
Feature: PIA 2.0/Cacti 087 support
Bug fix: Do not specify a default character set for tables. latin1 is not
universal

--- 0.64 ---
Bug fix: Escape cacti database names using strange characters (StephenKing)
Compat: Compatibility with Cacti 0.8.7

--- 0.63 ---
Bug fix: Color is associated even if not using a color template
Feature: Required tables are auto-created

--- 0.62 ---
Bug fix: Initialization issues

--- 0.61 ---
Bug fix: Error, when deleting a Color Template
Tweak: include statements use $config path variables

--- 0.6 ---
Added checkboxes for <HR>. On specific Graph Templates, it will not be possible
to compute all needed <HR>s. So we prompt you to set them manually.
bug: LINEx graphs converted to AREA/STACK will now have AREA on the first graph items

--- 0.5 ---
Managing of Color Templates
Referring to Color Templates allows for different colors for same data source

--- 0.4 ---
Add skipping of selected Graph Items

--- 0.3 ---
Add Graph Type Conversion

--- 0.2 ---
First public release, very basic functions

--- 0.1 ---
Initial release, first shown at 1.CCC.eu, the 1. European Cacti Community
Conference.



Aggregate-with_graph_Type.png
 Description:
New GPRINT Prefix
 Filesize:  22.96 KB
 Viewed:  17767 Time(s)

Aggregate-with_graph_Type.png



Result-Stack.png
 Description:
Result, when selecting to convert to AREA/STACK
 Filesize:  52.03 KB
 Viewed:  47517 Time(s)

Result-Stack.png



Result-Line.png
 Description:
Result, when selecting to convert to LINE1
 Filesize:  51.3 KB
 Viewed:  47517 Time(s)

Result-Line.png



aggregate-066.tgz
 Description:
The Code V0.66

Download
 Filename:  aggregate-066.tgz
 Filesize:  23.87 KB
 Downloaded:  1172 Time(s)



Last edited by gandalf on Sat Jun 14, 2008 2:50 pm; edited 17 times in total
Back to top
hgd26



Joined: 06 Oct 2006
Posts: 25

PostPosted: Fri Feb 02, 2007 6:38 pm    Post subject: Re: Aggregate V0.3 Reply with quote

Great plugins! But with little bugs in code ...
Back to top
gandalf
Developer


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

PostPosted: Sat Feb 03, 2007 4:22 am    Post subject: Reply with quote

Please share your knowledge with me and post those errors (or better: fixes, if you were able to solve them). Please bear in mind, that my development environment still contains fragments of "new approaches". This may cause problems with incomplete packaging.
Reinhard
Back to top
dagonet
Cacti User


Joined: 29 Oct 2005
Posts: 76
Location: Wuerzburg

PostPosted: Sat Feb 03, 2007 3:01 pm    Post subject: Reply with quote

Hello Gandalf,
there is a patch in the package. Do I have to apply the patch? It's not mentioned anywhere.
And btw. there is no entry in the action menu on the Graph Management page. I can not even activate it under realm permissions.

regards
Dagonet
Back to top
gandalf
Developer


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

PostPosted: Sat Feb 03, 2007 3:06 pm    Post subject: Reply with quote

The patch is needed for plugin arch v1.0 only. Arch V1.1 includes the needed hooks (Thanks to cigamit). So if you're still running the V1.0, apply the patch.
Realms are currently not needed. But without the correct hooks (be it via patch or via Arch V1.1) you won't see the new Action
Reinhard

PS: Find the other picture in the V0.2 post
Back to top
dagonet
Cacti User


Joined: 29 Oct 2005
Posts: 76
Location: Wuerzburg

PostPosted: Sat Feb 03, 2007 4:52 pm    Post subject: Reply with quote

Ok, I've checked my installation. It is plugin archiceture v1.1. But no menu entry in the graph management section:(
Is there a possibility to debug a plugin somehow?

Dagonet
Back to top
dagonet
Cacti User


Joined: 29 Oct 2005
Posts: 76
Location: Wuerzburg

PostPosted: Sat Feb 03, 2007 5:05 pm    Post subject: Reply with quote

dagonet wrote:
Ok, I've checked my installation. It is plugin archiceture v1.1. But no menu entry in the graph management section:(
Is there a possibility to debug a plugin somehow?

Dagonet

Solved. One might add the necessary line to the config.php...

Dagonet
Back to top
gandalf
Developer


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

PostPosted: Sun Feb 04, 2007 6:14 am    Post subject: Reply with quote

dagonet wrote:
Solved. One might add the necessary line to the config.php...

Dagonet
Ok, this is needed for ALL plugins. So I forgot to mention this explicitely. Will extend my post
Reinhard
Back to top
gandalf
Developer


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

PostPosted: Sun Feb 04, 2007 6:23 am    Post subject: Reply with quote

dagonet wrote:

Is there a possibility to debug a plugin somehow?

Dagonet
Yes. I've left lots of debugging stuff in the code. It's always a three-liner, calling the cacti_log function. Un-comment those statements and find results in the cacti.log. It works for DEBUG=LOW (to prevent lots of messages when running on DEBUG level). You may want to
Code:
tail -f ./log/cacti.log
on a second xterm session while performing the tests.
If there's anyone out there, who is able to tell me about web-debugging running Eclipse with PHP IDE, I really would be glad.
Reinhard
Back to top
TheWitness
Developer


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

PostPosted: Sun Feb 04, 2007 10:08 am    Post subject: Reply with quote

Reinhard,

Can you give me a few screen shot's of the Eclipse PHP IDE.

Larry
Back to top
salami



Joined: 06 Feb 2007
Posts: 2

PostPosted: Tue Feb 06, 2007 2:48 am    Post subject: Reply with quote

Hi everyone

I'm pretty new to cacti and the aggregate plugin, but so far I really love it!

I managed to create a graph that shows the aggregated traffic of both my routers in one graph. I there a way to have the aggregated "Total In" and "Total Out" and not the separated values?

thanks a lot!
Back to top
gandalf
Developer


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

PostPosted: Tue Feb 06, 2007 7:38 am    Post subject: Reply with quote

Yes, but that requires manual post-processing, see http://www.cacti.net/downloads/docs/html/variables.html#GRAPH_VARIABLES
Reinhard
Back to top
salami



Joined: 06 Feb 2007
Posts: 2

PostPosted: Tue Feb 06, 2007 7:56 am    Post subject: Reply with quote

awesome! works like a charm, thanks a lot!
Back to top
gandalf
Developer


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

PostPosted: Fri Feb 09, 2007 11:17 am    Post subject: Reply with quote

New ideas. Please comment and prioritize

- Need for filtering Graph Items /Data Sources
You will not always want to include all Graph Items available. You may want to omit e.g. certain Comments are even a complete Data Source.
I'm planning to promt the user with a Graph Items List made up from the first Graph (or the Graph Template of the first Graph which should produce quite teh same results). Each Graph Items line of this list would show a "Skip this Item" checkbox. When checked, this Graph Item will be skipped for all graphs to be aggregated

- Need for Colorization
Graph Items will have same color in most cases. Ugly. I'm planning to allow for creating "Color Templates". They simply will be an ordered list of color tags, e.g. from light red to deep red (This code is already available).
Then, I'd like to associate each Graph Item of the above list with any single Color Template. This should yield the following result:
Graph Item of 1st Graph = 1st Color of the Color Template
Graph Item of 2nd Graph = 2nd Color of the Color Template
...
This part is still missing and would take some time for me as an unexperienced php coder.

Another option would be:
Increment color_id from Graph Item to Graph Item. But this may produce ugly colorization. I already coded this some weeks ago, but was not satisfied


I'd like to hear your comments

Reinhard
Back to top
tdjb



Joined: 16 Oct 2006
Posts: 18

PostPosted: Fri Feb 09, 2007 12:05 pm    Post subject: Reply with quote

First off, thanks gandalf, this plugin is very nice and something I was looking for.

Is there any chance that you might have plans to add in a sort of "time span" feature? I'm trying to compare one graph/data source over two different time spans.
So for example I could create a comparison of the data from graph one for the first week of January VS. the data from graph one for the first week of February.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page 1, 2, 3 ... 19, 20, 21  Next
Page 1 of 21

 



Powered by phpBB © 2001, 2005 phpBB Group