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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
istein001
Cacti User
Posts: 54
Joined: Fri Feb 22, 2008 4:44 pm
Location: Houston

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by istein001 »

browniebraun wrote:
kerem wrote:I've generated the debug file.

Thanks.
test_kerem.txt
I had changed that part for 0.7.4 months ago. Please try out these patches:
http://svn.cacti.net/viewvc/reportit/trunk/lib_int/funct_runtime.php?root=Plugins&r1=1352&r2=1377&view=patch
http://svn.cacti.net/viewvc/reportit/trunk/runtime.php?r1=1377&r2=1376&pathrev=1377&root=Plugins&view=patch

Regards
-Andi
This fixed the interface speed for me, applying both patches. previously i was getting the data template even though *per data source* was selected.

Thanks!
catchvjay
Posts: 22
Joined: Tue May 17, 2011 11:39 am

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by catchvjay »

Gr8 plugin. Finally i have learnt generating template for reports. I have few questions.
Is there way available for me to generate monthly report which gives me memry and cpu utilization of every day ???
Do you have better templates for Memory & CPU Utilization?

Regards,
Vijay
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by sukanta »

Facing attached error in new Cacti 0.8.7h
reportit.png
reportit.png (44.83 KiB) Viewed 4784 times
rniesen
Posts: 3
Joined: Wed Oct 05, 2011 2:37 pm

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by rniesen »

sukanta wrote:Facing attached error in new Cacti 0.8.7h
reportit.png
I've the same problem.
How can I resolve it?

Same verison of cacti to.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by TheWitness »

Is this using IE9? Please confirm..
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?
rniesen
Posts: 3
Joined: Wed Oct 05, 2011 2:37 pm

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by rniesen »

TheWitness wrote:Is this using IE9? Please confirm..
Nope it's also with FireFox 7.0.1
Attachments
reportit.JPG
reportit.JPG (183.13 KiB) Viewed 4766 times
rniesen
Posts: 3
Joined: Wed Oct 05, 2011 2:37 pm

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by rniesen »

rniesen wrote:
TheWitness wrote:Is this using IE9? Please confirm..
Nope it's also with FireFox 7.0.1
Maybe someone can help me?

I've debuged the problem.
When press on create in the screen attached, the input will be validated by preg_macth.

Preg_macht can't cope the // because de regexpres $^[//$a-zA-Z0-9%��-]+$ will be encapsulate by /.
So preg_macht get = /$^[//$a-zA-Z0-9%��-]+$/ and there for you can see in the cacti log that on line 224 in cacti/lib/functions.php preg_match Unknow modifier '/'.

How can we let this work?
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by browniebraun »

rniesen wrote:
rniesen wrote:
TheWitness wrote:Is this using IE9? Please confirm..
Nope it's also with FireFox 7.0.1
Maybe someone can help me?

I've debuged the problem.
When press on create in the screen attached, the input will be validated by preg_macth.

Preg_macht can't cope the // because de regexpres $^[//$a-zA-Z0-9%��-]+$ will be encapsulate by /.
So preg_macht get = /$^[//$a-zA-Z0-9%��-]+$/ and there for you can see in the cacti log that on line 224 in cacti/lib/functions.php preg_match Unknow modifier '/'.

How can we let this work?
Please try "^[\/\\\$a ..." instead of "^[//$a".
Regards
-Andi
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
henrys
Posts: 7
Joined: Wed Dec 09, 2009 1:18 pm

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by henrys »

I've tried searching but it's quite difficult on PHPbb (can't search individual threads). Is there a way to report on graphs other than interface traffic? I have some VPN tunnels that I want to get reports on but I can only seem to pick the snmp traffic data templates.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by TheWitness »

Use google:

Code: Select all

<some search phrase> site:forums.cacti.net
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?
henrys
Posts: 7
Joined: Wed Dec 09, 2009 1:18 pm

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by henrys »

delete
lorenplak
Posts: 41
Joined: Wed Feb 23, 2011 11:53 am

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by lorenplak »

Hy,

where can i find the complete last version of this plugin Reportit ?
I can't have acces to SVN with a svn client tool.

Thanks,
Laurent
Cacti 0.8.7g - Windows - poller type : spine
php 5.2.14 - MySQL 5.1.47
-charles-
Posts: 5
Joined: Wed Aug 26, 2009 8:26 am

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by -charles- »

Hi!
I don't know if there was this problem mentioned previously, there is too much pages to read it all, but I think I found bug in this plugin.
It's related to maxRRDValue. In file 'funct_runtime.php' on lines 87-92 is SQL query wich seem to be wrong.

There is:

Code: Select all

$sql = "SELECT b.id, a.rrd_maximum as maxRRDValue from data_template_rrd AS a
				RIGHT JOIN reportit_data_items AS b ON (a.local_data_id = b.id)
				WHERE a.data_template_id = 41
					AND b.report_id = 14
					AND a.data_source_name = '$data_source_name'
				ORDER BY b.id";
And I think it should be something like this:

Code: Select all

$sql = "SELECT b.id, a.rrd_maximum as maxRRDValue from data_template_rrd AS a
				RIGHT JOIN reportit_data_items AS b ON (a.local_data_id = b.id)
				WHERE b.report_id = $report_id
					AND a.data_source_name = '$data_source_name'
				ORDER BY b.id";
In original there are fixed values for data_template_id and report_id. I think there shouldn't be clause for data_template_id and should be variable instead of fixed value for report_id.
With those changes it seem to work properly but I have only 2 reports for now.
I downloaded plugin from sourceforge. Point me if I'm right or wrong.

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

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by browniebraun »

-charles- wrote:Hi!
I don't know if there was this problem mentioned previously, there is too much pages to read it all, but I think I found bug in this plugin.
It's related to maxRRDValue. In file 'funct_runtime.php' on lines 87-92 is SQL query wich seem to be wrong.

There is:

Code: Select all

$sql = "SELECT b.id, a.rrd_maximum as maxRRDValue from data_template_rrd AS a
				RIGHT JOIN reportit_data_items AS b ON (a.local_data_id = b.id)
				WHERE a.data_template_id = 41
					AND b.report_id = 14
					AND a.data_source_name = '$data_source_name'
				ORDER BY b.id";
And I think it should be something like this:

Code: Select all

$sql = "SELECT b.id, a.rrd_maximum as maxRRDValue from data_template_rrd AS a
				RIGHT JOIN reportit_data_items AS b ON (a.local_data_id = b.id)
				WHERE b.report_id = $report_id
					AND a.data_source_name = '$data_source_name'
				ORDER BY b.id";
In original there are fixed values for data_template_id and report_id. I think there shouldn't be clause for data_template_id and should be variable instead of fixed value for report_id.
With those changes it seem to work properly but I have only 2 reports for now.
I downloaded plugin from sourceforge. Point me if I'm right or wrong.

Regards.
That's already fixed in the SVN. Please take look at tag release 0.75.
I'm really sorry that haven't published it so far.

Regards
-Andi
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
RAC
Posts: 3
Joined: Thu Dec 15, 2011 10:43 am

Re: Report plugin ''ReportIt" - v0.7.3 (released 28/11/10)

Post by RAC »

Hi All,

I've installed reportit in my cacti.

Cacti 0.8.7i, PA 3.1
plugins:
Settings 0.71
Thold 0.4.8
Aggregate 0.75
Reportit 0.7.5a

I noticed, that when i create a report that uses a source that i already use in a aggregate graph, 'reportit' uses the aggregate graph instead of the interface graph.
Is this a known bug? Can anyone duplicate this behavior?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests