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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
kerem
Posts: 8
Joined: Wed Jun 29, 2011 1:16 am

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

Post by kerem »

Hi All,

I've created a simple report that shows Maximum Value of the Data Source of the interface by using maxRRDValue. It is used to calculate the utilization of the interfaces which their speed change dynamically. However, it seems not working for all of the interfaces. I've set the Maximum Value to 30M (30000000) but the report shows as 200M (200000000). How can I fix it?
05 2011-06-29 10.32.jpg
05 2011-06-29 10.32.jpg (30.74 KiB) Viewed 4197 times
04 2011-06-29 10.21.jpg
04 2011-06-29 10.21.jpg (40.62 KiB) Viewed 4197 times
01 2011-06-29 10.20.jpg
01 2011-06-29 10.20.jpg (21.64 KiB) Viewed 4197 times
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 »

Please duplicate that report, reduce the number of data items to that special one and generate a debug file for me.

One question: Is it possible to read out the current bandwith (e.g. shaping value) of that interface via SNMP? If the bandwidth changes dynamically then it would make sense to visualize that in the graphs too.

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
kerem
Posts: 8
Joined: Wed Jun 29, 2011 1:16 am

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

Post by kerem »

It is not possible to gather shaping value because it is set by the ISP :(
I run the report with onlyone interface then I realized that maxRRDValue for the interface become 40M which was 200M previously. I think that the first interface in the report seems as 40M.

I gather the log file in debugging mode, then I filter the lines that contain DEBUG.

Thanks for your help.
debug.TXT
(97.26 KiB) Downloaded 194 times
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 »

No, no, ReportIt has its own debug mode. Using the CLI you have to execute the runtime script in its folder.
Run that script with: e.g "php runtime.php" to get an overview of the options.

-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
kerem
Posts: 8
Joined: Wed Jun 29, 2011 1:16 am

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

Post by kerem »

I've generated the debug file.

Thanks.
test_kerem.txt
(398.27 KiB) Downloaded 271 times
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 »

Looks like an inappropriate SLQ query.
I hope I will have some time left this evening to take a close look at this.

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
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 »

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
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
kerem
Posts: 8
Joined: Wed Jun 29, 2011 1:16 am

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

Post by kerem »

Hi,

I've got an error message:

root@cacti:/usr/share/cacti# sudo patch -p1 -N < funct_runtime.php
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- reportit/trunk/lib_int/funct_runtime.php 2010/11/15 19:04:46 1352
|+++ reportit/trunk/lib_int/funct_runtime.php 2010/12/11 15:29:29 1377
--------------------------
File to patch: /usr/share/cacti/site/plugins/reportit/lib_int/funct_runtime.php
patching file /usr/share/cacti/site/plugins/reportit/lib_int/funct_runtime.php
Hunk #1 FAILED at 74.
Hunk #2 FAILED at 83.
Hunk #3 FAILED at 138.
3 out of 3 hunks FAILED -- saving rejects to file /usr/share/cacti/site/plugins/reportit/lib_int/funct_runtime.php.rej
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 »

You can download the files directly if you like:
see http://svn.cacti.net/viewvc/reportit/trunk/lib_int/funct_runtime.php?root=Plugins&view=log

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
kerem
Posts: 8
Joined: Wed Jun 29, 2011 1:16 am

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

Post by kerem »

It is working perfectly. It is a huge step for me. My next step is generating alerts according to data source max values by using threshold plugin.

I think that objects should have extra variables in cacti for using them in plugins. For example, interfaces may have actual speed variable then it can be easily used in plugins,formulas etc.

Thanks Andi.
02 2011-06-30 23.39.jpg
02 2011-06-30 23.39.jpg (25.01 KiB) Viewed 4173 times
bacon
Posts: 8
Joined: Sat Feb 26, 2011 12:15 am

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

Post by bacon »

when I configure the "Report Configurations",a error is display that "Validation error",How am I going to do?
:oops:
sfreezhe
Posts: 3
Joined: Wed Jul 20, 2011 10:38 pm

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

Post by sfreezhe »

help ! the ‘cancel’ ‘creat’ button disappeared ......
Attachments
报表功能.jpg
报表功能.jpg (111.6 KiB) Viewed 4074 times
dexx
Posts: 28
Joined: Thu Jan 13, 2011 12:45 am

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

Post by dexx »

Is there a repository of report templates available?
PBbreak
Posts: 6
Joined: Wed Nov 10, 2010 3:31 am

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

Post by PBbreak »

Hello Andi,

We are using the 0.7.1 version of the plugin and one of the configured reports has stuck in "in process" state. I could not delete it since there is a lock icon in place of the tick box. Is there a way to delete this report?

Thanks in advance,
PB.
Attachments
report.JPG
report.JPG (13.66 KiB) Viewed 3957 times
PBbreak
Posts: 6
Joined: Wed Nov 10, 2010 3:31 am

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

Post by PBbreak »

PBbreak wrote:Hello Andi,

We are using the 0.7.1 version of the plugin and one of the configured reports has stuck in "in process" state. I could not delete it since there is a lock icon in place of the tick box. Is there a way to delete this report?

Thanks in advance,
PB.
Ok, problem is solved, I've run a debug on it and state is cleared.
reportit]# php runtime.php --debug 4
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests