So looking deeper on this I have some question:
On thold_graph.php, under 'function tholds'
line 329 and below:
Code: Select all
'status' => array(
'filter' => FILTER_VALIDATE_INT,
'pageset' => true,
'default' => $default_status
But on the URL you only use state, not status
/cacti/plugins/thold/thold_graph.php?action=thold&state=1&thold_template_id=-1&data_template_id=-1&host_id=-1&site_id=-1&rows=-1&rfilter=
So how the filter in line 356-365 suppose to work ?
Code: Select all
/* status filter */
if (get_request_var('status') == '-1') {
/* return all rows */
} else {
if (get_request_var('status') == '0') { $sql_where = "(td.thold_enabled = 'off'"; } /*disabled*/
if (get_request_var('status') == '2') { $sql_where = "(td.thold_enabled = 'on'"; } /* enabled */
if (get_request_var('status') == '1') { $sql_where = "(td.thold_enabled = 'on' AND ((td.thold_alert != 0 OR td.bl_alert > 0))"; } /* breached */
if (get_request_var('status') == '3') { $sql_where = "(td.thold_enabled = 'on' AND (((td.thold_alert != 0 AND td.thold_fail_count >= td.thold_fail_trigger) OR (td.bl_alert > 0 AND td.bl_fail_count >= td.bl_fail_trigger)))"; } /* status */
if (get_request_var('status') == '4') { $sql_where = "(td.acknowledgment = 'on'"; } /* status */
}
Then I will go further after that.
thanks