My Cacti server's linux install got corrupt, so I took it a a good place to start fresh. I've got most of the latest versions of the plugins I use working, but Cycle 1.2 is giving me a problem. plugin manager installs it ok, but whe I go to the cycle tab, I get the attached screen shot. the Apache error log also has this line:
[Fri Dec 03 09:15:16 2010] [error] [client 192.168.xxx.xxx] PHP Notice: Undefined offset: 0 in /usr/share/cacti/plugins/cycle/cycle_ajax.php on line 110, referer: http://monitor.domain.lan/cacti/plugins/cycle/cycle.php
Anyone run into this before?
Problem with the cycle plugin
Moderators: Developers, Moderators
Problem with the cycle plugin
- Attachments
-
- Untitled-1.jpg (65.99 KiB) Viewed 957 times
-
- Posts: 48
- Joined: Sun Apr 12, 2009 7:51 pm
Re: Problem with the cycle plugin
I'm having the exact same problem. No idea how to fix it though...
-
- Posts: 48
- Joined: Sun Apr 12, 2009 7:51 pm
Re: Problem with the cycle plugin
So the line in question seems to be:
If you hover over where the graph should be (or click on it) the link takes you to:
So my admittedly non-PHP knowing self thinks something's getting horked up with the graph ID, but I have no idea how to go about fixing it...
Code: Select all
$graphid = $temp_array[0]['graph_data'][0]['graph_id'];
Code: Select all
http://<server>/cacti/graph.php?local_graph_id=<? echo $graphid; ?>&rra_id=all
-
- Posts: 48
- Joined: Sun Apr 12, 2009 7:51 pm
Re: Problem with the cycle plugin
OK, I was able to fix this in my environment, YMMV.
What I did was edit cycle_ajax.php and did a find and replace for:
Replacing it with:
This looks to me like a bug in the plugin, but I don't know how to log bugs, etc.
What I did was edit cycle_ajax.php and did a find and replace for:
Code: Select all
<? echo
Code: Select all
<?php echo
Who is online
Users browsing this forum: No registered users and 2 guests