Changeset 1503

Show
Ignore:
Timestamp:
29/02/08 21:19:12 (4 years ago)
Author:
jo
Message:

Final fix for merge of multilevel-groups (I think).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • people/jo/multilevel-groups-3/server/Munin.pm.in

    r1502 r1503  
    308308        } elsif ($line =~ /^\s*\[([^\]]*)]\s*$/) { 
    309309            $prefix = $1; 
    310             if ($prefix =~ /^([^:;]+);([^:;]+)$/) { 
     310            if ($prefix =~ /^([^:]+);([^:;]+)$/) { 
    311311                $prefix .= ":"; 
    312312            } elsif ($prefix =~ /^([^:;]+);$/) { 
  • people/jo/multilevel-groups-3/server/munin-graph.in

    r1502 r1503  
    817817        push (@rrd, "GPRINT:apostotal:MAX:$rrdformat" . $rrdscale . "\\j"); 
    818818    } 
    819             push(@complete,'-W', $watermark) if $RRDs::VERSION >= 1.2; 
    820819 
    821820    for my $time (keys %times) { 
     
    831830                  '--font' ,'AXIS:7:@@LIBDIR@@/VeraMono.ttf'); 
    832831        } 
     832        push(@complete,'-W', $watermark) if $RRDs::VERSION >= 1.2; 
    833833 
    834834        # Do the header (title, vtitle, size, etc...) 
  • people/jo/multilevel-groups-3/server/munin-update.in

    r1502 r1503  
    443443 
    444444  # First we get lock... 
    445   unless (&munin_getlock(munin_get($newconf, "rundir").$newconf->{"address"}.".lock")) { 
     445  unless (&munin_getlock(munin_get($newconf, "rundir")."/munin-".join('-',@{munin_get_node_loc($newconf)})."-".munin_get_node_name($newconf).".lock")) { 
    446446    logger ("[ERROR] Could not get lock for \"$name\". Skipping node."); 
    447447    if ($do_fork) { # Send the old config to the server before we die 
     
    528528      } 
    529529      alarm (0); 
    530       munin_removelock("$config->{rundir}/munin-$domain-$name.lock"); 
     530      munin_removelock(munin_get($newconf, "rundir")."/munin-".join('-',@{munin_get_node_loc($newconf)})."-".munin_get_node_name($newconf).".lock"); 
    531531      exit; 
    532532  } 
     
    547547 
    548548  } 
    549   munin_removelock("$config->{rundir}/munin-$domain-$name.lock"); 
     549  munin_removelock(munin_get($newconf, "rundir")."/munin-".join('-',@{munin_get_node_loc($newconf)})."-".munin_get_node_name($newconf).".lock"); 
    550550} 
    551551 
     
    880880{ 
    881881    my ($newconf,$oldconf,$socket) = @_; 
    882     my ($domain,$name,$node,$oldnode,$socket) = @_; 
    883882    my $clientdomain = read_socket_single ($socket); 
    884883    my $fetchdomain;