Realtime 0.36 - Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
shd
Cacti User
Posts: 96
Joined: Mon Apr 09, 2007 1:33 pm
Location: Nizhnevartovsk, Russia

Re: Realtime Not Showing graph

Post by shd »

Here's one little addition to Realtime 0.4 for it to work with Microsoft Internet Explorer 7.x and 8.x. Add

Code: Select all

header("Content-Type: text/html; charset=\"UTF-8\"");
to the file graph_ajax_rt.php after line

Code: Select all

ob_start();
Internet Explorer is sensitive to the codepage of AJAX response.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Any one having this problem

Post by zoemu »

zoemu wrote:I also have problem with realtime on windows cacti installation. The Image is broken and when I try to run the image URL

http://cactiserver/cacti/plugins/realti ... 1255630915
I get 0 on the browser.

It's version 4.0 and brand new plugin install..al folders have permissions
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Realtime Not Showing graph

Post by TheWitness »

shd wrote:Here's one little addition to Realtime 0.4 for it to work with Microsoft Internet Explorer 7.x and 8.x. Add

Code: Select all

header("Content-Type: text/html; charset="UTF-8"");
to the file graph_ajax_rt.php after line

Code: Select all

ob_start();
Internet Explorer is sensitive to the codepage of AJAX response.
Please PM your full files.

Thanks,

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?
nl0pvm
Posts: 3
Joined: Tue Feb 02, 2010 4:56 pm

Re: Realtime Not Showing graph

Post by nl0pvm »

Hi,

I'm running the 0.40 version or the realtime plugin now and still have got the "no rrd is created issue" my httpd_error.log shows me:

Code: Select all

ERROR: opening '/usr/local/share/cacti/cache/realtime_29_5.rrd': No such file or directory, referer: http://xxx.xxx.xx/cacti/plugins/realtime/graph_popup_rt.php?local_graph_id=20
I've tried running the

Code: Select all

