Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Support questions about the Threshold plugin
Moderators: Developers , Moderators
cyrill
Cacti User
Posts: 271 Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA
Post
by cyrill » Mon Feb 25, 2008 1:45 am
HEllo ! I've the following error
Code: Select all
02/25/2008 07:50:15 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id) WHERE data_template_rrd.data_source_name != '' AND "
A red error is never nice...
please help me
cyrill
Cacti User
Posts: 271 Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA
Post
by cyrill » Fri Feb 29, 2008 1:50 am
I've always this errror...
cyrill
Cacti User
Posts: 271 Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA
Post
by cyrill » Tue Mar 04, 2008 1:39 am
please I need help. It's a serious error and I can't keep it
cyrill
Cacti User
Posts: 271 Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA
Post
by cyrill » Thu Mar 13, 2008 1:35 am
I always this error
Cacti 0.8.7b
-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
airwalk
Cacti User
Posts: 103 Joined: Fri Aug 18, 2006 11:22 am
Location: MSK, RU
Post
by airwalk » Fri Mar 14, 2008 5:20 am
Hi, I get the same error as well. If I downgrade from 0.3.9 to 0.3.8 then it goes away. Has anything been changed in DB in 0.3.9? thold.sql appears to be the same for both versions.
Attachments
untitled.PNG (30.05 KiB) Viewed 16238 times
killshoot
Cacti User
Posts: 84 Joined: Wed Mar 26, 2008 2:51 am
Post
by killshoot » Wed Mar 26, 2008 4:50 am
I also have the same error on a fresh install (cacti 0.87 / PA 2.1 / thold 3.9 )
03/26/2008 10:40:13 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id) WHERE data_template_rrd.data_source_name != '' AND "
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Apr 08, 2008 7:04 pm
Definitely t-hold related. You need to hook up with Jimmy.
TheWitness
bookweb
Posts: 8 Joined: Mon Apr 14, 2008 5:12 am
Post
by bookweb » Thu Apr 17, 2008 3:13 am
is this fixed by now?
i have the same problem on my cacti 0.8.7b
thanks
christian
gthe
Cacti User
Posts: 410 Joined: Sat Jul 29, 2006 1:23 pm
Location: RU
Post
by gthe » Wed Apr 23, 2008 9:48 am
To disable this error occuring I change thold/setup.php:197
before:
Code: Select all
$rrd_update_array_reindexed[$item['local_data_id']] = $item['times'][key($item['times'])];
$x++;
}
}
$thold_items = db_fetch_assoc("select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data
LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id)
WHERE data_template_rrd.data_source_name != '' AND $rra_ids");
After:
Code: Select all
$rrd_update_array_reindexed[$item['local_data_id']] = $item['times'][key($item['times'])];
$x++;
}
}
$rra_ids = ((strlen(trim($rra_ids)) > 0) ? "AND " . $rra_ids : "");
$thold_items = db_fetch_assoc("select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data
LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id)
WHERE data_template_rrd.data_source_name != '' $rra_ids");
cyrill
Cacti User
Posts: 271 Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA
Post
by cyrill » Wed Jul 09, 2008 12:51 am
hello ! I've always the problem... It is fixed ?
Cacti 0.8.7b
-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
kasimong
Posts: 40 Joined: Tue Oct 02, 2007 7:54 am
Location: Bremerhaven,Bremen,Germany
Post
by kasimong » Wed Jul 30, 2008 2:24 am
me too
07/30/2008 09:10:38 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id) WHERE data_template_rrd.data_source_name != '' AND "
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Wed Jul 30, 2008 5:04 am
Two posts up for the fix.
Regards,
TheWitness
zorrosam
Cacti User
Posts: 244 Joined: Thu May 03, 2007 3:17 pm
Location: Italy
Post
by zorrosam » Fri Sep 26, 2008 6:11 am
sorry,
when i apply the new line of the codes cacti die.
why?
The lines that i add are :
$rra_ids = ((strlen(trim($rra_ids)) > 0) ? "AND " . $rra_ids : "");
$thold_items = db_fetch_assoc("select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data
LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id)
WHERE data_template_rrd.data_source_name != '' $rra_ids");
any info is appreciate
sam
gthe
Cacti User
Posts: 410 Joined: Sat Jul 29, 2006 1:23 pm
Location: RU
Post
by gthe » Fri Sep 26, 2008 6:14 am
Users browsing this forum: No registered users and 3 guests