Realtime Graph not working.

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Realtime Graph not working.

Post by NixM »

Hi All,

I have installed the Cacti Version: 0.8.7h, Plugin Architecture Version: 3.0 and Realtime 0.43
Whey I click to Realtime link, window is populating but I am unable to see the graph.

I have created folder with permissions and configured this folder path in Misc tab.

drwxrwx--- 2 cactiuser apache 4096 Oct 4 12:02 /var/www/html/cacti/rracache

I can see the files are creating in the above folder.

[root@localhost rracache]# pwd
/var/www/html/cacti/rracache

[root@localhost rracache]# ls -l
total 200
-rw-r--r-- 1 apache apache 94668 Oct 4 12:11 realtime_28_5.rrd
-rw-r--r-- 1 apache apache 94668 Oct 4 12:22 realtime_40_5.rrd


Attached is the problem.
Attachments
realtime-prob.png
realtime-prob.png (26.67 KiB) Viewed 6933 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Realtime Graph not working.

Post by noname »

NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

I have updated the files from SVN but the same problem.

Any solution for this?

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

Re: Realtime Graph not working.

Post by TheWitness »

After you update the SVN, please delete the RRDfile and image files in the cache directory and try again.
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?
NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

Yes, I have deleted the cached graphs from /var/www/html/cacti/rracache
But I am getting the same issue.

I am using Spine as a Poller.

Here is my Misc configuration, I have tried with unchecked the "Use Ajax" but no luck.
Attachments
Misc.png
Misc.png (20.98 KiB) Viewed 6914 times
NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

Hi Developer,

I have added below line for temporary purpose in "realtime.js" file.
And after adding this line, Realtime plugin works fine.

Code: Select all

document.getElementById("realtime").src = "http://my.cacti.ip.address/cacti/"+imaging;
How I can fix this permanently without hard coding?
This is something like the problem with url path.

--
NixM
Attachments
realtime-js.png
realtime-js.png (11.57 KiB) Viewed 6912 times
realtime-temp-solve.png
realtime-temp-solve.png (28.03 KiB) Viewed 6912 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Realtime Graph not working.

Post by TheWitness »

Well, you apache config must be weird. What is your $url_path variable set to in config.php?

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?
NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

Hi,

I have set the $url_path under include/config.php file and replace original realtime.js file.
But still I am not getting realtime images.

Here is my config.php file.

Code: Select all

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "secret";
$database_port = "3306";
$database_ssl = false;

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
$url_path= "/cacti/";
Thanks.
NixM
NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

Ahh... here it is the issue.

with original realtime.js file (from SVN) I found following line.

Code: Select all

document.getElementById("realtime").src = imaging
After setting $url_path into the cacti config.php file, I have changed the above line as per following.
There semi colon ";" is missing.
Please update the line with semi colon.

Code: Select all

document.getElementById("realtime").src = imaging;
Realtime graphs works great now :D

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

Re: Realtime Graph not working.

Post by TheWitness »

Oh, that sucks.
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:

Re: Realtime Graph not working.

Post by TheWitness »

can you please try the latest realtime.js. I just updated it a few minutes ago.

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?
NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

Hi,

This works perfect now :)

Thanks for your great help.

--
NixM
Attachments
realtime-new-js.png
realtime-new-js.png (22.63 KiB) Viewed 6890 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Realtime Graph not working.

Post by TheWitness »

Thanks. What browser are you running?
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?
NixM
Posts: 13
Joined: Tue Oct 04, 2011 1:44 am

Re: Realtime Graph not working.

Post by NixM »

Firefox 7.0.1 and IE 8.0

--
NixM
coldface
Posts: 15
Joined: Tue Oct 11, 2011 3:57 am

Re: Realtime Graph not working.

Post by coldface »

Hi,
I have the same problem:Realtime Graph not work.
I have installed the Cacti Version: 0.8.7g, Plugin Architecture Version: 2.4 and Realtime 0.43
I have tried the suggestion mentioned,but it still doesn't work.
Could you pls give some help?
Appreciate.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests