Reporting: Top Talkers, busiest servers - PLUGIN AVAILABLE

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Post by bradley »

cigamit,

I've made various fixes to runReports.pl - its CDEF/DEF generation wasnt
quite right all the time.

I've also made fixes to report_view to make it handle negative numbers
(The Bandings only banded positive values, so no negative values were not being displayed - this may be why you werent getting any results???)

Try download again and let me know if it fixes your issues.

Regards
--
Brad.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

This is an addon now, not a feature request, moving to addons
[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]
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

So how about a plugin version?
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Post by bradley »

Cigamit has made it into a plugin - I've asked him to post the code
but he hasnt yet - I think he's trying to resolve some other issues first.

Regards
--
Brad.
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Plugin is now available

Post by bradley »

Hi all,

I've converted this into a plugin now.

Let me know if there are any issues.

Regards
--
Brad.

[Attachement removed. Please see:

http://forums.cacti.net/viewtopic.php?p=65008#65008

]
Last edited by bradley on Tue May 02, 2006 4:21 am, edited 1 time in total.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

This is AWESOME - and easy to implement.

Just to keep the conversation (and thereby hopefully development) going, I'd like to see and hear about other reports this plugin can do - or what the limitations of this plugin currently are (only does inbound/outbound traffic reports)....

The ONLY problem I have with it is the name of the plugin being "reports" - since that is the same as another plugin I already had. I went ahead with this one since I couldn't get the other to work completely - but the most useful feature of the other one is the ability to e-mail reports... that would be nice here too!

Other ideas:
Ability to delete old reports - will they currently be there forever?
Ability to report on other things - a complete reporting system for cacti (and this is the most complete version of one I've seen so far).
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Hi,

I am testing this out on 8.6.h (cacti cd)
and I am getting the following

Code: Select all

perl runReports.pl 2
DBD::mysql::st execute failed: Table 'cacti.plugin_report_definitions' doesn't exist at runReports.pl line 620.
Could not execute SELECT
a 'show tables' in mysql reveals no such animal. I've read the README, but I seem to be missing any db modifications that may be required.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

What's the word on getting this in official plugin form (minus the extra cron job)? Cigamit, will you be posting this on cactiusers.org? This looks very interesting! Cacti is getting more and more useful every day, great job everyone! Great plugin Brad, I can't wait to try it!
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Post by bradley »

Chadd, I have already made this into a plugin (it was originally a patch).

Download the .zip file attached and follow the (now updated) readme
in one of my earlier posts. (The README is included in the .zip file too)

Egarnel, after installing the plugin, you need to configure your reports
using your web browser first - the first time this happens it will create
the tables you require.

--
Brad.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Ok, I moved the old reports plugin out of the way and renamed the new one from topten back to reports.
I now see the tab in cacti and reports settings under console. I do not have the option under reports settings to add a report, only delete & duplicate.

when I run the runReports.pl via the command line, I get the following:

Code: Select all

No report definitions found for RRA ID 1 at runReports.pl line 121.
I see the tables in mysql, but they are empty
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Post by bradley »

egarnel, The "Add" link should be at the top-right corner of the screen.

--
Brad.
Last edited by bradley on Tue Mar 21, 2006 5:52 pm, edited 1 time in total.
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Post by bradley »

knobdy, reports are already periodically deleted. Daily reports last for 2 weeks, weekly reports last for 2 months, monthly reports last for 2 years, and yearly reports last for ever.

The way the reports work, is that it reports any item that is plotted on a graph - in other words the reports are based on the data templates and graph templates that you set up, including any CDEF's etc that are used on the graphs themselves.

This means that you can report on ANY THING that you can graph, so its not just limited to internet traffic.

Using the Start/End Day/Time in the Report Settings it is possible to make the report only consider data during (for example) Monday-Friday between 9am and 6pm.

With regards to emailing the reports out, would it suffice to just send an email with a link to the actual report?

Another thing I'm considering is the ability to "track" reports over time, which would make it possible to compare one report against the previous, for example to compare internet traffic week-by-week. I dont know if I'll ever have time to do this tho. Not sure how the user-interface for this would work either.

The last idea that I had (which would actually be quite easy to implement) would be to include thumbnails on the report itself. They would need to be kept quite small tho to prevent the screen from looking overcrowded and one could always click on the link to see the graph for the time-period any way.

--
Brad.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Dohhh, it is either old age or too much crack that is getting to me. I got it working now.
It is a much appreciated add on. Thanks again for coming up with it.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
twelzy
Cacti User
Posts: 83
Joined: Wed Mar 30, 2005 6:48 pm
Location: BRAZIL/Brasilia

Post by twelzy »

bradley,

Which options must I use in Start/End Hour to get a report of a full day (00:00h to 23:59h)?!

Thanks in advance!
(...and sorry for my poor English!)
Thanks in advance!
(And sorry for my poor English...)
_______________________________________
twelzy (Enio Sanches)
bradley
Posts: 38
Joined: Fri Dec 02, 2005 7:02 am
Location: United Kingdom
Contact:

Post by bradley »

Use 00:00 and 23:00.

Its perhaps a bit misleading at the moment because it is INCLUSIVE of these hours
(It doesnt use the minutes part).

--
Brad.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests