Realtime 0.36 - Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Another question

Post by joseme »

Adittional to my last post, Is it necesary to install something in my IIS webserver?, AJAX maybe?....I don't know much about AJAX.
thanks
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

Realtime

Post by joseme »

any update?, I read in another post, that this problem happened to others..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is an environment problem. For now, add the following to the cmd_rt.php

Code: Select all

setenv("MIBS", "<some_known_file>");
Where <some_known_file> is a known good mib file that is locatable by SNMP. This, by the way is a packaging/build problem.

If you shell out and run "php -m" you should get the same warnings.

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?
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

realtime

Post by joseme »

HI:

I put "setenv("MIBS", "IF-MIB");" in cmd_rt.php , but now I have no files in my rcache folder.

Is it OK what I put or not?, or could you send me the exact line I have to put?
By the way, my cacti server is windows 2003 SP 2....

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

Post by TheWitness »

You need to make sure that "php -m" run cleanly. The setenv is just a work around for a botched environment.

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?
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

realtime

Post by joseme »

Hi:
This is what I got:

C:\Documents and Settings\Administrator>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
gd
hash
iconv
json
ldap
libxml
mysql
odbc
pcre
Reflection
session
SimpleXML
snmp
sockets
SourceGuardian
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]


C:\Documents and Settings\Administrator>

Apparently all is OK, but when I put the line "setenv" the rrd file is not generated in "rcache" folder. (without "setenv" the rrd file is generated there, but as I told you I can not see the image, seems like is loading and loading...).

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

Post by TheWitness »

Sorry,

The syntax for setenv(), is really putenv("VARIABLE=value");

Try that instead, my bad...

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?
joseme
Cacti User
Posts: 90
Joined: Fri May 15, 2009 9:36 am

realtime

Post by joseme »

hI:
I tried putting this in cmd_rt.php:
putenv("MIBS=IF-MIB"); It doesn't work,
then:
putenv("MIBS="); It doesn't work,
putenv("MIBS"); It doesn't work,

is it oK? ...... I put it in the first line of cmd_rt.php...

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

Post by TheWitness »

You may also have to specify the mibdir as well. It think the environment variable is "MIBDIRS=<location where your mibs are>". Then, the "MIBS=rfc-1215" will typically work. Sometimes I just "hate" windows' implementation of the php_snmp module.

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?
bdiez
Posts: 15
Joined: Thu Sep 08, 2005 8:09 am
Location: Spain

Post by bdiez »

Hi Joseme.

I have been fighting during some time against a similar problem with this plugin in a recent Windows installation, and finally I got that, in my case, the reason was a known "bug" in the "libmysql.dll" library on the latests PHP's Windows versions.
It has happened to me with PHP 5.2.3 and 5.2.6. As far as I can see you're using 5.2.9, so you're likely to be affected by the same bug.

The way to test this is easy. Simply open a command line and execute "php -v". You should obtain a message with your PHP version, but if you detect that there is a big delay to exit the script after the info is printed (maybe even several seconds), then you've the same problem that I had. Depending of the PHP version sometimes you can obtain the following error (but not always):
C:\cacti>php.exe -v
PHP 5.2.3 (cli) (built: May 31 2007 09:37:22)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Error in my_thread_global_end(): 1 threads didn't exit
The solution is simple:
a) Downgrade your PHP installation to 5.2.1.
or b) Simply download this PHP version, extract it and replace your current "libmysql.dll" file by the one from here. This solved my problem and now my "realtime" works smoothly (I'm using PHP 5.2.6).

Here is a link to download the "old" Win PHP 5.2.1 package:


Hope this helps. Have luck.

Bernardo
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Here's a patch for some changes to the way images are loaded.

It uses an offscreen img to load the new graph, and copies it to the visible one when the image has *finished* loading. It also only shows the loading bar when the settings have changed.

The result is no flickering in the popup graph.

Works for me in Firefox 3.5, IE7 and Chrome.
Attachments
hj_rt.patch
(3.64 KiB) Downloaded 191 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Nah, I'm going to release a plethra of Plugins today. I already he this done a bit differently. ;)

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I've released 0.40.

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?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TheWitness wrote:I've released 0.40.

TheWitness
What's new? There's no changelog.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Mainly removed that nasty rotating candystick, the other was to size the window more precisely. Not much. Basically what you did, but maybe differently. Not sure, I did not check your patch.

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

Who is online

Users browsing this forum: No registered users and 0 guests