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?
With Thold enabled graphs don't display
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Mon Mar 26, 2012 10:43 am
With Thold enabled graphs don't display
- Attachments
-
- Capture.JPG (50.7 KiB) Viewed 1602 times
Re: With Thold enabled graphs don't display
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);
open thold/setup.php
Find the line that starts with
$ddef = thold_multiexplode(
and replace it with this line
$ddef = thold_multiexplode(array('"', "'"), $def);
-
- Posts: 4
- Joined: Mon Mar 26, 2012 10:43 am
Re: With Thold enabled graphs don't display
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;
}
}
}
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;
}
}
}
Re: With Thold enabled graphs don't display
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.
Replace
$ddef = explode('"', $def);
with
$ddef = explode("'", $def);
Basically Cacti decided to start using single quotes instead of double quotes if I remember correctly.
-
- Posts: 4
- Joined: Mon Mar 26, 2012 10:43 am
Re: With Thold enabled graphs don't display
I made the change but still have the same issue, any other ideas?
Who is online
Users browsing this forum: No registered users and 2 guests