Skip to content

Commit

Permalink
Fixing #5254 - Custom Data issue with new Graphs
Browse files Browse the repository at this point in the history
Created a data source template to specify the snmp port, but it doesn't seem to work properly
  • Loading branch information
TheWitness committed Mar 23, 2023
1 parent 2626df9 commit a2ed9d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,6 +1,7 @@
Cacti CHANGELOG

1.2.25
-issue#5254: Created a data source template to specify the snmp port, but it doesn't seem to work properly
-issue#5255: Data query xml path with space problem
-issue#5258: Warnings occur when installing thold plugin and as such thold will not upgrade correctly
-issue#5259: When the Data Template contains more Data Sources than the Graph Template RRDfiles won't update
Expand Down
4 changes: 3 additions & 1 deletion lib/utility.php
Expand Up @@ -766,7 +766,9 @@ function push_out_host($host_id, $local_data_id = 0, $data_template_id = 0) {
$field = 'id';
}

if (preg_match('/^' . VALID_HOST_FIELDS . '$/i', $template_field['type_code']) && $template_field['t_value'] != 'on') {
// Only override if the template value is null as this point
if (preg_match('/^' . VALID_HOST_FIELDS . '$/i', $template_field['type_code']) &&
$template_field['t_value'] != 'on' && $template_field['value'] == '') {
// It's a valid host type-code
$update = true;

Expand Down

0 comments on commit a2ed9d1

Please sign in to comment.