/usr/local/bin/php plugins/realtime/poller_rt.php --graph=9 --interval=15
command manually and that does work (when ran from the /usr/local/share/cacti directory as the www user (using su -m www). That does work suddenly an rrd is created and a graph is visualised and even updated with data when i run the command multiple times. Though (with the popup still open) the www user runs the command continuously but data is never added. Could this be a "environment variables issue"? (and how to debug this further?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I think that this should be directed to the Debian Bug's database. It's all about permissions.

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?
nl0pvm
Posts: 3
Joined: Tue Feb 02, 2010 4:56 pm

Post by nl0pvm »

uhh debian? while i'm running on Freebsd? :) Is there any way to debug this issue further other than putting it in a bug database?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well it looked a lot like Debian. You will have to edit the poller_rt.php to get the debugging.

TheWitness
Last edited by TheWitness on Wed Feb 03, 2010 10:03 am, edited 1 time in total.
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Might be FreeBSD's security. It's know to be pretty tight. If you can get with N3NCY. He's the expert.

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?
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Re: Realtime Not Showing graph

Post by zgamer »

nl0pvm wrote:Hi,

I'm running the 0.40 version or the realtime plugin now and still have got the "no rrd is created issue" my httpd_error.log shows me:

Code: Select all

ERROR: opening '/usr/local/share/cacti/cache/realtime_29_5.rrd': No such file or directory, referer: http://xxx.xxx.xx/cacti/plugins/realtime/graph_popup_rt.php?local_graph_id=20
I've tried running the

Code: Select all

/usr/local/bin/php plugins/realtime/poller_rt.php --graph=9 --interval=15
command manually and that does work (when ran from the /usr/local/share/cacti directory as the www user (using su -m www). That does work suddenly an rrd is created and a graph is visualised and even updated with data when i run the command multiple times. Though (with the popup still open) the www user runs the command continuously but data is never added. Could this be a "environment variables issue"? (and how to debug this further?
That looks like a permission issue. The www user needs full perms to the cache folder.
nl0pvm
Posts: 3
Joined: Tue Feb 02, 2010 4:56 pm

Post by nl0pvm »

TheWitness wrote:Might be FreeBSD's security. It's know to be pretty tight. If you can get with N3NCY. He's the expert.

TheWitness
Hi,

After almost half a day of debugging i've traced this issue back to a cause: In both cmd_rt.php and poller_rt.php the following lines cause the script to barf:

Code: Select all

/* do NOT run this script through a web browser */
if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD'])  || isset($_SERVER['REMOTE_ADDR'])) {
       die("<br><strong>This script is only meant to run at the command line.</strong>");
}
I have commented out this piece and now it works perfectly. I think that the

Code: Select all

die()
command is triggered because of the fact that i run a mod_fastcgi setup.

Commenting out the above lines is a nice workaround but also creates a security gap (I think). So a bugfix has to be developed for this.......



By the way the PHP

Code: Select all

error_log('text',0);
command is really useful in debugging these issue's :) :D
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: Realtime Not Showing graph

Post by zoemu »

TheWitness wrote:
shd wrote:Here's one little addition to Realtime 0.4 for it to work with Microsoft Internet Explorer 7.x and 8.x. Add

Code: Select all

header("Content-Type: text/html; charset="UTF-8"");
to the file graph_ajax_rt.php after line

Code: Select all

ob_start();
Internet Explorer is sensitive to the codepage of AJAX response.
Please PM your full files.

Thanks,

TheWitness
I did what yu suggested, but I'm Still getting the same problem. A broken Image. I get the same proble with IE7,8 and Firefox...

Thanks

This is the link in the image...

http://cactiserver/cacti/plugins/realti ... 1266350221
pparcell
Posts: 8
Joined: Thu Jul 23, 2009 11:27 am
Location: Utah

realtime no image/graph

Post by pparcell »

shd,

Thanks for the Ctrl+f5, that fixed my issue, my graphs show up now. Also, my post from earlier about ":" breaking graphs, is now fixed once I upgraded to .40.

Thanks guys (The Witness, and shd)!
bigturk
Posts: 37
Joined: Wed Sep 02, 2009 4:45 pm

No graph

Post by bigturk »

He guys I'm sure this has been asked and resolved and it's just me. But I can't seem to get graphs to display.
I get the count down and an "X", also I don't see any files in the cache folder i created and configured under Misc tab. I have given Everyone Full Control to that folder, which I placed it under the acaphe2 directory.
Another thing and I'm not sure about this but should I see a RealTime tab when its enabled? if so I'm not.

System Info

Cacti Version 0.8.7d
Plugin Architecture 2.4
Poller Type CMD.php
Server Info Windows NT 5.2
Web Server Apache/2.2.11 (Win32) PHP/5.2.9
PHP Version 5.2.9
PHP Extensions bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, ldap, mysql, snmp, sockets
MySQL Version 5.0.77-community-nt
RRDTool Version 1.2.30
SNMP Version At line 1 in (none) Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none) No hostname specified. USAGE: snmpwalk [OPTIONS] AGENT [OID] Version: 5.4.2.1 Web: http://www.net-snmp.org/ Email: net-snmp-coders@lists.sourceforge.net OPTIONS: -h, --help display this help message -H display configuration file directives understood -v 1|2c|3 specifies SNMP version to use -V, --version display package version number SNMP Version 1 or 2c specific -c COMMUNITY set the community string SNMP Version 3 specific -a PROTOCOL set authentication protocol (MD5|SHA) -A PASSPHRASE set authentication protocol pass phrase -e ENGINE-ID set security engine ID (e.g. 800000020109840301) -E ENGINE-ID set context engine ID (e.g. 800000020109840301) -l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv) -n CONTEXT set context name (e.g. bridge1) -u USER-NAME set security name (e.g. bert) -x PROTOCOL set privacy protocol (DES|AES) -X PASSPHRASE set privacy protocol pass phrase -Z BOOTS,TIME set destination engine boots/time General communication options -r RETRIES set the number of retries -t TIMEOUT set the request timeout (in seconds) Debugging -d dump input/output packets in hexadecimal -D TOKEN[,...] turn on debugging output for the specified TOKENs (ALL gives extremely verbose debugging output) General options -m MIB[:...] load given list of MIBs (ALL loads everything) -M DIR[:...] look in given list of directories for MIBs -P MIBOPTS Toggle various defaults controlling MIB parsing: u: allow the use of underlines in MIB symbols c: disallow the use of "--" to terminate comments d: save the DESCRIPTIONs of the MIB objects e: disable errors when MIB symbols conflict w: enable warnings when MIB symbols conflict W: enable detailed warnings when MIB symbols conflict R: replace MIB symbols from latest module -O OUTOPTS Toggle various defaults controlling output display: 0: print leading 0 for single-digit hex characters a: print all strings in ascii format b: do not break OID indexes down e: print enums numerically E: escape quotes in string indices f: print full OIDs on output n: print OIDs numerically q: quick print for easier parsing Q: quick print with equal-signs s: print only last symbolic element of OID S: print MIB module-id plus last element t: print timeticks unparsed as numeric integers T: print human-readable text along with hex strings u: print OIDs using UCD-style prefix suppression U: don't print units v: print values only (not OID = value) x: print all strings in hex format X: extended index format -I INOPTS Toggle various defaults controlling input parsing: b: do best/regex matching to find a MIB node h: don't apply DISPLAY-HINTs r: do not check values for range/type legality R: do random access to OID labels u: top-level OIDs must have '.' prefix (UCD-style) s SUFFIX: Append all textual OIDs with SUFFIX before parsing S PREFIX: Prepend all textual OIDs with PREFIX before parsing -L LOGOPTS Toggle various defaults controlling logging: e: log to standard error o: log to standard output n: don't log at all f file: log to the specified file s facility: log to syslog (via the specified facility) (variants) [EON] pri: log to standard error, output or /dev/null for level 'pri' and above [EON] p1-p2: log to standard error, output or /dev/null for levels 'p1' to 'p2' [FS] pri token: log to file/syslog for level 'pri' and above [FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2' -C APPOPTS Set various application specific behaviours: p: print the number of variables found i: include given OID in the search range I: don't include the given OID, even if no results are returned c: do not check returned OIDs are increasing t: Display wall-clock time to complete the request
Plugins Update Checker (update - v0.4)
Network Tools (tools - v0.3)
Global Plugin Settings (settings - v0.5)
Device Monitoring (monitor - v0.8.2)
Host Info (hostinfo - v0.2)


Thank you
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Fix this first

Code: Select all

SNMP Version At line 1 in (none) Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
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?
Uzziz

Post by Uzziz »

Hey I cannot access my Bigturk account because it's telling me it's invalid. I have tried to email the site admin to see if he could help me out. so in the mean time I have created another account.

TheWitness,
thank you for your reply back, but I am not sure how to resolve this issue. I am able to run snmpwalk using my community and .OID and get results.
I don't have any MIB graphs running.

Thank you in advance
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests