Realtime (graph), v0.33

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

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

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

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...
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
disH
Posts: 33
Joined: Thu May 22, 2008 2:09 am

Post by disH »

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.
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.
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)
[url=http://forums.cacti.net/viewtopic.php?t=4356]Template: Cisco CatOS[/url]
[url=http://forums.cacti.net/viewtopic.php?t=21785]Mactrack: Netscreen Fw[/url]
[b]_______________[/b]
[b]Cacti Version[/b] - 0.8.7e, [b]Plugin Architecture[/b] - 2.5, [b]Poller Type[/b] - Cact-Spine 0.8.7e
[b]Server Info[/b] - Ubuntu Server 8.10 (2.6.27-7-server), [b]Web Server[/b] - Apache/2.2.9 PHP/5.2.6-2ubuntu4.3 with Suhosin-Patch
[b]PHP[/b] - 5.2.6-2ubuntu4.3, [b]MySQL[/b] - 5.0.67-0ubuntu6-log, [b]RRDTool[/b] - 1.3.1, [b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Thresholds v0.4.1, Login Mod v1.0, Host Info v0.2
petero
Posts: 13
Joined: Sun Jul 17, 2005 3:45 pm
Location: Poland

Post by petero »

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
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.20
[b]Web Server[/b] - Apache
[b]PHP[/b] - 5.2.6
[b]PHP Extensions[/b] - xmlwriter, libxml, dom, xmlreader, xml, tokenizer, session, pcre, SimpleXML, SPL, PDO, sockets, snmp, SQLite, standard, Reflection, posix, pdo_sqlite, mysql, mbstring, json, iconv, hash, gd, filter, date, ctype, zlib, apache2handler
[b]MySQL[/b] - 5.0.41-debug
[b]Plugins[/b][list]Large Site Performane
Network Discovery (discovery - v0.8.4)
Global Plugin Settings (settings - v0.5)
Nagios plugin for Cacti (npc - v2.0.0b)[/list][/quote]
disH
Posts: 33
Joined: Thu May 22, 2008 2:09 am

Post by disH »

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.
[url=http://forums.cacti.net/viewtopic.php?t=4356]Template: Cisco CatOS[/url]
[url=http://forums.cacti.net/viewtopic.php?t=21785]Mactrack: Netscreen Fw[/url]
[b]_______________[/b]
[b]Cacti Version[/b] - 0.8.7e, [b]Plugin Architecture[/b] - 2.5, [b]Poller Type[/b] - Cact-Spine 0.8.7e
[b]Server Info[/b] - Ubuntu Server 8.10 (2.6.27-7-server), [b]Web Server[/b] - Apache/2.2.9 PHP/5.2.6-2ubuntu4.3 with Suhosin-Patch
[b]PHP[/b] - 5.2.6-2ubuntu4.3, [b]MySQL[/b] - 5.0.67-0ubuntu6-log, [b]RRDTool[/b] - 1.3.1, [b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Thresholds v0.4.1, Login Mod v1.0, Host Info v0.2
crashergs
Cacti User
Posts: 53
Joined: Fri May 23, 2008 3:37 pm

Post by crashergs »

no windows version :(
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

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.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
twelzy
Cacti User
Posts: 83
Joined: Wed Mar 30, 2005 6:48 pm
Location: BRAZIL/Brasilia

Post by twelzy »

All was working perfectly...
Then I restarted my Cacti server and now my realtime plugin (v0.34) isn't working.
See the errors:

Code: Select all

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?!
Thanks in advance!
(And sorry for my poor English...)
_______________________________________
twelzy (Enio Sanches)
kurowsky
Cacti User
Posts: 52
Joined: Wed Feb 04, 2004 4:43 pm
Location: Richmond, VA.

Post by kurowsky »

Made the following changes which worked for me.

to poller_rt.php:

Code: Select all

#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: Select all

#       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");
Kurowsky
User avatar
twelzy
Cacti User
Posts: 83
Joined: Wed Mar 30, 2005 6:48 pm
Location: BRAZIL/Brasilia

Post by twelzy »

Thank you very much kurowsky!!!
It works perfectly!
Thanks in advance!
(And sorry for my poor English...)
_______________________________________
twelzy (Enio Sanches)
RHServices
Posts: 4
Joined: Sun Jun 29, 2008 10:56 pm

Post by RHServices »

The above worked for me to fix the files not showing up in the caching folder and just getting blank images.
kurowsky
Cacti User
Posts: 52
Joined: Wed Feb 04, 2004 4:43 pm
Location: Richmond, VA.

Post by kurowsky »

twelzy wrote:Thank you very much kurowsky!!!
It works perfectly!
No problem. Glad it worked.

-k.
Kurowsky
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

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
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

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
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests