Problem with the cycle plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Karride
Posts: 4
Joined: Tue Jun 27, 2006 10:25 am
Location: Memphis, TN

Problem with the cycle plugin

Post by Karride »

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?
Attachments
Untitled-1.jpg
Untitled-1.jpg (65.99 KiB) Viewed 958 times
prospero63
Posts: 48
Joined: Sun Apr 12, 2009 7:51 pm

Re: Problem with the cycle plugin

Post by prospero63 »

I'm having the exact same problem. No idea how to fix it though...
prospero63
Posts: 48
Joined: Sun Apr 12, 2009 7:51 pm

Re: Problem with the cycle plugin

Post by prospero63 »

So the line in question seems to be:

Code: Select all

				$graphid    = $temp_array[0]['graph_data'][0]['graph_id'];
If you hover over where the graph should be (or click on it) the link takes you to:

Code: Select all

http://<server>/cacti/graph.php?local_graph_id=<? echo $graphid; ?>&rra_id=all
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...
prospero63
Posts: 48
Joined: Sun Apr 12, 2009 7:51 pm

Re: Problem with the cycle plugin

Post by prospero63 »

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:

Code: Select all

<? echo
Replacing it with:

Code: Select all

<?php echo
This looks to me like a bug in the plugin, but I don't know how to log bugs, etc.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests