|
|
| Author |
Message |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 978
|
Posted: Thu May 15, 2008 4:59 am Post subject: |
|
|
Strange - Will need to try the latest version. All this does for me is lock apache !
Thanks |
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 978
|
Posted: Thu May 15, 2008 5:07 am Post subject: |
|
|
I get an error with version 0.34:
Notice: Undefined index: sess_realtime_ds_step in C:\wamp\www\Cacti\plugins\realtime\graph_ajax_rt.php on line 132
Here's my version... |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9697 Location: MI, USA
|
Posted: Thu May 15, 2008 11:36 am Post subject: |
|
|
You can turn off Notice level error messages in PHP, restart apache, and the 0.34 version should start to work. I will see what is happening at my earliest convenience.
Larry |
|
| Back to top |
|
 |
disH
Joined: 22 May 2008 Posts: 2
|
Posted: Thu May 22, 2008 12:30 pm Post subject: |
|
|
| TheWitness wrote: | | mandor101 wrote: | | I have upgrade to 0.8.7b and new plugin arch and updated all the plugins. All plugins work except realtime. The window displays with the no image icon and no files are created in the realtime folder. |
It's entirely possible that this could be related to the poller. Of course, Cactid is not supported under 0.8.7b.
TheWitness |
I've got the same situation, ive set everything on 'debug' and status on.
I see nothing wrong..
I was using CactID but upgraded everything to run Spine instead, unfortunately did not make a difference.
| Quote: |
1) You must install PIA 2.2beta (or 2.1 w/Cacti Patches)
|
PIA = Plugin Architecture ?? I have 2.1stabe, does it require the mentioned patches? Updated it to 2.1 a few days ago.
| Quote: | Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Spine
Server Info - Linux 2.6.18-6-sparc64
Web Server - Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
PHP - 5.2.0-8+etch11
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mysql, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.32-Debian_7etch5-log
RRDTool - 1.2.15
SNMP - 5.2.3
PluginsGlobal Plugin Settings (settings - v0.5)
Update Checker (update - v0.4)
Network Tools (tools - v0.3)
Host Info (hostinfo - v0.2)
Thresholds (thold - v0.3.9)
Device Monitoring (monitor - v0.8.2)
Realtime for Cacti (realtime - v0.32) |
|
|
| Back to top |
|
 |
petero
Joined: 17 Jul 2005 Posts: 11 Location: Poland
|
Posted: Fri May 23, 2008 11:13 am Post subject: |
|
|
Hi I have searched the forums and realtime 0.34 with PluginArch 2.2b still does not show graphs. I can see only X and here are my logs below.
There were some issues with include global.php and config.php but those were easy to fix.
#Apache error.log
PHP Notice: Undefined variable: config in /cacti/plugins/realtime/poller_rt.php on line 34
PHP Notice: Undefined variable: config in /cacti/plugins/realtime/poller_rt.php on line 35
PHP Notice: Undefined variable: config in /cacti/plugins/realtime/poller_rt.php on line 36
PHP Notice: Undefined variable: colors in /cacti/lib/graph_export.php on line 1741
PHP Fatal error: Call to undefined function read_config_option() in /cacti/lib/graph_export.php on line 1742
ERROR: opening '/usr/local/apache/htdocs/cacti/rcache/realtime_12945_5.rrd': No such file or directory
########
The dir is open for apache to write and read,but no rrd file is being created .
Is there any way to do more DEBUG ?
I saw in poller_rt.php $debug = FALSE; but changing that to true does't show any extra output.
If anyone has some info how to turn on debug to get to the bottom of this (coz this pluging is GREAT)
Peter |
|
| Back to top |
|
 |
disH
Joined: 22 May 2008 Posts: 2
|
Posted: Sun May 25, 2008 8:12 pm Post subject: |
|
|
| petero wrote: | Hi I have searched the forums and realtime 0.34 with PluginArch 2.2b still does not show graphs. I can see only X and here are my logs below.
There were some issues with include global.php and config.php but those were easy to fix.
#Apache error.log
PHP Notice: Undefined variable: config in /cacti/plugins/realtime/poller_rt.php on line 34
PHP Notice: Undefined variable: config in /cacti/plugins/realtime/poller_rt.php on line 35
PHP Notice: Undefined variable: config in /cacti/plugins/realtime/poller_rt.php on line 36
PHP Notice: Undefined variable: colors in /cacti/lib/graph_export.php on line 1741
PHP Fatal error: Call to undefined function read_config_option() in /cacti/lib/graph_export.php on line 1742
ERROR: opening '/usr/local/apache/htdocs/cacti/rcache/realtime_12945_5.rrd': No such file or directory
########
The dir is open for apache to write and read,but no rrd file is being created .
Is there any way to do more DEBUG ?
I saw in poller_rt.php $debug = FALSE; but changing that to true does't show any extra output.
If anyone has some info how to turn on debug to get to the bottom of this (coz this pluging is GREAT)
Peter |
Change your apache config to log on debug level.
In realtime/setup.php , search for status=off, change it to on.
Lastly put your cacti logging (through the web config) to log on debug level. You could set your mysql to debug logging aswell...
Now your logs are being flooded
I noticed in my signature i was running v.32 (which i thought would be the latest as i assumed the cacti.net home page would point to the latest version. So i upped to v.33 (yes, not latest) but it works
cmd_rt.php & poller_rt.php can be run from the command prompt but wont give you any useful info, atleast in my case. |
|
| Back to top |
|
 |
crashergs Cacti User
Joined: 23 May 2008 Posts: 51
|
Posted: Thu May 29, 2008 3:35 pm Post subject: |
|
|
no windows version  |
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 978
|
Posted: Thu May 29, 2008 3:50 pm Post subject: |
|
|
| crashergs wrote: | | no windows version :( |
Have a look for my post in this topic which as a zip attached to it. This is a modified version of 0.32, which works well under Windows. |
|
| Back to top |
|
 |
twelzy Cacti User
Joined: 30 Mar 2005 Posts: 74 Location: BRAZIL/Brasilia
|
Posted: Thu Jun 19, 2008 12:50 pm Post subject: |
|
|
All was working perfectly...
Then I restarted my Cacti server and now my realtime plugin (v0.34) isn't working.
See the errors:
| Code: | PHP Warning: include(./include/config.php): failed to open stream: No such file or directory in /var/www/cacti/plugins/realtime/poller_rt.php on line 32
PHP Warning: include(): Failed opening './include/config.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/plugins/realtime/poller_rt.php on line 32
PHP Warning: include_once(/lib/poller.php): failed to open stream: No such file or directory in /var/www/cacti/plugins/realtime/poller_rt.php on line 34
PHP Warning: include_once(): Failed opening '/lib/poller.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/plugins/realtime/poller_rt.php on line 34
PHP Warning: include_once(/lib/data_query.php): failed to open stream: No such file or directory in /var/www/cacti/plugins/realtime/poller_rt.php on line 35
PHP Warning: include_once(): Failed opening '/lib/data_query.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/plugins/realtime/poller_rt.php on line 35
PHP Warning: include_once(/lib/graph_export.php): failed to open stream: No such file or directory in /var/www/cacti/plugins/realtime/poller_rt.php on line 36
PHP Warning: include_once(): Failed opening '/lib/graph_export.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/plugins/realtime/poller_rt.php on line 36
PHP Warning: include_once(/lib/rrd.php): failed to open stream: No such file or directory in /var/www/cacti/plugins/realtime/poller_rt.php on line 37
PHP Warning: include_once(): Failed opening '/lib/rrd.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/plugins/realtime/poller_rt.php on line 37
PHP Fatal error: Call to undefined function read_config_option() in /var/www/cacti/plugins/realtime/poller_rt.php on line 102 |
Permission on realtimes's cache dir are '777' to apache user...
What is wrong?! |
|
| Back to top |
|
 |
kurowsky
Joined: 04 Feb 2004 Posts: 46 Location: Richmond, VA.
|
Posted: Thu Jun 26, 2008 3:01 pm Post subject: |
|
|
Made the following changes which worked for me.
to poller_rt.php:
| Code: | #if (file_exists("./include/global.php")) {
# include("./include/global.php");
#} else {
# include("./include/config.php");
#}
include(dirname(__FILE__) . "/../../include/global.php");
#include_once($config["base_path"] . "/lib/poller.php");
#include_once($config["base_path"] . "/lib/data_query.php");
#include_once($config["base_path"] . "/lib/graph_export.php");
#include_once($config["base_path"] . "/lib/rrd.php");
include_once($config["library_path"] . "/poller.php");
include_once($config["library_path"] . "/data_query.php");
include_once($config["library_path"] . "/graph_export.php");
include_once($config["library_path"] . "/rrd.php"); |
and cmd_rt.php :
| Code: | # include("./include/global.php");
#} else {
# include("./include/config.php");
#}
include(dirname(__FILE__) . "/../../include/global.php");
#include_once($config["base_path"] . "/lib/snmp.php");
#include_once($config["base_path"] . "/lib/poller.php");
#include_once($config["base_path"] . "/lib/rrd.php");
#include_once($config["base_path"] . "/lib/ping.php");
include_once($config["library_path"] . "/snmp.php");
include_once($config["library_path"] . "/poller.php");
include_once($config["library_path"] . "/rrd.php");
include_once($config["library_path"] . "/ping.php"); |
|
|
| Back to top |
|
 |
twelzy Cacti User
Joined: 30 Mar 2005 Posts: 74 Location: BRAZIL/Brasilia
|
Posted: Thu Jun 26, 2008 3:55 pm Post subject: |
|
|
Thank you very much kurowsky!!!
It works perfectly! |
|
| Back to top |
|
 |
RHServices
Joined: 29 Jun 2008 Posts: 4
|
Posted: Sun Jun 29, 2008 11:58 pm Post subject: |
|
|
| The above worked for me to fix the files not showing up in the caching folder and just getting blank images. |
|
| Back to top |
|
 |
kurowsky
Joined: 04 Feb 2004 Posts: 46 Location: Richmond, VA.
|
Posted: Mon Jun 30, 2008 11:41 am Post subject: |
|
|
| twelzy wrote: | Thank you very much kurowsky!!!
It works perfectly! |
No problem. Glad it worked.
-k. |
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 353 Location: Emeryville, CA
|
Posted: Mon Jun 30, 2008 12:21 pm Post subject: |
|
|
Ever since i have updated (including making the changes in the posts above) i get the popup for Real-Time, and i see the count down, and the screen refreshes when the count down is completed, and i see the file in the temp directory, but i never actually see the graphs. Permissions are set properly. this is driving me crazy.
Any thoughts?
app |
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 978
|
Posted: Mon Jun 30, 2008 12:32 pm Post subject: |
|
|
| App - I had the same problem. In the end, I changed some parts of 0.32 to suit my needs, and now use this instead. Had a gotomeeting session with thewitness, but still never resolved it |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|