in the plugins/thold directory edit setup.php (first making a backup)
Locate on line 203
$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");
and change to
if ($rrd_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 != '' AND $rra_ids");
} else {
$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 != '' ");
}
This removes the SQL error from CACTI log file and does not seem to affect thresholds?
SQL Error
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Thu Apr 30, 2009 4:15 am
- Contact:
Nice one
Its nice one for programmers.
[url=http://www.trustpharma.com]generic viagra[/url],[url=http://www.trustpharma.com/purchase/genericlevitra.asp]generic levitra[/url],[url=http://www.trustpharma.com/purchase/kamagra.asp]kamagra[/url]
Who is online
Users browsing this forum: No registered users and 3 guests