Reinhard--- 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
Aggregate, now at V0.66
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
New Code posted to first thread entry: V0.65
Greatest plugin ever. Reinhard, you're a god
The only thing I wish is the ability to easily total up the data sources, I have traffic graphs with the in/out of four interfaces, it would be great to have the graph display the total in and total out. Seems to only display the highest of any one.
I tried using the stack option but that doesn't seem to represent a total either.
The only thing I wish is the ability to easily total up the data sources, I have traffic graphs with the in/out of four interfaces, it would be great to have the graph display the total in and total out. Seems to only display the highest of any one.
I tried using the stack option but that doesn't seem to represent a total either.
Last edited by ben_c on Tue Apr 08, 2008 3:22 am, edited 2 times in total.
There's so much potential for use with this plugin, i've really been trying to get my head around it.
I've got it stacking links correctly (colour coded for troubleshooting purposes at the moment - Attached). This is just doing traffic out of two interfaces currently.
How can I then print a legend item that displays the total of all? I've been toying with a GPRINT using a CDEF to total all datasources, but that doesn't seem to be the way to do it. Seems I need to create a new CDEF that will total all data sources and turn bytes to bits in one go.
Any suggestions appreciated!
I've got it stacking links correctly (colour coded for troubleshooting purposes at the moment - Attached). This is just doing traffic out of two interfaces currently.
How can I then print a legend item that displays the total of all? I've been toying with a GPRINT using a CDEF to total all datasources, but that doesn't seem to be the way to do it. Seems I need to create a new CDEF that will total all data sources and turn bytes to bits in one go.
Any suggestions appreciated!
- Attachments
-
- graph_image.php.png (41.28 KiB) Viewed 4600 times
Yup but you dont want to skip the actual ones you want to aggregate do you?
So if I select 20 data datasources, skip the parts I don't need and aggregate, it still adds a field in for each under datasource that reads usually (traffic_out):device_name for instance. That in turn, adds 20 ledgend items for those names. Which you may not want, so I have to go in to each 20 items individually and blank out the title field box to remove it's ledgend text.
So if I select 20 data datasources, skip the parts I don't need and aggregate, it still adds a field in for each under datasource that reads usually (traffic_out):device_name for instance. That in turn, adds 20 ledgend items for those names. Which you may not want, so I have to go in to each 20 items individually and blank out the title field box to remove it's ledgend text.
Should this plugin definitely work with a fresh install in Cacti 0.8.7b/PIA 2.1? I have just installed with these versions and am unable to see any mention of "Create Aggregate Graphs" under Graph Management. I haven't installed any plugins before so this was my first PIA install as well.. would have preferred to use 2.0 since there seems to be more success reports using that, but I am unable to find previous versions of PIA.
The PIA install was relatively smooth, but there were some errors when I clicked install for the aggregate plugin in the console:
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
After that, it showed up as installed anyway. I have added the $plugins[] = 'aggregate'; line to include/global.php, and can see the "Color Templates" entry on the menu. Just nothing about creating the aggregate graphs.
The PIA install was relatively smooth, but there were some errors when I clicked install for the aggregate plugin in the console:
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
After that, it showed up as installed anyway. I have added the $plugins[] = 'aggregate'; line to include/global.php, and can see the "Color Templates" entry on the menu. Just nothing about creating the aggregate graphs.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I suppose I know what your aiming at, now. That is, you want to delete the complete legend line. Currently, it's only possible to skip a GPRINT related legend entry, not an AREA/STACK/LINE related legend entry.ben_c wrote:Yup but you dont want to skip the actual ones you want to aggregate do you?
So if I select 20 data datasources, skip the parts I don't need and aggregate, it still adds a field in for each under datasource that reads usually (traffic_out):device_name for instance. That in turn, adds 20 ledgend items for those names. Which you may not want, so I have to go in to each 20 items individually and blank out the title field box to remove it's ledgend text.
If you provide me with an idea how to build up the GUI for such a feature, I will consider implementing it
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Up to now, I only verified it against PIA2.0. I lately patched my PIA to support UNIQUE keys, so I may have mixed it all up. Let me have a look this weekendsfinc wrote:Should this plugin definitely work with a fresh install in Cacti 0.8.7b/PIA 2.1? I have just installed with these versions and am unable to see any mention of "Create Aggregate Graphs" under Graph Management. I haven't installed any plugins before so this was my first PIA install as well.. would have preferred to use 2.0 since there seems to be more success reports using that, but I am unable to find previous versions of PIA.
The PIA install was relatively smooth, but there were some errors when I clicked install for the aggregate plugin in the console:
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
After that, it showed up as installed anyway. I have added the $plugins[] = 'aggregate'; line to include/global.php, and can see the "Color Templates" entry on the menu. Just nothing about creating the aggregate graphs.
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please add aggregate to the list of plugins at include/global.php and retrysfinc wrote:Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Notice: Undefined index: keys in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Warning: Invalid argument supplied for foreach() in /data/www/cacti-0.8.7b/lib/plugins.php on line 128
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests