Realtime (graph), v0.33

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
dononeil
Cacti User
Posts: 194
Joined: Wed Aug 06, 2008 4:45 pm

Post by dononeil »

Is there any way to get this plugin to work with Advanced Ping and other php based scripts? When I try to pull up the graph in real time on Advanced Ping it always shows the same value.
dononeil
Cacti User
Posts: 194
Joined: Wed Aug 06, 2008 4:45 pm

Post by dononeil »

TheWitness wrote:
dononeil wrote:I'm running realtime v.35 (from the SVN on 8/15/08, the last time I updated it) and it's working great EXCEPT that my graphs are being cut off on the bottom (see attached).

Any way to fix this so it scales the window correctly? Seems like it's always cutting off 50 pixels or so.

This is with IE7. Mozilla doesn't seem to have this problem.
It's the status bar. The differences between IE and everyone else drive me absolutely nuts. I think I detected the browser version and changed the size of the window depending on it. You need to look at that JS code and simply enlarge the palying field a little more.

TheWitness
I changed it to:

if (browser == "IE") {
window.resizeTo(width+20, height+150)

and it works great... might want to wrap this into the next version.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

dononeil wrote:Is there any way to get this plugin to work with Advanced Ping and other php based scripts? When I try to pull up the graph in real time on Advanced Ping it always shows the same value.
ICMP will not work as Apache, but TCP/UDP should work just fine. However, with Cacti 0.8.8, I am attempting to have better ICMP ping support for the end user. Don't know if it's backported though.

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?
apereira
Posts: 22
Joined: Mon Sep 29, 2008 9:58 am

Post by apereira »

I have some problem that many here...

All plugins has been installed and all path are correct... but there are no graph being made....


What can I do? I'm newbie with Cacti...


Thx
Anderson.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

apereira wrote:I have some problem that many here...

All plugins has been installed and all path are correct... but there are no graph being made....


What can I do? I'm newbie with Cacti...


Thx
Anderson.
I have same problem

Code: Select all

drwxrwxrwx  2 www-data www-data   4096 2008-11-06 18:10 rcache
-rw-r--r--  1 root     root         71 2008-02-12 02:57 README
-rw-r--r--  1 root     root       1291 2008-04-10 02:44 reset_each_patch.patch
drwxr-xr-x  5 root     root       4096 2008-02-12 02:57 resource
drwxr-xr-x  2 www-data www-data   4096 2008-11-05 15:15 rra
chown www-data:www-data rcache/
incudie
Posts: 21
Joined: Thu Mar 06, 2008 12:03 pm

Post by incudie »

Same problem as mentioned above:

Apache reporting:

Code: Select all

ERROR: opening '/usr/share/cacti/site/rcache/realtime_121_5.rrd': No such file or directory
Permissions:

Code: Select all

drwxrwxrwx  2 www-data root  4096 2008-11-11 09:11 rcache
Path also set under misc:
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
Server Info - Linux 2.6.24-19-server
Web Server - Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch
PHP - 5.2.4-2ubuntu5.3
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, gd, ldap, mysql, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.51a-3ubuntu5.1
RRDTool - 1.2.19
SNMP - 5.4.1
Plugins
  • Read-only Devices Tab (devices - v0.4)
    Host Info (hostinfo - v0.2)
    logininfo
    Login Page Mod (loginmod - v1.0)
    Device Monitoring (monitor - v0.8.2)
    Global Plugin Settings (settings - v0.5)
    SuperLinks (superlinks - v0.72)
    Network Tools (tools - v0.3)
    Realtime for Cacti (realtime - v0.34)
Thanks!
Attachments
cacti.PNG
cacti.PNG (16.13 KiB) Viewed 10550 times
baxford
Posts: 14
Joined: Thu Nov 20, 2008 10:30 am

Post by baxford »

Windows Server 2003
IIS
Version 0.8.7b

I downloaded the realtime.zip but what I am supposed to do with it?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I've been playing a little with Realtime this morning, and I got a bit further than before. I found that in the graph_ajax_rt.php, there's a chdir('../..') and then *again* in poller_rt.php there's another one, which made all the relative paths wrong. So none of the includes at the top worked, and everything else just complained about missing functions.

I commented out the chdir() in poller_rt.php, and changed the includes to requires, since the whole thing dies otherwise. Now the poller_rt.php runs without errors, but I still don't get any graphs, or anything created in the imagecache directory.

Any ideas for where to look next?
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!)
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Howie, remove the chdir in cmd_rt.php too.

If you are using SELinux you will need to create some rules to allow httpd to access rrdtool as well.
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Couple ideas/fixes:

1) Seperate out the rrd refresh from the graph refresh. This would make it flow much nicer.

2) The browser window should resize based on the image size.

I'm going to toss this tool out to some of the network operations people to get their feedback and I'll see if I can make some useful patches.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Thanks llow, the cmd_rt.php change got me going. That's much better!

All that's needed now is something to resize the window correctly, as you say.
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!)
siouxee
Cacti User
Posts: 88
Joined: Wed Sep 07, 2005 9:00 am

Post by siouxee »

OK, I've finally gotten this plugin to generate the RRD file in the cache folder, but no graphs are being displayed in the pop-up window. The 5-second countdown bar just keeps cycling (no red X / broken image icon either).

Any suggestions? Running 0.8.7b on Win2k3 w/ IIS6.
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

The image resize stuff is there but the values are wrong (at least for me in both IE and Firefox).

In realtime.js change

Code: Select all

                                if (browser == "IE") {

                                        window.resizeTo(width+25, height+108)

                                }else{

                                        window.resizeTo(width+25, height+128)

                                }
to

Code: Select all

                                if (browser == "IE") {

                                        window.resizeTo(width+25, height+128)

                                }else{

                                        window.resizeTo(width+25, height+158)

                                }

khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

siouxee wrote:OK, I've finally gotten this plugin to generate the RRD file in the cache folder, but no graphs are being displayed in the pop-up window. The 5-second countdown bar just keeps cycling (no red X / broken image icon either).

Any suggestions? Running 0.8.7b on Win2k3 w/ IIS6.
Some graphs require a larger timeframe to load. Try 10, 15, 30 seconds instead of 5.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have released a new version of Realtime.

http://forums.cacti.net/viewtopic.php?t=31276

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 1 guest