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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
ebini
Posts: 21
Joined: Mon Mar 23, 2009 9:55 am

Post by ebini »

browniebraun wrote:Sounds like a bug. I'll have to check this.
Which version of ReportIt are you using?

Best regards
-Andreas-
I'm using reportIT 0.7.1 with your "patch" from this forum: "reportit_071_prepatched.zip"

and here the output: plugins/reportit/runtime.php -v --debug 3
(i hope nobody kills me for the large "copy and paste"):

Code: Select all

 Memory:  System: 128MB    Used: 5.93MB(4.63%)   Peak: 6.66MB(5.2%)

                ******* Definitions *******
Array
(
    [report] => Array
        (
            [id] => 3
            [description] => all_server average load - last week (1)
            [user_id] => 1
            [template_id] => 1
            [host_template_id] => 0
            [data_source_filter] => lp%
            [preset_timespan] => Last Week (Mon - Sun)
            [last_run] => 0000-00-00 00:00:00
            [runtime] => 0
            [public] => 1
            [start_date] => 2009-11-09
            [end_date] => 2009-11-15
            [ds_description] => 1min|5min|15min
            [rs_def] => 1-1
            [sp_def] => -0
            [sliding] => 1
            [present] => 0
            [scheduled] => 1
            [autorrdlist] => 1
            [auto_email] => 0
            [email_subject] =>
            [email_body] =>
            [email_format] =>
            [subhead] => 0
            [in_process] => 1
            [graph_permission] => 0
            [frequency] => daily
            [autoarchive] => 0
            [autoexport] =>
        )

    [data_items] => Array
        (
        )

    [high_counters] => Array
        (
        )

    [template] => Array
        (
            [id] => 1
            [description] => unix_load
            [pre_filter] =>
            [data_template_id] => 39
            [locked] => 0
            [export_folder] =>
            [ds_type] => 1
            [maximum] => 0
            [step] => 300
            [RRA] => Array
                (
                    [0] => Array
                        (
                            [steps] => 1
                            [timespan] => 14400
                        )

                    [1] => Array
                        (
                            [steps] => 1
                            [timespan] => 86400
                        )

                    [2] => Array
                        (
                            [steps] => 6
                            [timespan] => 604800
                        )

                    [3] => Array
                        (
                            [steps] => 24
                            [timespan] => 2678400
                        )

                    [4] => Array
                        (
                            [steps] => 288
                            [timespan] => 33053184
                        )

                )

        )

    [measurands] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [template_id] => 1
                    [description] => Average Load
                    [abbreviation] => AVG
                    [calc_formula] => f_avg
                    [unit] => load
                    [visible] => 1
                    [spanned] => 0
                    [rounding] => 0
                    [cf] => 1
                )

        )

    [variables] => Array
        (
        )

    [cf] => Array
        (
            [1] => AVERAGE
        )

    [ds_items] => Array
        (
            [0] => 1min
            [1] => 5min
            [2] => 15min
        )

)

11/19/2009 01:27:13 PM - REPORTIT ERROR: No data items defined. Report[3]
11/19/2009 01:27:13 PM - PLUGIN: Poller[0] REPORTIT STATS: ID:3 Time:0 Reports:1  Emails:0  Exports:0
With best regards

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

Post by browniebraun »

ebini wrote:
browniebraun wrote:Sounds like a bug. I'll have to check this.
Which version of ReportIt are you using?

Best regards
-Andreas-
I'm using reportIT 0.7.1 with your "patch" from this forum: "reportit_071_prepatched.zip"

and here the output: plugins/reportit/runtime.php -v --debug 3
(i hope nobody kills me for the large "copy and paste"):


With best regards

Ebini

Hi Ebini!

Unfortunately I have a lot of trouble with my house moving and our phone and internet (DSL) is still not working (German Telekom). Damn it!
UMTS is also not working in this green desert, so I can only connect via GPRS (5KB/s) with a lot of guaranteed interruptions. I hope they will fix it soon. At the moment I have the feeling of living in a cave.

Back to your issue: Please check if the number of data items matching your pattern is higher than the maximum defined under settings (Maximum Record Count Change). If that is the case, then increase the maximum counter.

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
ebini
Posts: 21
Joined: Mon Mar 23, 2009 9:55 am

Post by ebini »

shame on me :oops:

o.k. now it seems to work......

Thank you!

And good look with your internet provider.
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

ebini wrote:shame on me :oops:

o.k. now it seems to work......

Thank you!

And good look with your internet provider.
Maybe adding all new data items until the limitation, generating a log entry and displaying a message to the GUI would be a better way. I will keep that in mind for 0.8.0.

-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
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

hi,
i tried to use reportit, but encountered a problem during reading the documentation-pdf (well its for the 0.6 and i tried 0.71 but nevertheless...).

i tried to implement the traffic example, but i do not see the variable "Max_Value" in the variable list.

Am i doing something wrong? Or has this changed from 0.6 to 0.71?

Using Reportit 0.71 on Cacti 0.87e on windows 2003 installed with the "windows installer" 1.94.
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

disorganizer wrote:hi,
i tried to use reportit, but encountered a problem during reading the documentation-pdf (well its for the 0.6 and i tried 0.71 but nevertheless...).

