(Resolved) Realtime Showing Broken Images

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

(Resolved) Realtime Showing Broken Images

Post by zoemu »

Hi Everyone

I have installed realtime (0.36 i think), but I'm having a problem, it is showing a broken Image....any suggestions please

Thank you again

Luis :-? :-?
Attachments
rel.JPG
rel.JPG (15.44 KiB) Viewed 21364 times
Last edited by zoemu on Thu Jul 29, 2010 4:12 pm, edited 1 time in total.
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Re: Realtime Showing Broken Images

Post by browniebraun »

zoemu wrote:Hi Everyone

I have installed realtime (0.36 i think), but I'm having a problem, it is showing a broken Image....any suggestions please

Thank you again

Luis :-? :-?

This can have two reasons:

The graph template is corrupted, which will cause errors in the Apache log or you forget to setup the write permissions needed for the web server account to create the new rrd files within the cache folder of Realtime.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Thanks for your response, But I'm on IIS and everything and everyon has write permissions...Also no errors on IIS Logs or cacti.., I've got the feeling that it might not be able to find the RRAs files... wher ein the scripts is the path....

Thanks
cspenpen
Cacti User
Posts: 67
Joined: Tue Dec 05, 2006 5:10 am

Re: Realtime Showing Broken Images

Post by cspenpen »

I had this problem too
I use realtime 0.36 and I give rra and rcahe foler 777 permissions, but still get broken image.

Then I use "chown -R cactiuser.apache rra/ rcahe/" command, and still the same.

Apache error log said
""ERROR: opening '/var/www/html/cacti/rcache/realtime_12_5.rrd': No such file or directory""

any suggestion? thx
cspenpen
Cacti User
Posts: 67
Joined: Tue Dec 05, 2006 5:10 am

Re: Realtime Showing Broken Images

Post by cspenpen »

cspenpen wrote:I had this problem too
I use realtime 0.36 and I give rra and rcahe foler 777 permissions, but still get broken image.

Then I use "chown -R cactiuser.apache rra/ rcahe/" command, and still the same.

Apache error log said
""ERROR: opening '/var/www/html/cacti/rcache/realtime_12_5.rrd': No such file or directory""

any suggestion? thx
sorry that's my mysql problem...

http://forums.cacti.net/post-159676.htm ... ht=#159676
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Anybody on this yet!???

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

Post by TheWitness »

Please obtain the latest copy from the Cacti SVN. I will schedule a release as soon as possible.

Code: Select all

svn co svn:/svn.cacti.net/var/svnroot/cacti-plugins/realtime
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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I'm still getting the same, broken image

this is the patha of the graph that actually in not being created
if I ran this on the browser direct, I get 0
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

Hi I have retaking this plugin since my last post I've updated to version 0.4, but I'm still getting the broken image.

I've ran poller_rt.php from the command line every 5 seconds and the image and the rrdtool files get created properly

but from the browser the following is not being executed in graph_ajax_rt.php

Code: Select all


/* call poller */
$command = read_config_option("path_php_binary");
$args    = sprintf('plugins/realtime/poller_rt.php --graph=%s --interval=%d', $_REQUEST["local_graph_id"], $graph_data_array["ds_step"]);

shell_exec("$command $args");


Cacti Version 0.8.7e
Plugin Architecture 2.5
Poller Type Cactid v
Server Info Windows NT 6.0
Web Server Microsoft-IIS/7.0
PHP Version 5.2.0
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, mbstring, soap, bz2, curl, zip, SourceGuardian, ChartDirector PHP API, gd, ldap, mime_magic, mssql, mysql, snmp, sockets
MySQL Version 5.1.32-community
RRDTool Version 1.2.30
SNMP Version snmpwalk [OPTIONS] AGENT [OID] Version: 5.4.2.1 Web: Plugins collects poller output in cacti's mysql database (transporter - v0.2)
Realtime Graph Viewer (realtime - v0.4)
Mobile Cacti (mobile - v0.1)
Host Remote Console Utility (Remote Console - v0.1)
Global Plugin Settings (settings - v0.6)
SuperLinks (superlinks - v0.8)
PHP Network Weathermap (weathermap - v0.98dev)
Login Page Mod (loginmod - v1.0)
Host Info (hostinfo - v0.2)
NMID Web2 Plugin (nmidWeb2 - v0.1)
Network Management Inventory Database (nmid - v0.3.9a)
NMID SmokePing Plugin (nmidSmokeping - v0.3.9a)
NMID WebService Plugin (nmidWebService - v0.3.9a U2)
NMID TaskManager Plugin (nmidTaskManager - v0.3.9a)
PHP Network Managing (PHP Network Managing - v0.6.1)
Documents (docs - v0.3)
Any Ideas.

Does shell_exec () works on windows.......?
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

anyone on this yet ???

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

Post by TheWitness »

Search the files in the plugins/realtime directory for "iniset". Remove those commands and try again.

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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

what is "iniset"do you mean ini_set
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, there is a "memory_limit" setting that needs to be removed.

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
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

I removed them, but still no change, I get no graph pic.......the rrd file is not being created...

when I run this from the cmd line (by the way I'm running windows)....

Code: Select all


php poller_rt.php --graph=20 -- interval=5 --force
It works, the rrd is created.

PLease noticed that this my 3rd cacti installation (e, f, g), all in different systems ( xp, 2003, and 2008) and have never been able to get to work....

LA
User avatar
TheWitness
Developer
Posts: 17064
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you using Apache or IIS? I don't use IIS, there is way too much security related issues, like your user does not have permission to create files in that directory. Let me know.

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 2 guests