Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Realtime (graph), v0.33
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
mcutting
Cacti Guru User


Joined: 16 Oct 2006
Posts: 1007

PostPosted: Thu May 15, 2008 4:59 am    Post subject: Reply with quote

Strange - Will need to try the latest version. All this does for me is lock apache !

Thanks
Back to top
mcutting
Cacti Guru User


Joined: 16 Oct 2006
Posts: 1007

PostPosted: Thu May 15, 2008 5:07 am    Post subject: Reply with quote

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: 9736
Location: MI, USA

PostPosted: Thu May 15, 2008 11:36 am    Post subject: Reply with quote

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: 10

PostPosted: Thu May 22, 2008 12:30 pm    Post subject: Reply with quote

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
Plugins
    Global 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

PostPosted: Fri May 23, 2008 11:13 am    Post subject: Reply with quote

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: 10

PostPosted: Sun May 25, 2008 8:12 pm    Post subject: Reply with quote

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: 53

PostPosted: Thu May 29, 2008 3:35 pm    Post subject: Reply with quote

no windows version
Back to top
mcutting
Cacti Guru User


Joined: 16 Oct 2006
Posts: 1007

PostPosted: Thu May 29, 2008 3:50 pm    Post subject: Reply with quote

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

PostPosted: Thu Jun 19, 2008 12:50 pm    Post subject: Reply with quote

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.

PostPosted: Thu Jun 26, 2008 3:01 pm    Post subject: Reply with quote

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

PostPosted: Thu Jun 26, 2008 3:55 pm    Post subject: Reply with quote

Thank you very much kurowsky!!!
It works perfectly!
Back to top
RHServices



Joined: 29 Jun 2008
Posts: 4

PostPosted: Sun Jun 29, 2008 11:58 pm    Post subject: Reply with quote

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.

PostPosted: Mon Jun 30, 2008 11:41 am    Post subject: Reply with quote

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: 359
Location: Emeryville, CA

PostPosted: Mon Jun 30, 2008 12:21 pm    Post subject: Reply with quote

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 Guru User


Joined: 16 Oct 2006
Posts: 1007

PostPosted: Mon Jun 30, 2008 12:32 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 7 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group