Realtime 0.36 - Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Read my tagline. Don't give up though...
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?
alex_lavrus
Posts: 2
Joined: Sun Jun 21, 2009 9:29 pm

Post by alex_lavrus »

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
Attachments
realtime.JPG
realtime.JPG (18 KiB) Viewed 5657 times
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

oops. need a new release for f. It's a simple fix. For every rrdtoo_* command, you need to place an "@" in front of it. Do that and test.

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?
alex_lavrus
Posts: 2
Joined: Sun Jun 21, 2009 9:29 pm

Post by alex_lavrus »

Thak you for reply.
I placed "@" sign before "rrdtool_function_create" function in file poller_rt.php but that does not work.

Code: Select all

                        /* create rt rrd */
                        if (!file_exists($rt_graph_path)) {
                                /* get the syntax */
                                $command = @rrdtool_function_create($item['local_data_id'], true, array());

                                /* replace path */
                                $command = str_replace($data_source_path, $rt_graph_path, $command);

                                /* replace step */
                                $command = preg_replace('/--step\s(\d+)/', '--step ' . $interval, $command);

                                /* WIN32: before sending this command off to rrdtool, get rid
                                of all of the '\' characters. Unix does not care; win32 does.
                                Also make sure to replace all of the fancy \'s at the end of the line,
                                but make sure not to get rid of the "\n"'s that are supposed to be
                                in there (text format) */
                                $command = str_replace("\\\n", " ", $command);

                                /* create the rrdfile */
                                shell_exec($command);
                        }
Could you please give me an example for correct syntax?
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, sorry. Can you pull the trunk version in about 15 minutes and test. Provide feedback. We'll be releasing a slue of plugins this week for compatibility.

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?
nullzero7x
Posts: 2
Joined: Sat Sep 19, 2009 10:19 pm
Location: Guatemala

Realtime plugin Fixed!!! with rev 955

Post by nullzero7x »

Thanks the Witness, the trunk worked just fine, I had the same problem informed above.

keep it up.
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Thanks!

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hmm - ver 4.1 of realtime gives me

Notice: Undefined index: graph_popup_rt.php in /usr/share/cacti/site/lib/plugins.php on line 358

Any thoughts ?

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
RCK
Cacti User
Posts: 54
Joined: Fri Jan 26, 2007 12:38 pm

Solved RDDTool 1.3.x - Cacti 0.8.7f - Realtime

Post by RCK »

I have found an error when i upgrade cacti 0.8.7e to 0.8.7f : the image doesn't load

Code: Select all

Fatal error: Cannot pass parameter 3 by reference in /var/www/cacti-0.8.7f/plugins/realtime/poller_rt.php on line 184

On the file poller_rt.php on line 184

Code: Select all

$command = rrdtool_function_create($item['local_data_id'], true,array());
Just replace "array()" by "$emptyvar"

Like that :

Code: Select all

$command = rrdtool_function_create($item['local_data_id'], true,$emptyvar);
And realtime load image correctly...

I think it's a problem with new RRDtool syntax.
Cacti: 0.8.7g | Spine: 0.8.7g
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

0.41 is tagged in svn. It'll be announced soon.

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?
dbee
Posts: 5
Joined: Thu Aug 07, 2003 8:24 am
Location: Germany

realtime plugin does not work correctly

Post by dbee »

Hello @all,

we've some graphs with comments in the graph template e.g.

COMMENT: Total In: |sum:auto:current:2:auto|
COMMENT: Total Out: |sum:auto:current:2:auto|
COMMENT: Description: |query_ifAlias|

If any of those comments is in the template realtime plugin produces errors like:

Code: Select all

ERROR: I don't understand ':	0 bytes\n' in command: 'COMMENT:Total In:	0 bytes\n'.
ERROR: I don't understand ': to OSC West\n' in command: 'COMMENT:Description: to OSC West\n'.
Is there a way to fix that?

Regards,

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

Post by TheWitness »

Are you using 0.41?
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?
dbee
Posts: 5
Joined: Thu Aug 07, 2003 8:24 am
Location: Germany

Post by dbee »

no, 0.36

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

Post by aaronnicoli »

Hey guys,

Having the same issue, updated a few days back and didn't see any bug reports so thought it was me, but couldn't find a fix.

Anyway, glad I found this out now...

Where can I grab the latest version from?

Thanks,
Aaron.
aaronnicoli
Posts: 33
Joined: Tue May 05, 2009 7:28 pm

Post by aaronnicoli »

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

Who is online

Users browsing this forum: No registered users and 1 guest