Realtime 0.36 - Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
aaronnicoli
Posts: 33
Joined: Tue May 05, 2009 7:28 pm

Post by aaronnicoli »

Went back to 3.6 and did RCK's fix and it is working again.

Also, this is not new by the way, but annoying never the less...
In firefox under ubuntu when I go to realtime, it open in a new tab rather than window which is fine, but it then proceeds to resize my entire working window of firefox and continues to redo so every time it refreshes.

Is there a quick and dirty trick to stop any resizing from happening...?

Thanks,
Aaron.
dbee
Posts: 5
Joined: Thu Aug 07, 2003 8:24 am
Location: Germany

Post by dbee »

aaronnicoli wrote:Hehe I just updated... 0.41 that is

Now I just get this where the image should be:

/cacti/plugins/realtime/graph_image_rt.php?graph_start=-300&graph_end=0&local_graph_id=1057&ds_step=10&count=0&timetweak=1275866632
Same here.

dbee
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

alex_lavrus wrote:Hi all!
Plugin "realtime" do not work on my server

I get the following in apache log:

Code: Select all

PHP Fatal error:  Cannot pass parameter 3 by reference in /srv/www/htdocs/cacti/plugins/realtime/poller_rt.php on line 184
ERROR: opening '/srv/www/htdocs/cache/realtime_147_5.rrd': No such file or directory
Cache directory:

Code: Select all

drwxrwxrwx 2 root root 4096 2010-05-21 15:54 /srv/www/htdocs/cache/
When i run php5 command manually the result is same:

Code: Select all

lav@nnm-ext:/srv/www/htdocs/cacti> sudo php5 plugins/realtime/poller_rt.php --graph=634 --interval=15                 
root's password:
PHP Fatal error:  Cannot pass parameter 3 by reference in /srv/www/htdocs/cacti/plugins/realtime/poller_rt.php on line 184
My system configuration:
realtime version: 0.4 (i was tried install version 0.36, result same)
Cacti Version 0.8.7f
OS SLES-11 (x86_64)
rrdtool-1.3.4-2.8
poller: spine-0.8.7e
PHP Version 5.2.6
Apache/2.2.10
Plugin Architecture: 2.7
With F you have to use 0.41. Not sure about this resize bug I am seeing.

TheWitness
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?
brightm
Cacti User
Posts: 88
Joined: Wed Jun 16, 2010 6:20 am
Location: Bournemouth UK

Post by brightm »

I've just tried realtime 0.42 as I was getting the same error with red cross & no graphs created.


Now getting:

Notice: Undefined index: graph_popup_rt.php in C:\wamp\www\cacti\lib\plugins.php on line 454

where the icon for the realtime graph selection should be.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I just installed it earlier today and did not have an issue. Provide some version/config/browser details. It's almost as if your browser is having issues with the callback.
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure you report the bug to Mozilla.
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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

aaronnicoli wrote:Hehe I just updated... 0.41 that is

Now I just get this where the image should be:

/cacti/plugins/realtime/graph_image_rt.php?graph_start=-300&graph_end=0&local_graph_id=1057&ds_step=10&count=0&timetweak=1275866632
lucky man - I cannot see this icon any more! :-?
I checked also the permission page: no plugin Realtime there.
It is enabled but nowhere visible.
On my test-cacti I deinstalled and reinstalled the plugin. Now I can see it again on the permission page.
BUT: - do I have really to reinstall this and give 50 users again the permissions?

Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's a bit of a defect :oops: . So, there is a utility in the extra's folder of the latest thold that will re-apply a realm for all the users. Give it a look-see, make a few edits, and you will be back in business. Sorry about that. There were several plugins that have collided with one another in the past that make the move to the new realm setup pretty important.

TheWitness
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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

I searched for all realm ID in the plugin directory and found many plugins that uses hardcoded low-ids (< 100).
Should I change all by hands and the IDs in the setup.php-files, too?

realm = 87 -> change to 181 in db and in setup.php
weathermap = 43 -> change?
rrdclean = 36 -> also change?
hostinfo=69
configmanager=70
....

Is there a difference between old-pia and new-pia realms?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

New PIA realms are assigned automatically starting at 100 and going up from there. When I converted some of the plugins from 1.x to 2.x, I added the new realm and then for each user switched to the new realm ID. Obviously there has been some overlap, and or errors.

So, if you are going to use static realms, they need to be high. However, I would not change the original authors code, but rather commit patches to the author. Those patches should use the PIA upgrade procedure to permanently assign the correct realms.

Otherwise, you are going to have a mess on your hands long term.

TheWitness
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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

ok - done: deinstalled and installed it again, enabled it;permissions granted -> icon to get intothe plugin is visible.

but image is broken:

Code: Select all

<div id="image">
		<img id="realtime" src="%3Cbr%20/%3E%0A%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20index:%20%20sess_realtime_ds_step%20in%20%3Cb%3E/var/www/cacti/plugins/realtime/graph_ajax_rt.php%3C/b%3E%20on%20line%20%3Cb%3E130%3C/b%3E%3Cbr%20/%3E%0A%3Cbr%20/%3E%0A%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20index:%20%20sess_realtime_graph_start%20in%20%3Cb%3E/var/www/cacti/plugins/realtime/graph_ajax_rt.php%3C/b%3E%20on%20line%20%3Cb%3E130%3C/b%3E%3Cbr%20/%3E%0A/cacti/plugins/realtime/graph_image_rt.php?graph_start=-120&graph_end=0&local_graph_id=7&ds_step=10&count=0&timetweak=1281102268" align="center">
	</div>
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Turn off "display_warnings" in php.ini and then restart apache. You might want to look into svn trunk too. Test that first.

TheWitness
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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

TheWitness wrote:Turn off "display_warnings" in php.ini and then restart apache. You might want to look into svn trunk too. Test that first.
TheWitness
svn - nice hint - but I cannot find any link on the cacti/plugin-site :oops:
(link to the html-site via http is also needed as I have problems with the svn and proxy)
Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

thanks - found the file graph_ajax_rt.php and changed it:

Code: Select all

diff new graph_ajax_rt.php
130c130
< echo $source . "!!!" . (isset($_SESSION["sess_realtime_ds_step"]) ? $_SESSION["sess_realtime_ds_step"]:$graph_data_array["ds_step"]) . "!!!" . (isset($_SESSION["sess_realtime_graph_start"]) ? $_SESSION["sess_realtime_graph_start"]:$graph_data_array["graph_start"]) . "!!!" . $sync;
---
> echo $source . "!!!" . $_SESSION["sess_realtime_ds_step"] . "!!!" . $_SESSION["sess_realtime_graph_start"] . "!!!" . $sync;
133d132
< 
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest