Report plugin ''ReportIt" - v0.7.5a (released 23/12/11)

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
hendry
Posts: 4
Joined: Thu Jun 14, 2007 3:58 am

Post by hendry »

Thank you very much, but I don't get it yet. What I need is a report showing the same value as in the graph 95 percentile (the red line). It looks like with the example above I cannot get this. Am I doing something wrong here? :o
Attachments
cacti.gif
cacti.gif (13.5 KiB) Viewed 7878 times
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Re: reportit

Post by browniebraun »

malicorne wrote:Another little improvement :

in cc_view_mod.php line 366 replace

Code: Select all

header("Location: ../../graph.php?local_graph_id=$local_graph_id&rra_id=all");
with this

Code: Select all

$data = get_prepared_report_data($_GET['id'],'','','view');
$report_data	= $data['report_data'];
$start = strtotime($report_data['start_date']);
$end = strtotime($report_data['end_date']);
header("Location: ../../graph.php?action=zoom&local_graph_id=$local_graph_id&rra_id=0&graph_start=$start&graph_end=$end");
And you can view the graph related to your report for the right period in the reports tab
Many thanks for your private message. I've just checked your suggestions and IMO it would make sense to integrate them into one of the next minor releases. :D

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

BB, thanks for you work on this plugin - it looks very flexible!

I think I must be missing something obvious though. I would like to make a report showing which of my interfaces have a non-zero error rate. I created a Report Template, added the Interface - Errors/Discards data template, and added a measurand called Error Rate. BUT, I don't see where I link this variable to the rra data sources (there are four in this data source). So I get a single column in my report with some value in it, but I don't know which ds names it is using to get the data. Where is the missing link?

Also, is there a way to say "all data source on this host" or "all data source (of this template)" when creating a report (like you would for graph permissions)? As it stands, I need to add a new device to the report when I add it to Cacti, don't I?

Finally, is it possible to filter the resulting report without using the CSV file? I am really only interested in lines with non-zero results. I can do this with a little perl of course...
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
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Hi Howie,

be sure that you've disabled the option called "Separate". If it's disabled you should see 4 columns in your report after you've reruned it again. If you try to add a second measurand you should also see the interim results of the first one for all available data sources (screenshot).

>As it stands, I need to add a new device to the report when I add it to Cacti, don't I?
When you are using v0.4.0 you'll have to add it manually. But if you're interested in the next version then take a look at the latest SVN release. It's the inofficial v0.5.1. One of it's new features is called "Auto-Generating RRD List".

>Finally, is it possible to filter the resulting report without using the CSV file? I am really only interested in lines with non-zero results. I can do this with a little perl of course...
At the moment it isn't possible, sorry! :cry:

Best regards
-Andreas-
Attachments
data_sources.PNG
data_sources.PNG (8.65 KiB) Viewed 7769 times
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

browniebraun wrote:be sure that you've disabled the option called "Separate". If it's disabled you should see 4 columns in your report after you've reruned it again. If you try to add a second measurand you should also see the interim results of the first one for all available data sources (screenshot).
Bingo. Thanks for the quick reply. That's just what I wanted.
browniebraun wrote: >Finally, is it possible to filter the resulting report without using the CSV file? I am really only interested in lines with non-zero results. I can do this with a little perl of course...
At the moment it isn't possible, sorry! :cry:
That's cool. It already saves so much time over manually looking through all the graphs.

One other thing though - now that I have the seperate columns, I though that I could sort by the error rate, and the top part of the report would be the info I needed. But when I click on those little arrows, the URL changes to show a sort=error_out__1, but the report doesn't sort. Is that a partial feature, or should it work?
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
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

>But when I click on those little arrows, the URL changes to show a sort=error_out__1, but the report doesn't sort. Is that a partial feature, or should it work?
You're absolutely right. It's a little bug.
Unbelievable that nobody had posted it before. :roll:
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
dejavu
Posts: 1
Joined: Wed Jun 20, 2007 9:46 am

Post by dejavu »

Dear all, i ve installed the reportit and all works fine, the only issue that im having is that i dont have any "Data Items" and i don t know how to create them
Can you please help me?

Regards
Bazou
Posts: 28
Joined: Tue Apr 10, 2007 7:45 am
Location: Brussels/Belgium

Post by Bazou »

Hello,

Is it now possible to generate Availability reports?

Is the "sorting bug" planned to be resolved soon?

Is it possible to schedule an export?

Where is cc_view_mod.php?

Code: Select all

# slocate -u
# slocate cc_view_mod.php
Nothing...:/


Thanks for your help, and many thanks for this usefull plugin :)


Gilles
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

dejavu wrote:Dear all, i ve installed the reportit and all works fine, the only issue that im having is that i dont have any "Data Items" and i don t know how to create them
Can you please help me?

Regards
Mmmh, no response from the reportit users? :(

Edit your report configuration (under Management/Reports) and click on "Create Data Items" displayed in the top right corner.
Then you should get a list of available data items.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Hi Gilles!

>Is it now possible to generate Availability reports?
No. But how do you define "Availability"?

>Is the "sorting bug" planned to be resolved soon?
Based on the number of bugfixes and little improvements I'll try to publish a minor release 0.4.2 at the end of this week.

>Is it possible to schedule an export?
Since v0.3.0!

>Where is cc_view_mod.php?
???

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
Bazou
Posts: 28
Joined: Tue Apr 10, 2007 7:45 am
Location: Brussels/Belgium

Post by Bazou »

Hi Andreas,

Thank you for your answers!

As there is an availability value in the "devices" pages, I tought there is a way to calculate this info. But i don't know how :oops:

All right for your minor release, it's perfect!

For the file I'm looking for, it's the same malicorne modify in a previous post:
malicorne wrote:Another little improvement :

in cc_view_mod.php line 366 replace

Code: Select all

header("Location: ../../graph.php?local_graph_id=$local_graph_id&rra_id=all");
with this

Code: Select all

$data = get_prepared_report_data($_GET['id'],'','','view');
$report_data	= $data['report_data'];
$start = strtotime($report_data['start_date']);
$end = strtotime($report_data['end_date']);
header("Location: ../../graph.php?action=zoom&local_graph_id=$local_graph_id&rra_id=0&graph_start=$start&graph_end=$end");
And you can view the graph related to your report for the right period in the reports tab
For the schedule point, i saw that we can schedule a report, i.e the values are refreshed in the "reports" tab. But is it possible to generate the csv file somewhere on the hosting machine automatically? If this is the case, how? :p

Thanks!

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

Post by Howie »

One other thing in reportit that confused me... I enabled the daily scheduled runs for my reports, but they don't run. In the options for the report it says "Be sure that the correct crontab is running." What is the correct crontab? :-) The README doesn't mention crontab at all...
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
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Howie wrote:One other thing in reportit that confused me... I enabled the daily scheduled runs for my reports, but they don't run. In the options for the report it says "Be sure that the correct crontab is running." What is the correct crontab? :-) The README doesn't mention crontab at all...
Hi Howie,
to my degradation I've to admit that documentation is my Achilles tendon. :( :( :(
But I started writing an admin guide last weekend.
For scheduled reporting you should take a look at these postings:

for Unix/Linux
for Windows

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

browniebraun wrote: Hi Howie,
to my degradation I've to admit that documentation is my Achilles tendon. :( :( :(
I know how you feel. I only started writing good (IMHO, anyway) documentation when I got tired of answering the same questions again and again :-)

Thanks for the pointer - that looks like what I need.
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
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You guys are not alone :( :( :P
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest