"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "master/lib/Munin/Master/Node.pm" between
munin-2.0.66.tar.gz and munin-2.0.67.tar.gz

About: Munin is a tool for graphing all sorts of information about one or more servers and displaying it in a web interface (requires Perl and RRDTool).

Node.pm  (munin-2.0.66):Node.pm  (munin-2.0.67)
skipping to change at line 387 skipping to change at line 387
elsif ($line =~ m{\A ([^\.]+)\.([^\s]+) \s+ (.+?) \s* $}xms) { elsif ($line =~ m{\A ([^\.]+)\.([^\s]+) \s+ (.+?) \s* $}xms) {
$correct++; $correct++;
my ($ds_name, $ds_var, $ds_val) = ($1, $2, $3); my ($ds_name, $ds_var, $ds_val) = ($1, $2, $3);
$ds_name = $self->_sanitise_fieldname($ds_name); $ds_name = $self->_sanitise_fieldname($ds_name);
$data_source_config->{$service}{$ds_name} ||= {}; $data_source_config->{$service}{$ds_name} ||= {};
$data_source_config->{$service}{$ds_name}{$ds_var} = $ds_val; $data_source_config->{$service}{$ds_name}{$ds_var} = $ds_val;
DEBUG "[CONFIG dataseries $plugin] $service->$ds_name.$ds_var = $ds_ val" if $debug; DEBUG "[CONFIG dataseries $plugin] $service->$ds_name.$ds_var = $ds_ val" if $debug;
push ( @graph_order, $ds_name ) if $ds_var eq 'label'; push ( @graph_order, $ds_name ) if $ds_var eq 'label';
} }
elsif ($line =~ m{\A ([^\.]+)\.([^\s]+) \s* $}xms) {
# the field value is empty - ignore it
# see https://github.com/munin-monitoring/contrib/issues/1156#issuec
omment-746884950
# For example the meminfo "slab_size" graph may contain empty fields
. These should not
# end up as log noise, but can be safely ignored instead.
$correct++;
DEBUG "[DEBUG] Ignoring field without value ('$line') from $plugin o
n $nodedesignation.\n";
}
else { else {
$errors++; $errors++;
DEBUG "[DEBUG] Protocol exception: unrecognized line '$line' from $pl ugin on $nodedesignation.\n"; DEBUG "[DEBUG] Protocol exception: unrecognized line '$line' from $pl ugin on $nodedesignation.\n";
} }
} }
if ($errors) { if ($errors) {
WARN "[WARNING] $errors lines had errors while $correct lines were correc t in data from 'config $plugin' on $nodedesignation"; WARN "[WARNING] $errors lines had errors while $correct lines were correc t in data from 'config $plugin' on $nodedesignation";
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

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