realtime broken image php error

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
classen
Cacti User
Posts: 116
Joined: Thu Nov 12, 2009 3:07 pm

realtime broken image php error

Post by classen »

Hello,
I have the realtime plugin installed.
However, I don't see graphs... only the broken image icon.
Also I see these errors in my Apache logs.

Code: Select all

[Fri Feb 04 12:12:27 2011] [error] [client 111.222.333.444] PHP Notice:  Constant URL_PATH already defined in /home/www/cacti-0.8.7g/include/global.php on line 108, referer: https://me.com/cacti/plugins/realtime/graph_popup_rt.php?local_graph_id=1390

any ideas what this might be or how to fix it?

Thanks
User avatar
classen
Cacti User
Posts: 116
Joined: Thu Nov 12, 2009 3:07 pm

Re: realtime broken image php error

Post by classen »

This was just a red herring.
I think when I was patching some files the portion of global.php that specifies URL_PATH got duplicated. I commented out the duplicate lines and now the error is gone, but I still don't see the graphs in the realtime popup window.
hbeatty955i
Posts: 1
Joined: Thu Mar 31, 2011 8:20 pm

Re: realtime broken image php error

Post by hbeatty955i »

I'm not sure if this is the proper way to fix this but, it worked for me.

In cmd_rt.php (line 20) and poller_rt.php (line 20) replace:

if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD']) || isset($_SERVER['REMOTE_ADDR'])) {

with:

if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD'])) {
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests