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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

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

The way I would do it: Go to the PIA console, disable ReportIt, replace the reportit folder, copy the archive folder from your old instance to the new one and then enable ReportIt again.

It should also work to overwrite the old installation, but I would not recommend that way.

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
berbondac
Posts: 10
Joined: Thu Feb 25, 2010 8:21 am

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

Post by berbondac »

Hello,

I am having some problems with the reports, can someone take a look at the following thread:
http://forums.cacti.net/viewtopic.php?f=21&t=40909

thank you, i was told by gandalf to ask bowniebraun about this...

i would very much appreciate this, thank you!
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 »

Getting Segmentation Fault when running from CLI...from GUI it is ok...


[root@cacti reportit]# php runtime.php -d -v
Segmentation fault
[root@cacti reportit]#

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

berbondac wrote:Hello,

I am having some problems with the reports, can someone take a look at the following thread:
http://forums.cacti.net/viewtopic.php?f=21&t=40909

thank you, i was told by gandalf to ask bowniebraun about this...

i would very much appreciate this, thank you!
I'm really sorry, but it seems to me that these issues are not related to ReportIt.
Which plugin are you using to create these kind of reports?

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

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

Post by browniebraun »

sukanta wrote:Getting Segmentation Fault when running from CLI...from GUI it is ok...


[root@cacti reportit]# php runtime.php -d -v
Segmentation fault
[root@cacti reportit]#

Centos 5.5
Looks like you are using the rrdtool shared library included dynamically.
In use with PHP5 this extension only works faultlessly so far when you directly compile PHP with this extension.
This php modul has not been updated during the last years. I hope the author or someone else will update it.

Switch back to "RRtool Cacti" or recompile 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
berbondac
Posts: 10
Joined: Thu Feb 25, 2010 8:21 am

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

Post by berbondac »

i am not sure.
do you see, i inherited this system and i am using the "reports" from "utilities " menu as seen in the picture attached.

I haven't found anything that says reportit or something like that.

my cacti version should be: cacti-0.8.7d

thank you
Attachments
4.JPG
4.JPG (81.08 KiB) Viewed 3673 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 »

Yep,

looks like the old "reports" plugin. The successor is named "Nectar".

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
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

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

Post by xefil »

Hello!

I've upgraded from 0.7.1 to 0.7.3 and now the reports are not generated. If I try to run one manaully:

Code: Select all

[root@cacti ~]# php /opt/cacti/plugins/reportit/runtime.php --debug -v 24
(...)
array output
(...)
PHP Fatal error:  Call to undefined function boost_process_poller_output() in /opt/cacti/plugins/reportit/runtime.php on line 518
What could be the cause?

Thank's!

PS: I'm not using boost - was installed, but then removed

Simon
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

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

Post by xefil »

I've installed php-rrdtool, enabled and used PHP-BINDINGS as well, the same error.

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

xefil wrote:Hello!

I've upgraded from 0.7.1 to 0.7.3 and now the reports are not generated. If I try to run one manaully:

Code: Select all

[root@cacti ~]# php /opt/cacti/plugins/reportit/runtime.php --debug -v 24
(...)
array output
(...)
PHP Fatal error:  Call to undefined function boost_process_poller_output() in /opt/cacti/plugins/reportit/runtime.php on line 518
What could be the cause?

Thank's!

PS: I'm not using boost - was installed, but then removed

Simon

The reason is that you have Boost disabled or uninstalled, but its settings are still in the database. :-?
As a quick workaround edit runtime.php and change line 325 from:

Code: Select all

$boost_enabled = (db_fetch_cell("SELECT 1 FROM `settings` WHERE name = 'boost_rrd_update_enable' an
d value = 'on'"))? true : false;
to

Code: Select all

$boost_enabled = (function_exists("boost_process_poller_output") && db_fetch_cell("SELECT 1 FROM `settings` WHERE name = 'boost_rrd_update_enable' an
d value = 'on'"))? true : false;
Then it will work in your case.
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
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

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

Post by xefil »

Thank yopu andreas, btw now:

Segmentation fault

:(

Anyway I could re-install boost, but would avoid now
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

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

Post by xefil »

Having ~6.000DS I've enabled boost (last version installed), rollback to the modify on runtime.php, but...

Segmentation fault

Ideas?

Simon
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

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

Post by xefil »

Solved enabling BOOST and using "RRDtool Connection" > "RRDTOOL CACTI (SLOW)"

Seems the issue was on PHP BINDINGS.

Cheers, Simon
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 »

xefil wrote:Solved enabling BOOST and using "RRDtool Connection" > "RRDTOOL CACTI (SLOW)"

Seems the issue was on PHP BINDINGS.

Cheers, Simon
Hi Simon,

the segmentation fault is not related to ReportIt, because it will be caused by the php_rrdtool extension in combination with PHP 5.x. It won't occur if you compile PHP directly with that rrdtool extension instead of loading it dynamically.
I will try to contact the author to get an update.

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
xefil
Cacti User
Posts: 233
Joined: Tue Jun 20, 2006 2:48 am
Location: Italy
Contact:

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

Post by xefil »

browniebraun wrote:
xefil wrote:Solved enabling BOOST and using "RRDtool Connection" > "RRDTOOL CACTI (SLOW)"

Seems the issue was on PHP BINDINGS.

Cheers, Simon
Hi Simon,

the segmentation fault is not related to ReportIt, because it will be caused by the php_rrdtool extension in combination with PHP 5.x. It won't occur if you compile PHP directly with that rrdtool extension instead of loading it dynamically.
I will try to contact the author to get an update.

Best regards
-Andreas-
Thank you Andreas!

Bye, Simon
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests