Realtime 0.36 - Released
Moderators: Developers, Moderators
Another question
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
thanks
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This is an environment problem. For now, add the following to the cmd_rt.php
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
Code: Select all
setenv("MIBS", "<some_known_file>");
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?
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?
realtime
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.
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.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to make sure that "php -m" run cleanly. The setenv is just a work around for a botched environment.
TheWitness
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?
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?
realtime
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
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Sorry,
The syntax for setenv(), is really putenv("VARIABLE=value");
Try that instead, my bad...
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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.
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):
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
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):
The solution is simple: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
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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.
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!)
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!)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Nah, I'm going to release a plethra of Plugins today. I already he this done a bit differently.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I've released 0.40.
TheWitness
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?
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
What's new? There's no changelog.TheWitness wrote:I've released 0.40.
TheWitness
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!)
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!)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Who is online
Users browsing this forum: No registered users and 2 guests