With Thold enabled graphs don't display

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
chuckles148
Posts: 4
Joined: Mon Mar 26, 2012 10:43 am

With Thold enabled graphs don't display

Post by chuckles148 »

Hey All

I have had some issue with Thold not creating Thresholds do I disabled the plugin and re installed it. After doing that the graphs stopped displaying. If I turn off the thold plugin the graphs show up
I have attached an image of the graphs not displaying.

1) I have Rebooted everything
2) Reinstalled the plugin from the tar.gz
3) Rebuild the poller cache
4) Nothing in the cacti log file.

I'm just not sure where to go next any one have any ideas?
Attachments
Capture.JPG
Capture.JPG (50.7 KiB) Viewed 1602 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: With Thold enabled graphs don't display

Post by cigamit »

Try this.
open thold/setup.php

Find the line that starts with
$ddef = thold_multiexplode(

and replace it with this line
$ddef = thold_multiexplode(array('"', "'"), $def);
chuckles148
Posts: 4
Joined: Mon Mar 26, 2012 10:43 am

Re: With Thold enabled graphs don't display

Post by chuckles148 »

I couldn't find that line exactly but did find this

Is this where I should be making that change?

$defs = explode("\\\n", $g['graph_defs'], -1);
if (is_array($defs)) {
foreach ($defs as $def) {
if (!substr_count($def, "CDEF") && !substr_count($def, "VDEF")) {
$ddef = explode('"', $def);
$kdef = explode(':', $def);
$dsname = $kdef[2];
$temp1 = str_replace(".rrd", "", basename($ddef[1]));
if (substr_count(basename($ddef[1]), "_") == 0) {
$local_data_id = $temp1;
}else{
$temp2 = explode("_", $temp1);
$local_data_id = $temp2[sizeof($temp2)-1];
}
$rra_id[$dsname] = $local_data_id;
}
}
}
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: With Thold enabled graphs don't display

Post by cigamit »

Ya, Sorry, I was thinking of the issue with the current SVN. For your version this may work.

Replace
$ddef = explode('"', $def);
with
$ddef = explode("'", $def);

Basically Cacti decided to start using single quotes instead of double quotes if I remember correctly.
chuckles148
Posts: 4
Joined: Mon Mar 26, 2012 10:43 am

Re: With Thold enabled graphs don't display

Post by chuckles148 »

I made the change but still have the same issue, any other ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests