"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "data_queries.php" between
cacti-1.2.21.tar.gz and cacti-1.2.22.tar.gz

About: Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality.

data_queries.php  (cacti-1.2.21):data_queries.php  (cacti-1.2.22)
skipping to change at line 226 skipping to change at line 226
$data_tem plate_id . '_' . $data_tem plate_id . '_' .
$data_tem plate_rrd_id . '_snmp_field_output') $data_tem plate_rrd_id . '_snmp_field_output')
) )
); );
} }
} }
if (isset_request_var('header') && get_nf ilter_request_var('header') == 'false') { if (isset_request_var('header') && get_nf ilter_request_var('header') == 'false') {
$header = '&header=false'; $header = '&header=false';
} else { } else {
$header = '&header=fasle'; $header = '&header=false';
} }
} else { } else {
raise_message(2); raise_message(2);
$header = '&header=false'; $header = '&header=false';
} }
} else { } else {
$header = '&header=false'; $header = '&header=false';
} }
} }
skipping to change at line 512 skipping to change at line 512
FROM ( FROM (
SELECT sequence, COUNT(sequence) AS count SELECT sequence, COUNT(sequence) AS count
FROM $table FROM $table
WHERE field_name = ? WHERE field_name = ?
AND snmp_query_graph_id = ? AND snmp_query_graph_id = ?
GROUP BY sequence GROUP BY sequence
) AS t ) AS t
WHERE t.count > 1", WHERE t.count > 1",
array($field_name, $snmp_query_graph_id)); array($field_name, $snmp_query_graph_id));
// report any bad or duplicate sequencs to the log for reporting purposes // report any bad or duplicate sequences to the log for reporting purpose s
if ($bad_seq > 0) { if ($bad_seq > 0) {
cacti_log('WARN: Found ' . $bad_seq . " Bad Sequences in $table T able", false, 'WEBUI', POLLER_VERBOSITY_HIGH); cacti_log('WARN: Found ' . $bad_seq . " Bad Sequences in $table T able", false, 'WEBUI', POLLER_VERBOSITY_HIGH);
} }
if ($dup_seq > 0) { if ($dup_seq > 0) {
cacti_log('WARN: Found ' . $dup_seq . " Duplicated Sequences in $ table Table", false, 'WEBUI', POLLER_VERBOSITY_HIGH); cacti_log('WARN: Found ' . $dup_seq . " Duplicated Sequences in $ table Table", false, 'WEBUI', POLLER_VERBOSITY_HIGH);
} }
if ($bad_seq > 0 || $dup_seq > 0) { if ($bad_seq > 0 || $dup_seq > 0) {
// resequence the list so it has no gaps, and 0 values will appea r at the top // resequence the list so it has no gaps, and 0 values will appea r at the top
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)