i tried to implement the traffic example, but i do not see the variable "Max_Value" in the variable list.

Am i doing something wrong? Or has this changed from 0.6 to 0.71?

Using Reportit 0.71 on Cacti 0.87e on windows 2003 installed with the "windows installer" 1.94.
Hi!
If I remember correctly this will happen if the maximum value within the definition of your data source item (go to console->Templates->Data Templates->Interface Traffic) is empty or zero independent of the "Use Per-Data Source Value" - check box.
I have to change this in the next version which will be released in March.

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
disorganizer
Cacti User
Posts: 68
Joined: Thu Aug 04, 2005 8:34 am

Post by disorganizer »

thanks. that would be nice.
nevertheless i found out how it works with the example and ran my first reports :-)
great work...
patricko
Posts: 6
Joined: Fri Dec 18, 2009 6:11 am

my 0.7.1 with 10G interface, still get 32bits - 4.2G issue

Post by patricko »

***might not happen to you.***

I Got an old cacti, upgrade to the newest version and install 0.7.1.
Seem that my 10G interface bandwidth stuck at 4.2G.

So my 2 cents workaround - swap it out in code.
(too lame, I am not posting it)


-bash-3.2$ pwd
/var/www/cacti/plugins/reportit
-bash-3.2$ head -3 VERSION
---------------------------------------------------------------------------------------------------------------
Version 0.7.1:
---------------------------------------------------------------------------------------------------------------
-bash-3.2$



###Debug


[timezone] => GMT
)

[1] => Array
(
[maxValue] => 1000000000
[id] => 3363
[report_id] => 7
[description] =>
[start_day] => Monday
[end_day] => Sunday
[start_time] => 00:00:00
[end_time] => 24:00:00
[timezone] => GMT
)

[2] => Array
(
[maxValue] => 4294967295
[id] => 3397
[report_id] => 7
[description] =>
[start_day] => Monday
[end_day] => Sunday
[start_time] => 00:00:00
[end_time] => 24:00:00
[timezone] => GMT
)

[3] => Array
(
[maxValue] => 4294967295
[id] => 3398
[report_id] => 7
[description] =>
[start_day] => Monday
[end_day] => Sunday
[start_time] => 00:00:00
[end_time] => 24:00:00
[timezone] => GMT
)





My 2 cents work around, swap 4294967295 with 1
patricko
Posts: 6
Joined: Fri Dec 18, 2009 6:11 am

0.7.1 lame workaround for 10G interface

Post by patricko »

/var/www/cacti/plugins/reportit/lib_int/funct_calculate.php

add...

// Lame workaround by patricko for ten gigabit interface
if ($maxValue == "4294967295") { $maxValue = "10000000000"; $variables['maxValue'] = "10000000000"; }


no patch... please DONT USE IT!!!

I am posting for documentation purposes only


[/img]
Attachments
show 0.7.1 concurrent generate FE-GE-TE interfaces
show 0.7.1 concurrent generate FE-GE-TE interfaces
my-lame-10Gpatch.jpg (201.01 KiB) Viewed 5985 times
tephra
Posts: 26
Joined: Sun Dec 09, 2007 8:11 pm

Post by tephra »

Hi All,

I recently upgraded from 0.6.1 to 0.7.1 and now the "csv" button on the main reports page has disappeared.

I have tried setting up auto-exports, but that hasn't really fixed the problem.

What do I need todo to get the csv/xml "button" back?

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

Post by browniebraun »

tephra wrote:Hi All,

I recently upgraded from 0.6.1 to 0.7.1 and now the "csv" button on the main reports page has disappeared.

I have tried setting up auto-exports, but that hasn't really fixed the problem.

What do I need todo to get the csv/xml "button" back?

Cheers
D.
There's no way to get it back. :D
No kidding! Open the report and then you will see the new export options at the bottom. (In 0.8.0 that will change again. :wink:) Those kind of exports will take your filter settings into account and you are allowed to export archived reports too.


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
tephra
Posts: 26
Joined: Sun Dec 09, 2007 8:11 pm

Post by tephra »

oh ok... can we get it back for 0.8.0?

just a few less clicks :)
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

tephra wrote:oh ok... can we get it back for 0.8.0?

just a few less clicks :)
Mmmmh.... it was not planned. :roll: I will have to think about it.
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
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Post by hahnn »

Hi there.

I've installed version 0.71 of reportit for the first time in my cacti 0.8.7e.

When I go in Report templates to create a new (abd first) one, I select Interface Traffic and I click on next.

Then I give just a name to my template, and click on create.

Here, two error messages are displayed:

Error: Save Failed.

Error: No data source item selected.

And nothing is created.

An idea about that ?

Thanks for your support ;-)
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

hahnn wrote:Hi there.

I've installed version 0.71 of reportit for the first time in my cacti 0.8.7e.

When I go in Report templates to create a new (abd first) one, I select Interface Traffic and I click on next.

Then I give just a name to my template, and click on create.

Here, two error messages are displayed:

Error: Save Failed.

Error: No data source item selected.

And nothing is created.

An idea about that ?

Thanks for your support ;-)
You have to tick the diplayed data source items like "traffic_in" or "traffic_out" or something else. Or tick all checkboxes.


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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest